MongoType
MongoDB Collection Data Dump with BSON Types
|
Visitor interface for parsing nested BSON data objects. More...
#include <BSONObjectParser.hpp>
Visitor interface for parsing nested BSON data objects.
Usage:
Definition at line 370 of file BSONObjectParser.hpp.
Public Member Functions | |
virtual | ~IBSONObjectVisitor () |
virtual void | onParseStart ()=0 |
Parser Construction Event. More... | |
virtual void | onParseEnd ()=0 |
Parser Destruction Event. More... | |
virtual void | onObjectStart (const BSONParserStack &stack)=0 |
BSON Object Precursor Event. More... | |
virtual void | onObjectEnd (const BSONParserStack &stack)=0 |
BSON Object Successor Event. More... | |
virtual void | onArrayStart (const BSONParserStack &stack)=0 |
BSON Array Precursor Event. More... | |
virtual void | onArrayEnd (const BSONParserStack &stack)=0 |
BSON Array Successor Event. More... | |
virtual void | onElement (const BSONParserStack &stack)=0 |
BSON Element Event. More... | |
|
inlinevirtual |
Definition at line 372 of file BSONObjectParser.hpp.
|
pure virtual |
BSON Array Successor Event.
[in] | stack | The BSONParserStack object containing the current parse context. |
Invoked once per each non-terminal BSON array after parsing the contained BSON elements.
Implemented in mongotype::JSONDump, mongotype::BSONObjectTypeDump, and mongotype::BSONDotNotationDump.
Referenced by mongotype::BSONObjectParser::parseElementRecursive().
|
pure virtual |
BSON Array Precursor Event.
[in] | stack | The BSONParserStack object containing the current parse context. |
Invoked once per each non-terminal BSON array before parsing the contained BSON elements.
Implemented in mongotype::JSONDump, mongotype::BSONObjectTypeDump, and mongotype::BSONDotNotationDump.
Referenced by mongotype::BSONObjectParser::parseElementRecursive().
|
pure virtual |
BSON Element Event.
[in] | stack | The BSONParserStack object containing the current parse context. |
Invoked once per each terminal BSON element that is not a BSON object or a BSON array.
Implemented in mongotype::JSONDump, mongotype::BSONObjectTypeDump, and mongotype::BSONDotNotationDump.
Referenced by mongotype::BSONObjectParser::parseElementRecursive().
|
pure virtual |
BSON Object Successor Event.
[in] | stack | The BSONParserStack object containing the current parse context. |
Invoked once per each non-terminal BSON object after parsing the contained BSON elements.
Implemented in mongotype::JSONDump, mongotype::BSONObjectTypeDump, and mongotype::BSONDotNotationDump.
Referenced by mongotype::BSONObjectParser::parseObjectRecursive().
|
pure virtual |
BSON Object Precursor Event.
[in] | stack | The BSONParserStack object containing the current parse context. |
Invoked once per each non-terminal BSON object before parsing the contained BSON elements.
Implemented in mongotype::JSONDump, mongotype::BSONObjectTypeDump, and mongotype::BSONDotNotationDump.
Referenced by mongotype::BSONObjectParser::parseObjectRecursive().
|
pure virtual |
Parser Destruction Event.
Invoked once each parse after all other events. Used to destroy the parse state.
Implemented in mongotype::JSONDump, mongotype::BSONObjectTypeDump, and mongotype::BSONDotNotationDump.
Referenced by mongotype::BSONObjectParser::parse().
|
pure virtual |
Parser Construction Event.
Invoked once each parse before all other events. Used to construct the parse state.
Implemented in mongotype::JSONDump, mongotype::BSONObjectTypeDump, and mongotype::BSONDotNotationDump.
Referenced by mongotype::BSONObjectParser::parse().