Parser::BinaryTokenizerContext Class Reference

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

#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 22 of file BinaryTokenizer.h.

Constructor & Destructor Documentation

◆ BinaryTokenizerContext()

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

Definition at line 136 of file BinaryTokenizer.h.

References Parser::BinaryTokenizer::context.

◆ ~BinaryTokenizerContext()

Parser::BinaryTokenizerContext::~BinaryTokenizerContext ( )

Definition at line 27 of file BinaryTokenizer.h.

References close().

Member Function Documentation

◆ close()

void Parser::BinaryTokenizerContext::close ( )

Definition at line 147 of file BinaryTokenizer.h.

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

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

◆ success()

Member Data Documentation

◆ name

const char* const Parser::BinaryTokenizerContext::name

Definition at line 37 of file BinaryTokenizer.h.

Referenced by operator<<().

◆ parent

const BinaryTokenizerContext* const Parser::BinaryTokenizerContext::parent

Definition at line 36 of file BinaryTokenizer.h.

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

◆ start

uint64_t Parser::BinaryTokenizerContext::start

Definition at line 38 of file BinaryTokenizer.h.

Referenced by success().

◆ tokenizer

BinaryTokenizer& Parser::BinaryTokenizerContext::tokenizer

Definition at line 35 of file BinaryTokenizer.h.

Referenced by close(), and success().

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






Web Site Translations