![]() |
GNSS-SDR
0.0.14
An Open Source GNSS Software Defined Receiver
|
Read an INI file into easy-to-access name/value pairs. (Note that I've gone for simplicity here rather than speed, but it should be pretty decent.) More...
#include <INIReader.h>
Public Member Functions | |
| INIReader (const std::string &filename) | |
| Construct INIReader and parse given filename. See ini.h for more info about the parsing. More... | |
| int | ParseError () const |
| Return the result of ini_parse(), i.e., 0 on success, line number of first error on parse error, or -1 on file open error. More... | |
| std::string | Get (const std::string §ion, const std::string &name, const std::string &default_value) |
| Get a string value from INI file, returning default_value if not found. More... | |
| int64_t | GetInteger (const std::string §ion, const std::string &name, int64_t default_value) |
| Get an integer (long) value from INI file, returning default_value if not found. More... | |
Read an INI file into easy-to-access name/value pairs. (Note that I've gone for simplicity here rather than speed, but it should be pretty decent.)
Definition at line 45 of file INIReader.h.
|
explicit |
| std::string INIReader::Get | ( | const std::string & | section, |
| const std::string & | name, | ||
| const std::string & | default_value | ||
| ) |
Get a string value from INI file, returning default_value if not found.
| int64_t INIReader::GetInteger | ( | const std::string & | section, |
| const std::string & | name, | ||
| int64_t | default_value | ||
| ) |
Get an integer (long) value from INI file, returning default_value if not found.
| int INIReader::ParseError | ( | ) | const |
Return the result of ini_parse(), i.e., 0 on success, line number of first error on parse error, or -1 on file open error.
1.8.14