Identifier Parser State. More...
#include <IdentifierParserState.hpp>
Public Member Functions | |
IdentifierParserState (ParserContext &context, std::vector< BibElement > &result) noexcept | |
auto | handleCharacter (char c) -> ParserState *override |
Public Member Functions inherited from AbstractParserState | |
AbstractParserState (ParserContext &context, std::vector< BibElement > &result) noexcept | |
Public Member Functions inherited from ParserState | |
virtual | ~ParserState ()=default |
Private Attributes | |
std::string | identifier |
a accumulator for identifier-characters while parsing it More... | |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractParserState | |
auto | fail (const std::string &message) -> void |
Protected Attributes inherited from AbstractParserState | |
ParserContext & | context |
Context of the State. More... | |
std::vector< BibElement > & | result |
Container for accumulating Parsing-Results. More... | |
Identifier Parser State.
Identifier State of the Parser, parsing the identifier of the Bib-Element
Definition at line 14 of file IdentifierParserState.hpp.
|
noexcept |
Constructor.
context | of the parser |
result | accumulator of parsing-results |
Definition at line 14 of file IdentifierParserState.cpp.
|
overridevirtual |
Handles the next character in identifier-state
c | the next character to parse |
ParserException | on parsing-error (invalid input) |
Reimplemented from AbstractParserState.
Definition at line 23 of file IdentifierParserState.cpp.
|
private |
a accumulator for identifier-characters while parsing it
Definition at line 15 of file IdentifierParserState.hpp.