![]() |
Bridges-C++ 3.5.0
Bridges(C++ API)
|
#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 | |
| namespace | 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. | |
| namespace | 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) |
| #define RAPIDJSON_ASSERT | ( | x | ) | if (!( x )) { throw rapidjson_exception( #x, __FILE__, __LINE__ ) ;} |
| #define RAPIDJSON_ASSERT_THROWS |