Bridges-C++  3.4.4
Bridges(C++ API)
Classes | Namespaces | Macros | Functions
JSONutil.h File Reference
#include <sstream>
#include <rapidjson/document.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>

Go to the source code of this file.

Classes

struct  rapidjson_exception
 

Namespaces

 bridges
 these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color arrays as strings. The code is adapted from external sources detailed below.
 
 bridges::JSONUtil
 

Macros

#define RAPIDJSON_ASSERT(x)   if (!( x )) { throw rapidjson_exception( #x, __FILE__, __LINE__ ) ;}
 
#define RAPIDJSON_ASSERT_THROWS
 

Functions

template<typename T >
std::string bridges::JSONUtil::JSONencode (const T &d)
 
template<>
std::string bridges::JSONUtil::JSONencode< std::string > (const std::string &str)
 
std::string bridges::JSONUtil::JSONencode (const char *str)
 
std::string bridges::JSONUtil::JSONencode (const double &d, int precision=-1)
 
std::string bridges::JSONUtil::JSONencode (const float &d, int precision=-1)
 

Macro Definition Documentation

◆ RAPIDJSON_ASSERT

#define RAPIDJSON_ASSERT (   x)    if (!( x )) { throw rapidjson_exception( #x, __FILE__, __LINE__ ) ;}

◆ RAPIDJSON_ASSERT_THROWS

#define RAPIDJSON_ASSERT_THROWS