BloombergLP::baljsn::JsonTokenizer

This class provides a tokenizer for non-scalar bdljsn::Json objects.

Synopsis

Declared in <baljsn_jsontokenizer.h>

class JsonTokenizer;

Description

This class implements a mechanism that makes the organization and values of a non-scalar bdljsn::Json object available as a series of tokens. Some tokens have associated values. See .

Type Aliases

NameDescription
allocator_type Type of the allocator used to supply memory.

Enums

NameDescription
TokenType Enumeration of tokenizer token types.

Member Functions

NameDescription
JsonTokenizer [constructor]Constructors
~JsonTokenizer [destructor]Destroy this object.
advanceToNextToken Move to the next token in the source object.
get_allocator Return the allocator used by this object to supply memory.
reset Reset this tokenizer to use the specified json as a source object for tokens.
tokenType Return the type of the current token.
value Load into the specified data the value of the current token.

Static Member Functions

NameDescription
print Write the string representation of the specified value to stream.
toAscii Return the string representation of the specified enumeration value.

Friends

NameDescription
BloombergLP::baljsn::JsonTokenizer_VisitorThis class extracts token information from a bdljsn::Json object.