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::Array Class Reference

#include <jsonxx.h>

Public Types

typedef std::vector< Value * > container
 

Public Member Functions

 Array ()
 
 ~Array ()
 
size_t size () const
 
bool empty () const
 
template<typename T >
bool has (unsigned int i) const
 
template<typename T >
T & get (unsigned int i)
 
template<typename T >
const T & get (unsigned int i) const
 
template<typename T >
const T & get (unsigned int i, const typename identity< T >::type &default_value) const
 
const std::vector< Value * > & values () 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 append (const Array &other)
 
void append (const Value &value)
 
void import (const Array &other)
 
void import (const Value &value)
 
Arrayoperator<< (const Array &other)
 
Arrayoperator<< (const Value &value)
 
Arrayoperator= (const Array &other)
 
Arrayoperator= (const Value &value)
 
 Array (const Array &other)
 
 Array (const Value &value)
 

Static Protected Member Functions

static bool parse (std::istream &input, Array &array)
 

Protected Attributes

container values_
 

Member Typedef Documentation

◆ container

typedef std::vector<Value*> jsonxx::Array::container

Constructor & Destructor Documentation

◆ Array() [1/3]

jsonxx::Array::Array ( )

◆ ~Array()

jsonxx::Array::~Array ( )

◆ Array() [2/3]

jsonxx::Array::Array ( const Array other)

◆ Array() [3/3]

jsonxx::Array::Array ( const Value value)

Member Function Documentation

◆ append() [1/2]

void jsonxx::Array::append ( const Array other)

◆ append() [2/2]

void jsonxx::Array::append ( const Value value)
inline

◆ empty()

bool jsonxx::Array::empty ( ) const

◆ get() [1/3]

template<typename T >
T & jsonxx::Array::get ( unsigned int  i)

◆ get() [2/3]

template<typename T >
const T & jsonxx::Array::get ( unsigned int  i) const

◆ get() [3/3]

template<typename T >
const T & jsonxx::Array::get ( unsigned int  i,
const typename identity< T >::type &  default_value 
) const

◆ has()

template<typename T >
bool jsonxx::Array::has ( unsigned int  i) const

◆ import() [1/2]

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

◆ import() [2/2]

void jsonxx::Array::import ( const Value value)

◆ json()

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

◆ operator<<() [1/2]

Array & jsonxx::Array::operator<< ( const Array other)

◆ operator<<() [2/2]

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

◆ operator=() [1/2]

Array & jsonxx::Array::operator= ( const Array other)

◆ operator=() [2/2]

Array & jsonxx::Array::operator= ( const Value value)

◆ parse() [1/3]

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

◆ parse() [2/3]

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

◆ parse() [3/3]

bool jsonxx::Array::parse ( std::istream &  input,
Array array 
)
staticprotected

◆ reset()

void jsonxx::Array::reset ( )

◆ size()

size_t jsonxx::Array::size ( ) const

◆ values()

const std::vector<Value*>& jsonxx::Array::values ( ) const
inline

◆ write()

std::string jsonxx::Array::write ( unsigned  format) const
inline

◆ xml()

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

Member Data Documentation

◆ values_

container jsonxx::Array::values_
protected

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