DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
OksSystem Namespace Reference

Classes

class  Descriptor
 File descriptor / Socket wrapper. More...
 
struct  Environment
 Wrapper for environnement variable manipulation. More...
 
class  Executable
 Wrapper for executable file manipulation. More...
 
class  FIFOConnection
 
class  File
 Wrapper for file operations. More...
 
class  Host
 Network host. More...
 
class  LocalHost
 Network host - localhost. More...
 
class  MapFile
 Wrapper for memory map operations. More...
 
class  Path
 Path list handling mechanism. More...
 
class  Process
 Wrapper for process manipulation. More...
 
class  StringMemoryArea
 String memory storage facility. More...
 
class  User
 User. More...
 

Functions

bool operator== (const Host &a, const Host &b) throw ()
 equality operator
 
bool operator!= (const Host &a, const Host &b) throw ()
 inequality operator
 
const char * getfullhost () throw ()
 get fully qualified host name
 
bool operator== (const LocalHost &a, const LocalHost &b) throw ()
 
bool operator!= (const LocalHost &a, const LocalHost &b) throw ()
 

Function Documentation

◆ getfullhost()

const char * OksSystem::getfullhost ( )
throw ( )

get fully qualified host name

Convenience method, finds the fully qualified host name for this node

Returns
c-string with fully qualified hostname
Note
the string is owned by the singleton object it should not be deleted
if resolve fails (typically because there is no network) this method might return the short (unqualified) host name.

Definition at line 302 of file Host.cpp.

302 {
303 const std::string & str = OksSystem::LocalHost::full_local_name();
304 return str.c_str();
305} // full_host_name
static const std::string & full_local_name()
fully qualified local host name
Definition Host.cpp:211

◆ operator!=() [1/2]

bool OksSystem::operator!= ( const Host & a,
const Host & b )
throw ( )

inequality operator

Definition at line 183 of file Host.cpp.

183 {
184 return ! a.equals(b);
185} // operator ≠
bool equals(const Host &other) const
equality method
Definition Host.cpp:137

◆ operator!=() [2/2]

bool OksSystem::operator!= ( const LocalHost & a,
const LocalHost & b )
throw ( )

Comparison operator Simple optimisation - if we compare two localhost instances, they are always equal

Parameters
afirst instance
bsecond instance

Definition at line 324 of file Host.cpp.

325{
326 return false;
327}

◆ operator==() [1/2]

bool OksSystem::operator== ( const Host & a,
const Host & b )
throw ( )

equality operator

Definition at line 179 of file Host.cpp.

179 {
180 return a.equals(b);
181} // operator ==

◆ operator==() [2/2]

bool OksSystem::operator== ( const LocalHost & a,
const LocalHost & b )
throw ( )

Comparison operator Simple optimisation - if we compare two localhost instances, they are always equal

Parameters
afirst instance
bsecond instance

Definition at line 313 of file Host.cpp.

314{
315 return true;
316}