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