MongoType
MongoDB Collection Data Dump with BSON Types
|
BSON Element Type String Lookup. More...
#include <BSONTypeFormatter.hpp>
BSON Element Type String Lookup.
Provides conversion from BSON integer element type codes to human readable strings.
Definition at line 25 of file BSONTypeFormatter.hpp.
Public Member Functions | |
BSONTypeFormatter (Parameters &pparams, const BSONElement &e) | |
Construct a type lookup instance. More... | |
string | to_string () |
Stringize the BSON type per the mask. More... | |
OSTREAM_FRIEND (BSONTypeFormatter &bstf) | |
BSON Object Type Strings Stream Output Operator. More... | |
![]() | |
BSONTypeMap (const BSONElement &e) | |
Construct a type lookup instance. More... | |
const BSONTypeElement & | lookup (BSONType type) |
const BSONTypeElement & | lookup () |
string | to_string () |
Stringize BSON Object Type. More... | |
OSTREAM_FRIEND (BSONTypeMap &bstn) | |
BSON Object Type Strings Stream Output Operator. More... | |
Private Attributes | |
Parameters & | params |
Additional Inherited Members | |
![]() | |
const BSONElement & | element |
|
inline |
Construct a type lookup instance.
[in] | pparams | The command line parameters object. |
[in] | e | The BSONElement whose type string will be looked up. |
Definition at line 36 of file BSONTypeFormatter.hpp.
|
inline |
BSON Object Type Strings Stream Output Operator.
[in] | bstf | The BSONTypeFormatter object to write to the output stream. |
Definition at line 73 of file BSONTypeFormatter.hpp.
References to_string().
|
inline |
Stringize the BSON type per the mask.
Definition at line 44 of file BSONTypeFormatter.hpp.
References mongotype::BSONTypeMap::element, mongotype::BSONTypeElement::getDesc(), mongotype::BSONTypeElement::getName(), mongotype::Parameters::getTypeMask(), mongotype::BSONTypeMap::lookup(), params, mongotype::TYPE_CODE, mongotype::TYPE_DESC, and mongotype::TYPE_NAME.
Referenced by mongotype::BSONDotNotationDump::onElement(), and OSTREAM_FRIEND().
|
private |
Definition at line 27 of file BSONTypeFormatter.hpp.
Referenced by to_string().