btool
A parser/converter/transpiler for .bib files
IdentifierParserState.hpp
Go to the documentation of this file.
1
#ifndef BIBPARSER_IDENTIFIERPARSERSTATE_HPP
2
#define BIBPARSER_IDENTIFIERPARSERSTATE_HPP
3
4
#include <
AbstractParserState.hpp
>
5
#include <
ParserContext.hpp
>
6
#include <
BibElement.hpp
>
7
#include <vector>
8
#include <string>
9
14
class
IdentifierParserState
:
public
AbstractParserState
{
15
std::string
identifier
;
16
17
public
:
18
19
IdentifierParserState
(
20
ParserContext
&
context
,
21
std::vector<BibElement> &
result
22
) noexcept;
23
24
auto
handleCharacter
(
char
c) ->
ParserState
*
override
;
25
};
26
27
#endif
ParserState
Definition:
ParserState.hpp:7
ParserContext.hpp
AbstractParserState
Definition:
AbstractParserState.hpp:13
IdentifierParserState::handleCharacter
auto handleCharacter(char c) -> ParserState *override
Definition:
IdentifierParserState.cpp:23
ParserContext
Definition:
ParserContext.hpp:10
IdentifierParserState
Identifier Parser State.
Definition:
IdentifierParserState.hpp:14
AbstractParserState::context
ParserContext & context
Context of the State.
Definition:
AbstractParserState.hpp:15
AbstractParserState.hpp
IdentifierParserState::identifier
std::string identifier
a accumulator for identifier-characters while parsing it
Definition:
IdentifierParserState.hpp:15
IdentifierParserState::IdentifierParserState
IdentifierParserState(ParserContext &context, std::vector< BibElement > &result) noexcept
Definition:
IdentifierParserState.cpp:14
AbstractParserState::result
std::vector< BibElement > & result
Container for accumulating Parsing-Results.
Definition:
AbstractParserState.hpp:16
BibElement.hpp
src
IdentifierParserState.hpp
Generated by
1.8.19