Bridges-C++  3.4.5-dev1-6-g935685a
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
 Support for drawing Bar charts.
 
 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