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
element.h File Reference

Declaration of a BSON element. More...

#include "typeinfo.h"
#include <sstream>
#include <memory>
#include <vector>
#include "template_spec/document.hpp"
#include "template_spec/floats.hpp"
#include "template_spec/strings.hpp"
#include "template_spec/ints.hpp"
#include "template_spec/bools.hpp"
#include "template_spec/vectors.hpp"
#include "template_spec/chararrs.hpp"
#include "template_spec/voids.hpp"
#include "template_spec/pairs.hpp"
#include "template_spec/jsscope.hpp"
#include "template_spec/binary.hpp"
#include "element.hpp"

Go to the source code of this file.

Classes

class  bson::Element
 

Typedefs

typedef std::vector< Element > bson::array
 
typedef std::array< unsigned
char, OID_SIZE > 
bson::oid
 
typedef std::pair< std::string,
std::string > 
bson::regex
 
typedef std::pair< std::string,
std::array< unsigned char,
DB_PTR_SIZE > > 
bson::dbptr
 
typedef std::pair< std::string,
Document > 
bson::jscode_scope
 
typedef std::pair< unsigned
char, std::string > 
bson::binary
 

Functions

template<typename T >
std::string bson::to_string ()
 converts a type name to a string (for exceptions) More...
 
template<typename T >
TypeInfo bson::default_type ()
 determines the default type for type T More...
 

Variables

const char bson::X00 = '\0'
 
const int bson::OID_SIZE = 12
 
const int bson::DB_PTR_SIZE = 12
 

Detailed Description

Declaration of a BSON element.

Author
Nathan Eloe