|
FREEDM DGI
|
A singleton class which tracks commonly used configuration options.
#include <CGlobalConfiguration.hpp>
Public Member Functions | |
| std::string | GetAdapterConfigPath () const |
| Get the path to the adapter configuration file. More... | |
| boost::posix_time::time_duration | GetClockSkew () const |
| Get the Skew of the local clock. More... | |
| std::string | GetDeviceConfigPath () const |
| Get the path to the device class XML specification file. More... | |
| std::string | GetDevicesEndpoint () const |
| Get the socket endpoint address. More... | |
| std::string | GetECNPort () const |
| Get the port used to listen for ECN messages. More... | |
| unsigned short | GetFactoryPort () const |
| Get the plug-and-play port number. More... | |
| std::string | GetHostname () const |
| Get the hostname. More... | |
| bool | GetInvariantCheck () const |
| Get the invariant check flag. More... | |
| std::string | GetListenAddress () const |
| Get the address. More... | |
| std::string | GetListenPort () const |
| Get the port. More... | |
| bool | GetMaliciousFlag () const |
| Get the malicious load balance flag. More... | |
| float | GetMigrationStep () const |
| Get the size of a load balance migration. More... | |
| std::string | GetTopologyConfigPath () const |
| Path to the topology specification file. More... | |
| std::string | GetUUID () const |
| Get the UUID. More... | |
| void | SetAdapterConfigPath (std::string ac) |
| Set the path to the adapter configuration file. More... | |
| void | SetClockSkew (boost::posix_time::time_duration t) |
| Set the clock skew. More... | |
| void | SetDeviceConfigPath (std::string p) |
| Set the path to the device class XML specification file. More... | |
| void | SetDevicesEndpoint (std::string e) |
| Set the socket endpoint address. More... | |
| void | SetECNPort (std::string ecn_port) |
| Set the port used to listen for ECN messages. More... | |
| void | SetFactoryPort (unsigned short port) |
| Set the plug-and-play port number. More... | |
| void | SetHostname (std::string h) |
| Set the hostname. More... | |
| void | SetInvariantCheck (bool flag) |
| Set the invariant check flag. More... | |
| void | SetListenAddress (std::string a) |
| Set the address to on. More... | |
| void | SetListenPort (std::string p) |
| Set the port. More... | |
| void | SetMaliciousFlag (bool flag) |
| Set the malicious load balance flag. More... | |
| void | SetMigrationStep (float v) |
| Set the size of a load balance migration. More... | |
| void | SetTopologyConfigPath (std::string p) |
| Set the path to the topology config file. More... | |
| void | SetUUID (std::string u) |
| Set the uuid. More... | |
Static Public Member Functions | |
| static CGlobalConfiguration & | Instance () |
| Returns the singleton instance of the global configuration. More... | |
Static Public Attributes | |
| static const short | MAX_PACKET_SIZE = SHRT_MAX |
| Intentionally signed. UINT16_MAX is too big for a UDP datagram, anyway. More... | |
Private Attributes | |
| std::string | m_adapterConfigPath |
| Socket endpoint address for devices. More... | |
| std::string | m_address |
| The node uuid. More... | |
| boost::posix_time::time_duration | m_clockskew |
| The listening address. More... | |
| std::string | m_deviceConfigPath |
| Path to the adapter configuration. More... | |
| std::string | m_devicesEndpoint |
| Port number for adapter factory. More... | |
| std::string | m_ecn_port |
| Port number. More... | |
| unsigned short | m_factory_port |
| The skew of the clock. More... | |
| std::string | m_hostname |
| bool | m_invariant |
| bool | m_malicious |
| Size of a load balance migration. More... | |
| float | m_migrationStep |
| Path to the topology config. More... | |
| std::string | m_port |
| Node hostname. More... | |
| std::string | m_topologyConfigPath |
| Path to the device class config. More... | |
| std::string | m_uuid |
| ECN port. More... | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
1.8.6