OmniSciDB  c1a53651b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FsiJsonUtils.h File Reference
#include <map>
#include <optional>
#include <vector>
#include <rapidjson/document.h>
#include "Logger/Logger.h"
+ Include dependency graph for FsiJsonUtils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 foreign_storage
 
 foreign_storage::json_utils
 

Functions

std::string foreign_storage::json_utils::get_type_as_string (const rapidjson::Value &object)
 
template<class T >
void foreign_storage::json_utils::add_value_to_object (rapidjson::Value &object, const T &value, const std::string &name, rapidjson::Document::AllocatorType &allocator)
 
template<class T >
void foreign_storage::json_utils::get_value_from_object (const rapidjson::Value &object, T &value, const std::string &name)
 
std::optional< std::string > foreign_storage::json_utils::get_optional_string_value_from_object (const rapidjson::Value &object, const std::string &key)
 
void foreign_storage::json_utils::set_value (rapidjson::Value &json_val, const size_t &value, rapidjson::Document::AllocatorType &allocator)
 
void foreign_storage::json_utils::get_value (const rapidjson::Value &json_val, size_t &value)
 
void foreign_storage::json_utils::set_value (rapidjson::Value &json_val, const int &value, rapidjson::Document::AllocatorType &allocator)
 
void foreign_storage::json_utils::get_value (const rapidjson::Value &json_val, int &value)
 
void foreign_storage::json_utils::set_value (rapidjson::Value &json_val, const std::string &value, rapidjson::Document::AllocatorType &allocator)
 
void foreign_storage::json_utils::get_value (const rapidjson::Value &json_val, std::string &value)
 
void foreign_storage::json_utils::set_value (rapidjson::Value &json_val, const int64_t &value, rapidjson::Document::AllocatorType &allocator)
 
void foreign_storage::json_utils::get_value (const rapidjson::Value &json_val, int64_t &value)
 
template<class T >
void foreign_storage::json_utils::set_value (rapidjson::Value &json_val, const std::vector< T > &vector_value, rapidjson::Document::AllocatorType &allocator)
 
template<class T >
void foreign_storage::json_utils::get_value (const rapidjson::Value &json_val, std::vector< T > &vector_value)
 
template<class T , class V >
void foreign_storage::json_utils::set_value (rapidjson::Value &json_val, const std::vector< std::pair< T, V >> &vector_value, rapidjson::Document::AllocatorType &allocator)
 
template<class T , class V >
void foreign_storage::json_utils::get_value (const rapidjson::Value &json_val, std::vector< std::pair< T, V >> &vector_value)
 
template<class T , class V >
void foreign_storage::json_utils::set_value (rapidjson::Value &json_val, const std::map< T, V > &map_value, rapidjson::Document::AllocatorType &allocator)
 
template<class T , class V >
void foreign_storage::json_utils::get_value (const rapidjson::Value &json_val, std::map< T, V > &map_value)
 
rapidjson::Document foreign_storage::json_utils::read_from_file (const std::string &file_path)
 
void foreign_storage::json_utils::write_to_file (const rapidjson::Document &document, const std::string &filepath)
 
std::string foreign_storage::json_utils::write_to_string (const rapidjson::Document &document)