5 #ifndef config_cass2json_adapter_h
6 #define config_cass2json_adapter_h
11 #include "rapidjson/document.h"
35 const std::string &obj_type,
38 const std::string &
type,
39 const contrail_rapidjson::Document &doc);
41 const contrail_rapidjson::Document &
document()
const {
55 void AddOneEntry(contrail_rapidjson::Value *jsonObject,
56 const std::string &obj_type,
58 contrail_rapidjson::Document::AllocatorType &a);
60 const contrail_rapidjson::Value &attr_value);
69 #endif // config_cass2json_adapter_h
static const std::string ref_prefix
static std::string GetJsonString(const contrail_rapidjson::Value &attr_value)
static const std::string list_prop_prefix
static bool assert_on_parse_error()
const std::string & type() const
const std::string & uuid() const
static const std::string prop_prefix
contrail_rapidjson::Document json_document_
static const std::set< std::string > allowed_properties
static const std::string parent_type_prefix
const contrail_rapidjson::Document & document() const
void AddOneEntry(contrail_rapidjson::Value *jsonObject, const std::string &obj_type, const JsonAdapterDataType &c, contrail_rapidjson::Document::AllocatorType &a)
ConfigCassandraClient * cassandra_client_
static bool assert_on_parse_error_
std::vector< JsonAdapterDataType > CassColumnKVVec
static const std::string fq_name_prefix
static void set_assert_on_parse_error(bool flag)
static const std::string parent_prefix
static const std::string map_prop_prefix
void CreateJsonString(const std::string &obj_type, const CassColumnKVVec &cdvec)
ConfigCass2JsonAdapter(const std::string &uuid, ConfigCassandraClient *cassandra_client, const std::string &obj_type, const CassColumnKVVec &cdvec)