CppTools
Loading...
Searching...
No Matches
CppTools::InputParser Class Reference

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.

Detailed Description

Class InputParsercan be used to parse input.

Member Function Documentation

◆ AddField()

void CppTools::InputParser::AddField ( const std::string & entry)

Adds entry to the list of fields.

Parameters
[in]entryparser field entry

◆ CheckEntry()

int CppTools::InputParser::CheckEntry ( const std::string & argument)

Checks if the argument can be associated with any of the added fields.

Parameters
[in]argumentargument 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


The documentation for this class was generated from the following file: