MongoType
MongoDB Collection Data Dump with BSON Types
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mongotype::BSONTypeElement Class Reference

Store the name and description of a single BSON data type. More...

#include <BSONTypeMap.hpp>

Details:

Store the name and description of a single BSON data type.

Used as the elements of a lookup table.

See Also
BSONTypeStringsMap

Definition at line 43 of file BSONTypeMap.hpp.

Public Member Functions

 BSONTypeElement (const char *pname="", const char *pdescription="")
 
const string & getName () const
 
const string & getDesc () const
 

Private Attributes

string name
 
string description
 

Constructor & Destructor Documentation

mongotype::BSONTypeElement::BSONTypeElement ( const char *  pname = "",
const char *  pdescription = "" 
)
inline

Default Constructor

Definition at line 57 of file BSONTypeMap.hpp.

Member Function Documentation

const string& mongotype::BSONTypeElement::getDesc ( ) const
inline

Fetch the desciption.

Returns
The description string.

Definition at line 73 of file BSONTypeMap.hpp.

References description.

Referenced by mongotype::BSONTypeFormatter::to_string(), and mongotype::BSONTypeMap::to_string().

Here is the caller graph for this function:

const string& mongotype::BSONTypeElement::getName ( ) const
inline

Fetch the name.

Returns
The name string.

Definition at line 65 of file BSONTypeMap.hpp.

References name.

Referenced by mongotype::BSONTypeFormatter::to_string(), and mongotype::BSONTypeMap::to_string().

Here is the caller graph for this function:

Member Data Documentation

string mongotype::BSONTypeElement::description
private

Additional comments and information regarding the BSON type.

Definition at line 51 of file BSONTypeMap.hpp.

Referenced by getDesc().

string mongotype::BSONTypeElement::name
private

The BSON type name from the BSON Non-terminals definition.

Definition at line 47 of file BSONTypeMap.hpp.

Referenced by getName().


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