15 #include "networkmod.h" 28 #define mRetNoneIfEmpty( bs ) \ 29 if ( bs.isEmpty() ) return "_none_"; \ 39 HostData(
const char* nm);
40 HostData(
const char* nm,
const HostData& localhost,
42 HostData(
const HostData&);
47 void setHostName(
const char*);
48 const char* getHostName()
const;
49 void setIPAddress(
const char*);
50 const char* getIPAddress()
const;
53 {
return aliases_.size(); }
54 void setAlias(
const char*);
55 const char*
alias(
int idx )
const 56 {
return aliases_.get(idx); }
57 bool isKnownAs(
const char*)
const;
59 void addAlias(
const char*);
65 bool isWindows()
const;
74 const HostData* from = 0 )
const;
76 const HostData* from = 0 )
const 77 {
return convPath(pt,
FilePath(fn), from ); }
85 {
return localhd_ ? *localhd_ : *
this; }
105 void init(
const char* nm );
131 bool refresh(
bool foredit=
false);
158 HostData*
findHost(
const char*)
const;
162 #undef mRetNoneIfEmpty #define mExpClass(module)
Definition: commondefs.h:160
BufferString unx_data_pr_
Definition: hostdata.h:152
void fill(BufferStringSet &, bool inclocalhost=true) const
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
const HostData * find(const char *nm) const
Definition: hostdata.h:134
int nicelvl_
Definition: hostdata.h:147
int firstport_
Definition: hostdata.h:148
Definition: jobcommunic.h:24
const char * getBatchHostsFilename() const
const HostData & localHost() const
Definition: hostdata.h:84
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Style
Definition: filepath.h:37
const char * localHostName()
shortcut to GetLocalHostName()
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
void setLocalHost(const HostData &hd)
Definition: hostdata.h:82
const char * winDataRoot() const
bool readOldHostFile(const char *)
BufferString win_appl_pr_
Definition: hostdata.h:149
Definition: uistring.h:89
Set of BufferString objects.
Definition: bufstringset.h:28
const char * loginCmd() const
List of host names in the system. The first entry will be the local host.
Definition: hostdata.h:115
FilePath data_pr_
Definition: hostdata.h:100
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
void setWinDataRoot(const char *)
BufferString logincmd_
Definition: hostdata.h:146
PathType
Definition: hostdata.h:45
const char * unixDataRoot() const
const HostData * localhd_
Definition: hostdata.h:101
HostData * findHost(const char *) const
bool writeHostFile(const char *fnm)
const char * alias(int idx) const
Definition: hostdata.h:55
BufferString batchhostsfnm_
Definition: hostdata.h:159
FilePath appl_pr_
Definition: hostdata.h:99
FilePath convPath(PathType pt, const char *fn, const HostData *from=0) const
Definition: hostdata.h:75
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
File pathname tools.
Definition: filepath.h:34
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
mODTextTranslationClass(HostDataList) public void setNiceLevel(int)
int nrAliases() const
Definition: hostdata.h:52
bool refresh(bool foredit=false)
void setUnixDataRoot(const char *)
bool isOK(uiStringSet &) const
Definition: uistring.h:218
void dump(od_ostream &) const
BufferStringSet aliases_
Definition: hostdata.h:97
HostData * find(const char *nm)
Definition: hostdata.h:133
Host name and aliases.
Definition: hostdata.h:36
BufferString unx_appl_pr_
Definition: hostdata.h:150
BufferString win_data_pr_
Definition: hostdata.h:151
ObjectSet where the objects contained are owned by this set.
Definition: manobjectset.h:23
OD::Platform platform_
Definition: hostdata.h:98
void setLoginCmd(const char *)
BufferString hostname_
Definition: hostdata.h:95
bool readHostFile(const char *)
BufferString ipaddress_
Definition: hostdata.h:96