Parser for the input.conf configuration format. More...
#include <cl_InputFile.hpp>
Public Member Functions | |
| InputFile (const string &aPath) | |
| ~InputFile () override | |
| void | print () |
| const input::Section * | section (const string &aSection) const |
| return a top-level section by type string ( a labelled section is keyed as "type:label" ) | |
| const input::Section * | section (const index_t aIndex) const |
| access a section by index | |
| bool | section_exists (const string &aSection) const |
| tell if a section exists | |
| index_t | num_sections () const |
| number of sections | |
| Public Member Functions inherited from belfem::Ascii | |
| Ascii (const string &aPath, const enum FileMode &aMode) | |
| virtual | ~Ascii () |
| bool | save () |
| void | print (const std::string &aLine) |
| index_t | length () const |
| return the number of lines | |
| string & | line (const index_t aLineNumber) |
| const string & | line (const index_t aLineNumber) const |
Additional Inherited Members | |
| Protected Attributes inherited from belfem::Ascii | |
| string | mPath |
| const FileMode | mMode |
| Cell< string > | mBuffer |
| bool | mChangedSinceLastSave = false |
Parser for the input.conf configuration format.
| belfem::InputFile::InputFile | ( | const string & | aPath | ) |
|
override |
| index_t belfem::InputFile::num_sections | ( | ) | const |
number of sections
| void belfem::InputFile::print | ( | ) |
| const input::Section * belfem::InputFile::section | ( | const index_t | aIndex | ) | const |
access a section by index
| const input::Section * belfem::InputFile::section | ( | const string & | aSection | ) | const |
return a top-level section by type string ( a labelled section is keyed as "type:label" )
| bool belfem::InputFile::section_exists | ( | const string & | aSection | ) | const |
tell if a section exists