MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
Data Structures | Namespaces | Macros | Enumerations | Functions
json.h File Reference
#include <string>
#include <deque>
#include <map>
#include <istream>
#include <vector>
#include "socket.h"

Go to the source code of this file.

Data Structures

class  JSON::ConstIter
 
class  JSON::Iter
 
class  JSON::Value
 A JSON::Value is either a string or an integer, but may also be an object, array or null. More...
 

Namespaces

 JSON
 JSON-related classes and functions.
 

Macros

#define jsonForEach(val, i)   for(JSON::Iter i(val); i; ++i)
 
#define jsonForEachConst(val, i)   for(JSON::ConstIter i(val); i; ++i)
 

Enumerations

enum  JSON::ValueType {
  JSON::EMPTY, JSON::BOOL, JSON::INTEGER, JSON::STRING,
  JSON::ARRAY, JSON::OBJECT, JSON::EMPTY, JSON::BOOL,
  JSON::INTEGER, JSON::STRING, JSON::ARRAY, JSON::OBJECT
}
 Lists all types of JSON::Value. More...
 

Functions

template<typename T >
void JSON::decodeVector (std::string input, T &result)
 
template<typename T >
void JSON::decodeVector4 (std::string input, T &result)
 
template<typename T >
std::string JSON::encodeVector (T begin, T end)
 
template<typename T >
std::string JSON::encodeVector4 (T begin, T end)
 
Value JSON::fromDTMI (std::string &data)
 Parses a std::string to a valid JSON::Value. More...
 
Value JSON::fromDTMI (const unsigned char *data, unsigned int len, unsigned int &i)
 Parses a single DTMI type - used recursively by the JSON::fromDTMI functions. More...
 
void JSON::fromDTMI (std::string &data, Value &ret)
 Parses a std::string to a valid JSON::Value. More...
 
void JSON::fromDTMI (const unsigned char *data, unsigned int len, unsigned int &i, Value &ret)
 Parses a single DTMI type - used recursively by the JSON::fromDTMI functions. More...
 
Value JSON::fromDTMI2 (std::string &data)
 
Value JSON::fromDTMI2 (const unsigned char *data, unsigned int len, unsigned int &i)
 
void JSON::fromDTMI2 (std::string &data, Value &ret)
 
void JSON::fromDTMI2 (const unsigned char *data, unsigned int len, unsigned int &i, Value &ret)
 
Value JSON::fromFile (std::string filename)
 Converts a file to a JSON::Value. More...
 
Value JSON::fromString (std::string json)
 Converts a std::string to a JSON::Value. More...
 

Macro Definition Documentation

#define jsonForEach (   val,
 
)    for(JSON::Iter i(val); i; ++i)
#define jsonForEachConst (   val,
 
)    for(JSON::ConstIter i(val); i; ++i)