This is a push parser for lists.

Synopsis

Declared in <balxml_listparser.h>

template<class TYPE>
class ListParser;

Type Aliases

Name

Description

ParseElementCallback

Callable type for parsing a single list element.

ParseElementFunction

Function‐pointer type for parsing a single list element.

Member Functions

Name

Description

ListParser [constructor]

Create a parser for lists using the specified parseElementCallback functor to parse each element and the optionally specified basicAllocator for supplying memory. If basicAllocator is 0, the currently installed default allocator will be used.

beginParse

Prepare the parser to start parsing a new value and associate the specified object with the parser. Return 0 if successful and non‐zero otherwise.

endParse

Ends the parse operation and store the value parsed from the pushed characters into the associated object. Return 0 if successful and non‐zero otherwise. The behavior is undefined unless an object is associated with this parser. Upon successful completion, the parser will be disassociated with the object.

pushCharacters

Push the characters ranging from the specified begin up to (but not including) the specified end into this parser. Return 0 if successful and non‐zero otherwise. The parameterized INPUT_ITERATOR must be dereferenceable to a char value. The behavior is undefined unless an object is associated with this parser.

Created with MrDocs