|
ifw
0.0.1-dev
|
#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 withDomain=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 addrPort, std::string &addr, int &port) |
| template<typename EVENT > | |
| static const std::string | GetRequestId (rad::AnyEvent const &event) |
| static std::string | GetHostname (const bool withDomain=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 addrPort, std::string &addr, int &port) |
| template<typename EVENT > | |
| static const std::string | GetRequestId (rad::AnyEvent const &event) |
| static std::string | GetHostname (const bool withDomain=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 addrPort, std::string &addr, int &port) |
| template<typename EVENT > | |
| static const std::string | GetRequestId (rad::AnyEvent const &event) |
Static Public Attributes | |
| static constexpr const char * | INTROOT = "INTROOT" |
Class containing static helper methods.
|
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.
| [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 |
This method can be used to retrieve the identity of the originator of the request associated to the given event.
| [in] | event | Event used to retrieve its payload the originator of the request associated to the event. |
|
static |
|
static |
|
static |
Split a string composed by an IP address and a port.
| [in] | addrPort | IP address and port separated by ':'. |
| [out] | addr | IP address. |
| [out] | port | Port. |
|
static |
1.8.5