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 Namespace Reference

Namespaces

 json
 
 xml
 

Classes

class  Array
 
struct  identity
 
struct  Null
 
class  Object
 
class  Value
 

Typedefs

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

Enumerations

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

Functions

bool match (const char *pattern, std::istream &input)
 
bool parse_array (std::istream &input, Array &array)
 
bool parse_bool (std::istream &input, Boolean &value)
 
bool parse_comment (std::istream &input)
 
bool parse_null (std::istream &input)
 
bool parse_number (std::istream &input, Number &value)
 
bool parse_object (std::istream &input, Object &object)
 
bool parse_string (std::istream &input, String &value)
 
bool parse_identifier (std::istream &input, String &value)
 
bool parse_value (std::istream &input, Value &value)
 
static std::ostream & stream_string (std::ostream &stream, const std::string &string)
 
bool validate (std::istream &input)
 
bool validate (const std::string &input)
 
std::string reformat (std::istream &input)
 
std::string reformat (const std::string &input)
 
std::string xml (std::istream &input, unsigned format)
 
std::string xml (const std::string &input, unsigned format)
 
bool parser_is_strict ()
 
bool parser_is_permissive ()
 
bool unquoted_keys_are_enabled ()
 
void assertion (const char *file, int line, const char *expression, bool result)
 

Typedef Documentation

◆ Boolean

typedef bool jsonxx::Boolean

◆ Number

typedef long double jsonxx::Number

◆ String

typedef std::string jsonxx::String

Enumeration Type Documentation

◆ Format

Enumerator
JSON 
JSONx 
JXML 
JXMLex 
TaggedXML 

◆ Settings

Enumerator
Enabled 
Disabled 
Permissive 
Strict 
Parser 
UnquotedKeys 
Assertions 

Function Documentation

◆ assertion()

void jsonxx::assertion ( const char *  file,
int  line,
const char *  expression,
bool  result 
)

◆ match()

bool jsonxx::match ( const char *  pattern,
std::istream &  input 
)

◆ parse_array()

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

◆ parse_bool()

bool jsonxx::parse_bool ( std::istream &  input,
Boolean value 
)

◆ parse_comment()

bool jsonxx::parse_comment ( std::istream &  input)

◆ parse_identifier()

bool jsonxx::parse_identifier ( std::istream &  input,
String value 
)

◆ parse_null()

bool jsonxx::parse_null ( std::istream &  input)

◆ parse_number()

bool jsonxx::parse_number ( std::istream &  input,
Number value 
)

◆ parse_object()

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

◆ parse_string()

bool jsonxx::parse_string ( std::istream &  input,
String value 
)

◆ parse_value()

bool jsonxx::parse_value ( std::istream &  input,
Value value 
)

◆ parser_is_permissive()

bool jsonxx::parser_is_permissive ( )
inline

◆ parser_is_strict()

bool jsonxx::parser_is_strict ( )
inline

◆ reformat() [1/2]

std::string jsonxx::reformat ( std::istream &  input)

◆ reformat() [2/2]

std::string jsonxx::reformat ( const std::string &  input)

◆ stream_string()

static std::ostream& jsonxx::stream_string ( std::ostream &  stream,
const std::string &  string 
)
static

◆ unquoted_keys_are_enabled()

bool jsonxx::unquoted_keys_are_enabled ( )
inline

◆ validate() [1/2]

bool jsonxx::validate ( std::istream &  input)

◆ validate() [2/2]

bool jsonxx::validate ( const std::string &  input)

◆ xml() [1/2]

std::string jsonxx::xml ( std::istream &  input,
unsigned  format 
)

◆ xml() [2/2]

std::string jsonxx::xml ( const std::string &  input,
unsigned  format 
)