OpendTect  6.6
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
HostData Class Reference

Host name and aliases. More...

Public Types

enum  PathType { Appl , Data }
 

Public Member Functions

 HostData (const char *nm)
 
 HostData (const char *nm, const HostData &localhost, const OD::Platform &)
 
 HostData (const HostData &)
 
virtual ~HostData ()
 
void addAlias (const char *)
 only adds if !isKnownAs More...
 
const char * alias (int idx) const
 
BufferString connAddress () const
 
FilePath convPath (PathType pt, const char *fn, const HostData *from=0) const
 
FilePath convPath (PathType pt, const FilePath &, const HostData *from=0) const
 
void fillPar (IOPar &) const
 
const FilePathgetDataRoot () const
 
BufferString getFullDispString () const
 
const char * getHostName () const
 
const char * getIPAddress () const
 
const OD::PlatformgetPlatform () const
 
const char * getShortHostName () const
 Do not use, will become getHostName(false) More...
 
bool isKnownAs (const char *) const
 true if name or an alias matches More...
 
bool isOK (uiString &errmsg) const
 
bool isStaticIP () const
 
bool isWindows () const
 
const HostDatalocalHost () const
 
int nrAliases () const
 Host name or IP address to be used for a connection. More...
 
FilePath::Style pathStyle () const
 
const FilePathprefixFilePath (PathType) const
 As is on remote host. More...
 
void setAlias (const char *)
 
void setDataRoot (const FilePath &)
 
void setHostName (const char *)
 
void setIPAddress (const char *)
 
void setLocalHost (const HostData &hd)
 
void setPlatform (const OD::Platform &)
 
void usePar (const IOPar &)
 

Static Public Member Functions

static bool isValidIPAddress (const char *)
 
static const char * localHostName ()
 shortcut to GetLocalHostName() More...
 

Protected Member Functions

 HostData (const char *nm, const OD::Platform &)
 
void init (const char *nm)
 
bool staticip_ () const
 

Protected Attributes

BufferStringSet aliases_
 
FilePath appl_pr_
 
FilePath data_pr_
 
BufferString hostname_
 
BufferString ipaddress_
 
const HostDatalocalhd_
 
OD::Platform platform_
 

Friends

class HostDataList
 

Detailed Description

Host name and aliases.

<>

Member Enumeration Documentation

◆ PathType

Enumerator
Appl 
Data 

Constructor & Destructor Documentation

◆ HostData() [1/4]

HostData::HostData ( const char *  nm)

◆ HostData() [2/4]

HostData::HostData ( const char *  nm,
const HostData localhost,
const OD::Platform  
)

◆ HostData() [3/4]

HostData::HostData ( const HostData )

◆ ~HostData()

virtual HostData::~HostData ( )
virtual

◆ HostData() [4/4]

HostData::HostData ( const char *  nm,
const OD::Platform  
)
protected

Member Function Documentation

◆ addAlias()

void HostData::addAlias ( const char *  )

only adds if !isKnownAs

◆ alias()

const char* HostData::alias ( int  idx) const
inline

◆ connAddress()

BufferString HostData::connAddress ( ) const

◆ convPath() [1/2]

FilePath HostData::convPath ( PathType  pt,
const char *  fn,
const HostData from = 0 
) const
inline

◆ convPath() [2/2]

FilePath HostData::convPath ( PathType  pt,
const FilePath ,
const HostData from = 0 
) const

◆ fillPar()

void HostData::fillPar ( IOPar ) const

◆ getDataRoot()

const FilePath& HostData::getDataRoot ( ) const

◆ getFullDispString()

BufferString HostData::getFullDispString ( ) const

◆ getHostName()

const char* HostData::getHostName ( ) const

◆ getIPAddress()

const char* HostData::getIPAddress ( ) const

◆ getPlatform()

const OD::Platform& HostData::getPlatform ( ) const

◆ getShortHostName()

const char* HostData::getShortHostName ( ) const

Do not use, will become getHostName(false)

◆ init()

void HostData::init ( const char *  nm)
protected

◆ isKnownAs()

bool HostData::isKnownAs ( const char *  ) const

true if name or an alias matches

◆ isOK()

bool HostData::isOK ( uiString errmsg) const

◆ isStaticIP()

bool HostData::isStaticIP ( ) const

◆ isValidIPAddress()

static bool HostData::isValidIPAddress ( const char *  )
static

◆ isWindows()

bool HostData::isWindows ( ) const

◆ localHost()

const HostData& HostData::localHost ( ) const
inline

◆ localHostName()

static const char* HostData::localHostName ( )
static

shortcut to GetLocalHostName()

◆ nrAliases()

int HostData::nrAliases ( ) const
inline

Host name or IP address to be used for a connection.

◆ pathStyle()

FilePath::Style HostData::pathStyle ( ) const

◆ prefixFilePath()

const FilePath& HostData::prefixFilePath ( PathType  ) const

As is on remote host.

◆ setAlias()

void HostData::setAlias ( const char *  )

◆ setDataRoot()

void HostData::setDataRoot ( const FilePath )

◆ setHostName()

void HostData::setHostName ( const char *  )

◆ setIPAddress()

void HostData::setIPAddress ( const char *  )

◆ setLocalHost()

void HostData::setLocalHost ( const HostData hd)
inline

◆ setPlatform()

void HostData::setPlatform ( const OD::Platform )

◆ staticip_()

bool HostData::staticip_ ( ) const
protected

◆ usePar()

void HostData::usePar ( const IOPar )

Friends And Related Function Documentation

◆ HostDataList

friend class HostDataList
friend

Member Data Documentation

◆ aliases_

BufferStringSet HostData::aliases_
protected

◆ appl_pr_

FilePath HostData::appl_pr_
protected

◆ data_pr_

FilePath HostData::data_pr_
protected

◆ hostname_

BufferString HostData::hostname_
protected

◆ ipaddress_

BufferString HostData::ipaddress_
protected

◆ localhd_

const HostData* HostData::localhd_
protected

◆ platform_

OD::Platform HostData::platform_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022