|
phaser-server
0.0.7
|
Program constants. More...
#include <const.h>
Public Member Functions | |
| Const (const Const &)=delete | |
| Enforce singleton. | |
| Const & | operator= (const Const &)=delete |
| Enforce singleton | |
Static Public Member Functions | |
| static Const & | Instance (void) |
| Reference the singleton instance. More... | |
Public Attributes | |
| const std::string | Host |
| Designate server host name. | |
| const int | Port |
| TCP port number. | |
| const unsigned | ReadTimeout |
| Read from client (msec) | |
| const unsigned | AcceptTimeout |
| Accepting new connections (msec) | |
| const unsigned | ClientQueue |
| Client connect queue size. | |
| const unsigned | MaxRequest |
| Maximum client request size. | |
| const std::string | DB1 |
| Database user. | |
| const std::string | DB2 |
| Database password. | |
| const std::string | DB3 |
| Database name. | |
| const unsigned | WaitBetween |
| Seconds between each cavity. | |
| const unsigned | ApplyAge |
| Max measurement age (seconds) | |
| const unsigned | MaxPhaseError |
| Max phase error (degrees) | |
| const bool | LiveMode |
| Server live versus test. | |
| const bool | DataLogging |
| Is data logging enabled? | |
Static Public Attributes | |
| static const std::string | Version |
| The program's version identifier. | |
Program constants.
This singleton class simply holds program constants. Included are source code constants as well as those from the program's configuration file.
|
static |
Reference the singleton instance.
Create the instance if not already done. Otherwise just return a reference to the single instance.