5MP Motion Camera JPEG Image and Movie Catcher  1.1.1.1
A CGI interface to capture and display pictures and movies using OpenCV.
jsonxx::Object Class Reference

#include <jsonxx.h>

Public Types

typedef std::map< std::string, Value * > container
 

Public Member Functions

 Object ()
 
 ~Object ()
 
template<typename T >
bool has (const std::string &key) const
 
template<typename T >
T & get (const std::string &key)
 
template<typename T >
const T & get (const std::string &key) const
 
template<typename T >
const T & get (const std::string &key, const typename identity< T >::type &default_value) const
 
size_t size () const
 
bool empty () const
 
const std::map< std::string, Value * > & kv_map () const
 
std::string json () const
 
std::string xml (unsigned format=JSONx, const std::string &header=std::string(), const std::string &attrib=std::string()) const
 
std::string write (unsigned format) const
 
void reset ()
 
bool parse (std::istream &input)
 
bool parse (const std::string &input)
 
void import (const Object &other)
 
void import (const std::string &key, const Value &value)
 
Objectoperator<< (const Value &value)
 
Objectoperator<< (const Object &value)
 
Objectoperator= (const Object &value)
 
 Object (const Object &other)
 
 Object (const std::string &key, const Value &value)
 
template<size_t N>
 Object (const char(&key)[N], const Value &value)
 
template<typename T >
Objectoperator<< (const T &value)
 

Static Protected Member Functions

static bool parse (std::istream &input, Object &object)
 

Protected Attributes

container value_map_
 
std::string odd
 

Member Typedef Documentation

◆ container

typedef std::map<std::string, Value*> jsonxx::Object::container

Constructor & Destructor Documentation

◆ Object() [1/4]

jsonxx::Object::Object ( )

◆ ~Object()

jsonxx::Object::~Object ( )

◆ Object() [2/4]

jsonxx::Object::Object ( const Object other)

◆ Object() [3/4]

jsonxx::Object::Object ( const std::string &  key,
const Value value 
)

◆ Object() [4/4]

template<size_t N>
jsonxx::Object::Object ( const char(&)  key[N],
const Value value 
)
inline

Member Function Documentation

◆ empty()

bool jsonxx::Object::empty ( ) const

◆ get() [1/3]

template<typename T >
T & jsonxx::Object::get ( const std::string &  key)

◆ get() [2/3]

template<typename T >
const T & jsonxx::Object::get ( const std::string &  key) const

◆ get() [3/3]

template<typename T >
const T & jsonxx::Object::get ( const std::string &  key,
const typename identity< T >::type &  default_value 
) const

◆ has()

template<typename T >
bool jsonxx::Object::has ( const std::string &  key) const

◆ import() [1/2]

void jsonxx::Object::import ( const Object other)

◆ import() [2/2]

void jsonxx::Object::import ( const std::string &  key,
const Value value 
)

◆ json()

std::string jsonxx::Object::json ( ) const

◆ kv_map()

const std::map< std::string, Value * > & jsonxx::Object::kv_map ( ) const

◆ operator<<() [1/3]

Object & jsonxx::Object::operator<< ( const Value value)

◆ operator<<() [2/3]

Object & jsonxx::Object::operator<< ( const Object value)

◆ operator<<() [3/3]

template<typename T >
Object & jsonxx::Object::operator<< ( const T &  value)
inline

◆ operator=()

Object & jsonxx::Object::operator= ( const Object value)

◆ parse() [1/3]

bool jsonxx::Object::parse ( std::istream &  input)

◆ parse() [2/3]

bool jsonxx::Object::parse ( const std::string &  input)

◆ parse() [3/3]

bool jsonxx::Object::parse ( std::istream &  input,
Object object 
)
staticprotected

◆ reset()

void jsonxx::Object::reset ( )

◆ size()

size_t jsonxx::Object::size ( ) const

◆ write()

std::string jsonxx::Object::write ( unsigned  format) const

◆ xml()

std::string jsonxx::Object::xml ( unsigned  format = JSONx,
const std::string &  header = std::string(),
const std::string &  attrib = std::string() 
) const

Member Data Documentation

◆ odd

std::string jsonxx::Object::odd
protected

◆ value_map_

container jsonxx::Object::value_map_
protected

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