13 #ifndef NECBAAS_NBJSONOBJECT_H 
   14 #define NECBAAS_NBJSONOBJECT_H 
   17 #include <json/json.h> 
   55     explicit NbJsonObject(
const std::vector<char> &json_char);
 
   68     bool PutAll(
const std::string &json);
 
   74     std::vector<std::string> 
GetKeySet() 
const;
 
   88     int GetInt(
const std::string &key, 
int default_value = 0) 
const;
 
  102     int64_t 
GetInt64(
const std::string &key, int64_t default_value = 0) 
const;
 
  114     double GetDouble(
const std::string &key, 
double default_value = 0.0) 
const;
 
  126     bool GetBoolean(
const std::string &key, 
bool default_value = 
false) 
const;
 
  138     std::string 
GetString(
const std::string &key, 
const std::string default_value = 
"") 
const;
 
  191     Json::Value &
operator[](
const std::string &key);
 
  197     const Json::Value &
operator[](
const std::string &key) 
const;
 
  223     void PutNull(
const std::string &key);
 
  248     bool IsMember(
const std::string &key) 
const;
 
  264     void Remove(
const std::string &key);
 
  286     void Replace(
const Json::Value &value);
 
  297 #endif  // NECBAAS_NBJSONOBJECT_H 
bool GetBoolean(const std::string &key, bool default_value=false) const 
真偽値取得. 
void PutNull(const std::string &key)
null設定. 
int GetInt(const std::string &key, int default_value=0) const 
整数値取得. 
void PutJsonArray(const std::string &key, const NbJsonArray &json_array)
Json配列設定. 
void Replace(const Json::Value &value)
[内部処理用] 
void Remove(const std::string &key)
Key削除. 
double GetDouble(const std::string &key, double default_value=0.0) const 
浮動小数点値取得. 
NbJsonType GetType(const std::string &key) const 
Jsonタイプ取得. 
virtual ~NbJsonObject()
デストラクタ. 
std::string GetString(const std::string &key, const std::string default_value="") const 
文字列取得. 
const Json::Value & GetSubstitutableValue() const 
[内部処理用] 
NbJsonObject GetJsonObject(const std::string &key) const 
Jsonオブジェクト取得. 
void PutJsonObject(const std::string &key, const NbJsonObject &json_object)
Jsonオブジェクト設定. 
NbJsonType
Json値のタイプ. 
Definition: nb_json_type.h:21
Json::Value & operator[](const std::string &key)
Value設定用添え字演算子. 
bool PutAll(const std::string &json)
全データセット. 
bool operator==(const NbJsonObject &other) const 
==演算子. 
std::string ToJsonString() const 
Json文字列変換. 
Jsonオブジェクト. 
Definition: nb_json_object.h:34
unsigned int GetSize() const 
サイズ取得. 
bool IsMember(const std::string &key) const 
Key存在確認. 
int64_t GetInt64(const std::string &key, int64_t default_value=0) const 
64bit整数値取得. 
NbJsonArray GetJsonArray(const std::string &key) const 
Json配列取得. 
Json::Value value_
Definition: nb_json_object.h:294
bool IsEmpty() const 
オブジェクト空確認. 
std::vector< std::string > GetKeySet() const 
キーセット取得. 
Json配列. 
Definition: nb_json_array.h:37