Chatterino
Namespaces | Functions
RapidjsonHelpers.hpp File Reference
#include "util/RapidJsonSerializeQString.hpp"
#include <rapidjson/document.h>
#include <pajlada/serialize.hpp>
#include <cassert>
#include <string>
Include dependency graph for RapidjsonHelpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 chatterino
 
 chatterino::rj
 

Functions

void chatterino::rj::addMember (rapidjson::Value &obj, const char *key, rapidjson::Value &&value, rapidjson::Document::AllocatorType &a)
 
void chatterino::rj::addMember (rapidjson::Value &obj, const char *key, rapidjson::Value &value, rapidjson::Document::AllocatorType &a)
 
template<typename Type >
void chatterino::rj::set (rapidjson::Value &obj, const char *key, const Type &value, rapidjson::Document::AllocatorType &a)
 
template<>
void chatterino::rj::set (rapidjson::Value &obj, const char *key, const rapidjson::Value &value, rapidjson::Document::AllocatorType &a)
 
template<typename Type >
void chatterino::rj::set (rapidjson::Document &obj, const char *key, const Type &value)
 
template<>
void chatterino::rj::set (rapidjson::Document &obj, const char *key, const rapidjson::Value &value)
 
template<typename Type >
void chatterino::rj::add (rapidjson::Value &arr, const Type &value, rapidjson::Document::AllocatorType &a)
 
bool chatterino::rj::checkJsonValue (const rapidjson::Value &obj, const char *key)
 
template<typename Type >
bool chatterino::rj::getSafe (const rapidjson::Value &obj, const char *key, Type &out)
 
template<typename Type >
bool chatterino::rj::getSafe (const rapidjson::Value &value, Type &out)
 
bool chatterino::rj::getSafeObject (rapidjson::Value &obj, const char *key, rapidjson::Value &out)
 
QString chatterino::rj::stringify (const rapidjson::Value &value)