|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Network host - localhost. More...
#include <Host.hpp>
Public Member Functions | |
| LocalHost () throw () | |
| ~LocalHost () throw () | |
| const std::string & | os_name () const throw () |
| name of the operating system | |
| const std::string & | os_release () const throw () |
| release of the operating system | |
| const std::string & | os_version () const throw () |
| version of the operating system | |
| const std::string & | machine () const throw () |
| version of the operating system | |
| const std::string & | description () const throw () |
| machine type */ | |
Public Member Functions inherited from OksSystem::Host | |
| Host (const Host &other) | |
| copy constructor | |
| Host (const std::string &name) | |
| constructor from name | |
| Host (struct sockaddr_in ip_addr) | |
| constructor from ip address | |
| virtual | ~Host () throw () |
| destructor | |
| operator struct sockaddr_in () const throw () | |
| cast to ip address | |
| bool | equals (const Host &other) const throw () |
| equality method | |
| struct sockaddr_in | ip () const throw () |
| get ip address | |
| const std::string & | name () const throw () |
| get name | |
| const std::string & | full_name () const throw () |
| get fully qualified name | |
| std::string | ip_string () const throw () |
| get ip in string mode | |
Static Public Member Functions | |
| static const std::string & | local_name () throw () |
| localhostname | |
| static const std::string & | full_local_name () throw () |
| fully qualified local host name | |
| static const LocalHost * | instance () throw () |
| pointer to the singleton local host | |
Static Public Member Functions inherited from OksSystem::Host | |
| static struct sockaddr_in | resolve (const std::string &name) throw () |
| name to ip conversion | |
| static std::string | resolve (struct sockaddr_in address) throw () |
| ip to name conversion | |
| static std::string | expand (const std::string &name) throw () |
| expands to full name | |
| static std::string | to_string (struct sockaddr_in ip_addr) |
| ip to string conversion | |
Protected Attributes | |
| std::string | m_os_name |
| name of the operating system | |
| std::string | m_release |
| release of the operating system | |
| std::string | m_version |
| version of the operating system | |
| std::string | m_machine |
| machine type | |
| std::string | m_description |
| machine description (cached) | |
Protected Attributes inherited from OksSystem::Host | |
| std::string | m_name |
| name of the host | |
| std::string | m_full_name |
| cached fully qualified host name | |
Static Protected Attributes | |
| static LocalHost * | s_instance = 0 |
| singleton for local host | |
Additional Inherited Members | |
Protected Member Functions inherited from OksSystem::Host | |
| Host () throw () | |
| constructor for current host | |
Network host - localhost.
This class represents the local host It has some additional fields with additional information about the host
| OksSystem::LocalHost::LocalHost | ( | ) | ||||
| throw | ( | ) | ||||
Constructor You should not construct new instances, use instance to get the singleton instance.
Definition at line 233 of file Host.cpp.
| OksSystem::LocalHost::~LocalHost | ( | ) | ||||
| throw | ( | ) | ||||
| const std::string & OksSystem::LocalHost::description | ( | ) | const | |||
| throw | ( | ) | ||||
machine type */
This method builds a description of the localhost This contains all the of the information handled by this class.
Definition at line 286 of file Host.cpp.
|
static | ||||||||||||
fully qualified local host name
Short-cut method - gives the fully qualified local hostname
Definition at line 211 of file Host.cpp.
|
static | ||||||||||||
pointer to the singleton local host
This method returns a pointer to the singleton instance. There is no need to ever create any instance of LocalHost
full_local_name use this instance class Definition at line 221 of file Host.cpp.
|
static | ||||||||||||
localhostname
Short-cut method - gives the local hostname This name is not guaranteed to be a fully qualified name.
Definition at line 202 of file Host.cpp.
| const std::string & OksSystem::LocalHost::machine | ( | ) | const | |||
| throw | ( | ) | ||||
| const std::string & OksSystem::LocalHost::os_name | ( | ) | const | |||
| throw | ( | ) | ||||
| const std::string & OksSystem::LocalHost::os_release | ( | ) | const | |||
| throw | ( | ) | ||||
| const std::string & OksSystem::LocalHost::os_version | ( | ) | const | |||
| throw | ( | ) | ||||
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |