|
ROOT
ROOT project
|
Reader class for DAT files. More...
#include <reader.hpp>


Public Member Functions | |
| std::unique_ptr< ConfigBase > | read (CLI::App *app, bool verbose) override |
| Method to read the configuration from the DAT file. | |
Public Member Functions inherited from ReaderBase | |
| virtual | ~ReaderBase ()=default |
| Virtual destructor for ReaderBase. | |
Friends | |
| class | ReaderDATTester |
| Friend test fixture class for unit testing. | |
Additional Inherited Members | |
Public Attributes inherited from ReaderBase | |
| std::string | filename |
| The input filename to read from. | |
| char | sep |
| Field separator character. | |
| char | quote |
| Quote/delimiter character. | |
Static Protected Member Functions inherited from ReaderBase | |
| static std::string | trim (const std::string &untrimmed_str) |
| Helper static method to trim leading and trailing whitespace from a string. | |
| static bool | parseBool (const std::string &bool_str, bool &out) |
| Helper static method to parse a boolean value from a string. | |
| static bool | parseDouble (const std::string &double_str, double &out) |
| Helper static method to parse a double value from a string. | |
| static bool | parseInt (const std::string &int_str, int &out) |
| Helper static method to parse an integer value from a string. | |
| static bool | parseMethod (const std::string &method_str, Method &out) |
| Helper static method to parse a Method enum value from a string. | |
| static std::unique_ptr< ConfigBase > | make_config_from_map (const std::unordered_map< std::string, std::string > &config_map) |
| Helper static method to create a ConfigBase object from a map of string key-value pairs. | |
Reader class for DAT files.
This class extends ReaderBase and implements reading configuration data from DAT files.
|
overridevirtual |
Method to read the configuration from the DAT file.
| app | The CLI app subcommand containing the options for the DAT input. |
Implements ReaderBase.

|
friend |
Friend test fixture class for unit testing.