Parser::BinaryTokenizerContext Class Reference

enables efficient debugging with concise field names: Hello.version.major

#include <BinaryTokenizer.h>

Collaboration diagram for Parser::BinaryTokenizerContext:

Public Member Functions

 BinaryTokenizerContext (BinaryTokenizer &tk, const char *aName)
 starts parsing named object More...
 ~BinaryTokenizerContext ()
void close ()
 ends parsing named object; repeated calls OK More...
void success ()
 reports successful parsing of a named object and calls close() More...

Public Attributes

 tokenizer being used for parsing More...
const BinaryTokenizerContext *const parent
 enclosing context or nullptr More...
const char *const name
 this context description or nullptr More...
uint64_t start
 context parsing begins at this tokenizer position More...

Detailed Description

Definition at line 20 of file BinaryTokenizer.h.

Constructor & Destructor Documentation

Parser::BinaryTokenizerContext::BinaryTokenizerContext ( BinaryTokenizer tk,
const char *  aName 

Definition at line 124 of file BinaryTokenizer.h.

References Parser::BinaryTokenizer::context.

Parser::BinaryTokenizerContext::~BinaryTokenizerContext ( )

Definition at line 25 of file BinaryTokenizer.h.

References close().

Member Function Documentation

void Parser::BinaryTokenizerContext::close ( )

Definition at line 135 of file BinaryTokenizer.h.

References Parser::BinaryTokenizer::context, parent, and tokenizer.

Referenced by success(), and ~BinaryTokenizerContext().

Member Data Documentation

const char* const Parser::BinaryTokenizerContext::name

Definition at line 35 of file BinaryTokenizer.h.

Referenced by operator<<().

const BinaryTokenizerContext* const Parser::BinaryTokenizerContext::parent

Definition at line 34 of file BinaryTokenizer.h.

Referenced by close(), and operator<<().

uint64_t Parser::BinaryTokenizerContext::start

Definition at line 36 of file BinaryTokenizer.h.

Referenced by success().

BinaryTokenizer& Parser::BinaryTokenizerContext::tokenizer

Definition at line 33 of file BinaryTokenizer.h.

Referenced by close(), and success().

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






Web Site Translations