cocos2d-x  3.1rc0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DictionaryHelper Class Reference

#include <DictionaryHelper.h>

Public Member Functions

 DictionaryHelper ()
 ~DictionaryHelper ()
const rapidjson::Value & getSubDictionary_json (const rapidjson::Value &root, const char *key)
const rapidjson::Value & getSubDictionary_json (const rapidjson::Value &root, const char *key, int idx)
const rapidjson::Value & getSubDictionary_json (const rapidjson::Value &root, int idx)
int getIntValue_json (const rapidjson::Value &root, const char *key, int def=0)
float getFloatValue_json (const rapidjson::Value &root, const char *key, float def=0.0f)
bool getBooleanValue_json (const rapidjson::Value &root, const char *key, bool def=false)
const char * getStringValue_json (const rapidjson::Value &root, const char *key, const char *def=NULL)
int getArrayCount_json (const rapidjson::Value &root, const char *key, int def=0)
int getIntValueFromArray_json (const rapidjson::Value &root, const char *arrayKey, int idx, int def=0)
float getFloatValueFromArray_json (const rapidjson::Value &root, const char *arrayKey, int idx, float def=0.0f)
bool getBoolValueFromArray_json (const rapidjson::Value &root, const char *arrayKey, int idx, bool def=false)
const char * getStringValueFromArray_json (const rapidjson::Value &root, const char *arrayKey, int idx, const char *def=NULL)
const rapidjson::Value & getDictionaryFromArray_json (const rapidjson::Value &root, const char *key, int idx)
bool checkObjectExist_json (const rapidjson::Value &root)
bool checkObjectExist_json (const rapidjson::Value &root, const char *key)
bool checkObjectExist_json (const rapidjson::Value &root, int index)

Static Public Member Functions

static DictionaryHelpergetInstance ()
static void destroyInstance ()

Constructor & Destructor Documentation

Member Function Documentation

bool checkObjectExist_json ( const rapidjson::Value &  root)
bool checkObjectExist_json ( const rapidjson::Value &  root,
const char *  key 
)
bool checkObjectExist_json ( const rapidjson::Value &  root,
int  index 
)
static void destroyInstance ( )
static
int getArrayCount_json ( const rapidjson::Value &  root,
const char *  key,
int  def = 0 
)
bool getBooleanValue_json ( const rapidjson::Value &  root,
const char *  key,
bool  def = false 
)
bool getBoolValueFromArray_json ( const rapidjson::Value &  root,
const char *  arrayKey,
int  idx,
bool  def = false 
)
const rapidjson::Value&
getDictionaryFromArray_json
( const rapidjson::Value &  root,
const char *  key,
int  idx 
)
float getFloatValue_json ( const rapidjson::Value &  root,
const char *  key,
float  def = 0.0f 
)
float getFloatValueFromArray_json ( const rapidjson::Value &  root,
const char *  arrayKey,
int  idx,
float  def = 0.0f 
)
static DictionaryHelper*
getInstance
( )
static
int getIntValue_json ( const rapidjson::Value &  root,
const char *  key,
int  def = 0 
)
int getIntValueFromArray_json ( const rapidjson::Value &  root,
const char *  arrayKey,
int  idx,
int  def = 0 
)
const char* getStringValue_json ( const rapidjson::Value &  root,
const char *  key,
const char *  def = NULL 
)
const char*
getStringValueFromArray_json
( const rapidjson::Value &  root,
const char *  arrayKey,
int  idx,
const char *  def = NULL 
)
const rapidjson::Value&
getSubDictionary_json
( const rapidjson::Value &  root,
const char *  key 
)
const rapidjson::Value&
getSubDictionary_json
( const rapidjson::Value &  root,
const char *  key,
int  idx 
)
const rapidjson::Value&
getSubDictionary_json
( const rapidjson::Value &  root,
int  idx 
)

The documentation for this class was generated from the following file: