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.h File Reference
#include <cstddef>
#include <cassert>
#include <iostream>
#include <map>
#include <vector>
#include <string>
#include <sstream>

Go to the source code of this file.

Classes

struct  jsonxx::Null
 
struct  jsonxx::identity< T >
 
class  jsonxx::Object
 
class  jsonxx::Array
 
class  jsonxx::Value
 

Namespaces

 jsonxx
 

Macros

#define JSONXX_MAJOR   "0"
 
#define JSONXX_MINOR   "22"
 
#define JSONXX_EXTRA   "a"
 
#define JSONXX_VERSION   JSONXX_MAJOR "." JSONXX_MINOR "-" JSONXX_EXTRA
 
#define JSONXX_XML_TAG   "<!-- generated by jsonxx " JSONXX_VERSION " -->"
 
#define JSONXX_COMPILER_HAS_CXX11   0
 
#define JSONXX_ASSERT(...)
 
#define number(TYPE)
 

Typedefs

typedef long double jsonxx::Number
 
typedef bool jsonxx::Boolean
 
typedef std::string jsonxx::String
 

Enumerations

enum  jsonxx::Settings {
  jsonxx::Enabled = true, jsonxx::Disabled = false, jsonxx::Permissive = true, jsonxx::Strict = false,
  jsonxx::Parser = Strict, jsonxx::UnquotedKeys = Disabled, jsonxx::Assertions = Disabled
}
 
enum  jsonxx::Format {
  jsonxx::JSON = 0, jsonxx::JSONx = 1, jsonxx::JXML = 2, jsonxx::JXMLex = 3,
  jsonxx::TaggedXML = 4
}
 

Functions

bool jsonxx::parser_is_strict ()
 
bool jsonxx::parser_is_permissive ()
 
bool jsonxx::unquoted_keys_are_enabled ()
 
bool jsonxx::validate (const std::string &input)
 
bool jsonxx::validate (std::istream &input)
 
std::string jsonxx::reformat (const std::string &input)
 
std::string jsonxx::reformat (std::istream &input)
 
std::string jsonxx::xml (const std::string &input, unsigned format)
 
std::string jsonxx::xml (std::istream &input, unsigned format)
 
void jsonxx::assertion (const char *file, int line, const char *expression, bool result)
 
std::ostream & operator<< (std::ostream &stream, const jsonxx::Value &v)
 
std::ostream & operator<< (std::ostream &stream, const jsonxx::Object &v)
 
std::ostream & operator<< (std::ostream &stream, const jsonxx::Array &v)
 

Macro Definition Documentation

◆ JSONXX_ASSERT

#define JSONXX_ASSERT (   ...)
Value:
jsonxx::assertion(__FILE__,__LINE__,#__VA_ARGS__,bool(__VA_ARGS__)); } while(0)
Definition: jsonxx.h:65
void assertion(const char *file, int line, const char *expression, bool result)
Definition: jsonxx.cc:27

◆ JSONXX_COMPILER_HAS_CXX11

#define JSONXX_COMPILER_HAS_CXX11   0

◆ JSONXX_EXTRA

#define JSONXX_EXTRA   "a"

◆ JSONXX_MAJOR

#define JSONXX_MAJOR   "0"

◆ JSONXX_MINOR

#define JSONXX_MINOR   "22"

◆ JSONXX_VERSION

#define JSONXX_VERSION   JSONXX_MAJOR "." JSONXX_MINOR "-" JSONXX_EXTRA

◆ JSONXX_XML_TAG

#define JSONXX_XML_TAG   "<!-- generated by jsonxx " JSONXX_VERSION " -->"

◆ number

#define number (   TYPE)
Value:
void import( const TYPE &n ) { \
reset(); \
type_ = NUMBER_; \
number_value_ = static_cast<long double>(n); \
}

Function Documentation

◆ operator<<() [1/3]

std::ostream& operator<< ( std::ostream &  stream,
const jsonxx::Value v 
)

◆ operator<<() [2/3]

std::ostream& operator<< ( std::ostream &  stream,
const jsonxx::Object v 
)

◆ operator<<() [3/3]

std::ostream& operator<< ( std::ostream &  stream,
const jsonxx::Array v 
)