btool
A parser/converter/transpiler for .bib files
StyleParserState Class Reference

Style Parser State. More...

#include <StyleParserState.hpp>

+ Inheritance diagram for StyleParserState:
+ Collaboration diagram for StyleParserState:

Public Member Functions

 StyleParserState (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 style
 a accumulator for style-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
ParserContextcontext
 Context of the State. More...
 
std::vector< BibElement > & result
 Container for accumulating Parsing-Results. More...
 

Detailed Description

Style Parser State.

Style State of the Parser, parsing the style of the Bib-Element

Examples
/github/workspace/test/ParserStateFixtureTest.cpp.

Definition at line 14 of file StyleParserState.hpp.

Constructor & Destructor Documentation

◆ StyleParserState()

StyleParserState::StyleParserState ( ParserContext context,
std::vector< BibElement > &  result 
)
noexcept

Constructor.

Parameters
contextof the parser
resultaccumulator of parsing-results

Definition at line 14 of file StyleParserState.cpp.

Member Function Documentation

◆ handleCharacter()

auto StyleParserState::handleCharacter ( char  c) -> ParserState *
overridevirtual

Handles the next character in style-state

Parameters
cthe next character to parse
Returns
a new parser-state
Exceptions
ParserExceptionon parsing-error (invalid input)

Reimplemented from AbstractParserState.

Definition at line 23 of file StyleParserState.cpp.

Member Data Documentation

◆ style

std::string StyleParserState::style
private

a accumulator for style-characters while parsing it

Definition at line 15 of file StyleParserState.hpp.


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