|
ifw-fgf 1.0.0-pre1
|
Handles configuration of the Andor FrameGrabber application. More...
#include <config.hpp>
Public Member Functions | |
| Config () | |
| void | LoadConfig (const std::string &filename="", bool reset=false) |
| template<typename T > | |
| std::optional< T > | GetCameraFeature (const char *param) |
| : Get a camera feature configuration | |
| template<typename T > | |
| std::optional< T > | GetServerConfiguration (const char *param) |
| : Get a server configuration parameters | |
| const std::string | GetConfigAsString () const |
| : Get configuration as string | |
Protected Attributes | |
| YAML::Node | m_config_node |
| YAML node storing the actual configuration | |
Handles configuration of the Andor FrameGrabber application.
Through a configuration file, it is possible to customize initial parameters for Andor Cameras.
The Config class provides the methods to load and get the configuration from the internal YAML node representation.
| fgf::andor::Config::Config | ( | ) |
Default constructor.
Initialize application configuration attributes by
| std::optional< T > fgf::andor::Config::GetCameraFeature | ( | const char * | param | ) |
: Get a camera feature configuration
| param The parameter to get from the configuration. |
Camera: param1: ... param2: ... param3: ...
| const std::string fgf::andor::Config::GetConfigAsString | ( | ) | const |
: Get configuration as string
This method can be used for printing configuration to the standard output.
| std::optional< T > fgf::andor::Config::GetServerConfiguration | ( | const char * | param | ) |
: Get a server configuration parameters
| param The parameter to get from the configuration. |
Server: param1: ... param2: ... param3: ...
| void fgf::andor::Config::LoadConfig | ( | const std::string & | filename = "", |
| bool | reset = false ) |
This method load from a configuration file the application configuration overriding the initialization done in the constructor and the command line options.
| [in] | filename | Application configuration filename. |
|
protected |
YAML node storing the actual configuration