FastBSON
A BSON library that will hopefully be faster and more robust than the one built into mongo-cxx-driver
 All Classes Files Functions Friends
typeinfo.h File Reference

Enumeration to keep track of types for bson. More...

#include <exception>
#include <string>
#include <boost/concept_check.hpp>

Go to the source code of this file.

Classes

class  bson::type_error< T >
 
class  bson::type_UNKNOWN
 

Enumerations

enum  TypeInfo {
  _UNKNOWN =0, FLOATING =1, STRING, DOCUMENT,
  ARRAY, BINARY, UNDEF, OID,
  BOOL, DATETIME, NIL, REGEX,
  DBPTR, JS, DEPRECATED, JS_SCOPE,
  INT32, TIMESTAMP, INT64, MINKEY =0xFF,
  MAXKEY =0x7F
}
 

Functions

char bson::to_char (const TypeInfo &ti)
 
template<typename T >
std::string bson::to_string ()
 converts a type name to a string (for exceptions) More...
 
std::string bson::to_string (const TypeInfo &ti)
 

Variables

const std::string bson::NAMES []
 

Detailed Description

Enumeration to keep track of types for bson.

Author
Nathan Eloe