OpendTect-6_4  6.4
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 setHostName (const char *)
 
const char * getHostName () const
 
void setIPAddress (const char *)
 
const char * getIPAddress () const
 
int nrAliases () const
 
void setAlias (const char *)
 
const char * alias (int idx) const
 
bool isKnownAs (const char *) const
 true if name or an alias matches More...
 
void addAlias (const char *)
 only adds if !isKnownAs More...
 
BufferString getFullDispString () const
 
void setPlatform (const OD::Platform &)
 
const OD::PlatformgetPlatform () const
 
bool isWindows () const
 
FilePath::Style pathStyle () const
 
const FilePathprefixFilePath (PathType) const
 As is on remote host. More...
 
const FilePathgetDataRoot () const
 
void setDataRoot (const FilePath &)
 
FilePath convPath (PathType pt, const FilePath &, const HostData *from=0) const
 
FilePath convPath (PathType pt, const char *fn, const HostData *from=0) const
 
void setLocalHost (const HostData &hd)
 
const HostDatalocalHost () const
 
bool isOK (uiString &errmsg) const
 
void fillPar (IOPar &) const
 
void usePar (const IOPar &)
 

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

Friends

class HostDataList
 

Detailed Description

Host name and aliases.

Member Enumeration Documentation

Enumerator
Appl 
Data 

Constructor & Destructor Documentation

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

Member Function Documentation

void HostData::addAlias ( const char *  )

only adds if !isKnownAs

const char* HostData::alias ( int  idx) const
inline
FilePath HostData::convPath ( PathType  pt,
const FilePath ,
const HostData from = 0 
) const
FilePath HostData::convPath ( PathType  pt,
const char *  fn,
const HostData from = 0 
) const
inline
void HostData::fillPar ( IOPar ) const
const FilePath& HostData::getDataRoot ( ) const
BufferString HostData::getFullDispString ( ) const
const char* HostData::getHostName ( ) const
const char* HostData::getIPAddress ( ) const
const OD::Platform& HostData::getPlatform ( ) const
void HostData::init ( const char *  nm)
protected
bool HostData::isKnownAs ( const char *  ) const

true if name or an alias matches

bool HostData::isOK ( uiString errmsg) const
bool HostData::isWindows ( ) const
const HostData& HostData::localHost ( ) const
inline
static const char* HostData::localHostName ( )
static

shortcut to GetLocalHostName()

int HostData::nrAliases ( ) const
inline
FilePath::Style HostData::pathStyle ( ) const
const FilePath& HostData::prefixFilePath ( PathType  ) const

As is on remote host.

void HostData::setAlias ( const char *  )
void HostData::setDataRoot ( const FilePath )
void HostData::setHostName ( const char *  )
void HostData::setIPAddress ( const char *  )
void HostData::setLocalHost ( const HostData hd)
inline
void HostData::setPlatform ( const OD::Platform )
void HostData::usePar ( const IOPar )

Friends And Related Function Documentation

friend class HostDataList
friend

Member Data Documentation

BufferStringSet HostData::aliases_
protected
FilePath HostData::appl_pr_
protected
FilePath HostData::data_pr_
protected
BufferString HostData::hostname_
protected
BufferString HostData::ipaddress_
protected
const HostData* HostData::localhd_
protected
OD::Platform HostData::platform_
protected

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