Class InputParsercan be used to parse input. More...
#include <InputParser.hpp>
Public Member Functions | |
| InputParser () | |
| Default constructor. | |
| void | AddField (const std::string &entry) |
| Adds entry to the list of fields. | |
| int | CheckEntry (const std::string &argument) |
| Checks if the argument can be associated with any of the added fields. | |
| virtual | ~InputParser () |
| Default desctuctor. | |
Class InputParsercan be used to parse input.
| void CppTools::InputParser::AddField | ( | const std::string & | entry | ) |
Adds entry to the list of fields.
| [in] | entry | parser field entry |
| int CppTools::InputParser::CheckEntry | ( | const std::string & | argument | ) |
Checks if the argument can be associated with any of the added fields.
| [in] | argument | argument to check |
Returns the index of the field the argument can be associated with; returns -1 if no fields can be associated with the argument