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 307 of file Host.cpp.

307 {
308 const std::string & str = OksSystem::LocalHost::full_local_name();
309 return str.c_str();
310} // full_host_name
static const std::string & full_local_name()
fully qualified local host name
Definition Host.cpp:216

◆ operator!=() [1/2]

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

inequality operator

Definition at line 188 of file Host.cpp.

188 {
189 return ! a.equals(b);
190} // operator ≠
bool equals(const Host &other) const
equality method
Definition Host.cpp:142

◆ 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 329 of file Host.cpp.

330{
331 return false;
332}

◆ operator==() [1/2]

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

equality operator

Definition at line 184 of file Host.cpp.

184 {
185 return a.equals(b);
186} // 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 318 of file Host.cpp.

319{
320 return true;
321}