rad
2.0.0
|
#include <helper.hpp>
Public Member Functions | |
Helper ()=delete | |
Helper (const Helper &)=delete | |
Helper & | operator= (const Helper &)=delete |
Helper ()=delete | |
Helper (const Helper &)=delete | |
Helper & | operator= (const Helper &)=delete |
Helper ()=delete | |
Helper (const Helper &)=delete | |
Helper & | operator= (const Helper &)=delete |
Static Public Member Functions | |
static std::string | GetHostname (const bool with_domain=false) |
static std::string | FindFile (const std::string &filename) |
static bool | FileExists (const std::string &filename) |
static std::string | GetEnvVar (const std::string &key) |
static std::string | CreateIdentity () |
static void | SplitAddrPort (const std::string addr_port, std::string &addr, int &port) |
static std::string | GetVersion () |
static std::string | GetHostname (const bool with_domain=false) |
static std::string | FindFile (const std::string &filename) |
static bool | FileExists (const std::string &filename) |
static std::string | GetEnvVar (const std::string &key) |
static std::string | CreateIdentity () |
static void | SplitAddrPort (const std::string addr_port, std::string &addr, int &port) |
static std::string | GetVersion () |
static std::string | GetHostname (const bool with_domain=false) |
static std::string | FindFile (const std::string &filename) |
static bool | FileExists (const std::string &filename) |
static std::string | GetEnvVar (const std::string &key) |
static std::string | CreateIdentity () |
static void | SplitAddrPort (const std::string addr_port, std::string &addr, int &port) |
static std::string | GetVersion () |
Static Public Attributes | |
static constexpr const char * | INTROOT = "INTROOT" |
static constexpr const char * | CFGPATH = "CFGPATH" |
Class containing static helper methods.
|
delete |
|
delete |
|
delete |
|
delete |
|
delete |
|
delete |
|
static |
This function creates Universally Unique Identifier (UUID) using boost/uuid/random_generator library.
|
static |
|
static |
|
static |
|
static |
This function checks whether a file exists.
[in] | filename | Name of the file or path to a file. |
|
static |
|
static |
|
static |
|
static |
This function tries to find the location of a file. TODO remove support for INTROOT.
[in] | filename | Name of the file or path to a file to be located. |
|
static |
|
static |
This function checks whether an environment variable exists.
[in] | key | Name of the environment variable. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
The version is configured in the project's wscript file and passed to the C++ preprocessor via the -DVERSION macro definition.
|
static |
|
static |
|
static |
Split a string composed by an IP address and a port.
[in] | addr_port | IP address and port separated by ':'. |
[out] | addr | IP address. |
[out] | port | Port. |
|
static |
|
static |