cocos2d-x  3.0alpha1
 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 ()
cocos2d::DictionarygetSubDictionary (cocos2d::Dictionary *root, const char *key)
int getIntValue (cocos2d::Dictionary *root, const char *key)
float getFloatValue (cocos2d::Dictionary *root, const char *key)
const char * getStringValue (cocos2d::Dictionary *root, const char *key)
bool getBooleanValue (cocos2d::Dictionary *root, const char *key)
cocos2d::ArraygetArrayValue (cocos2d::Dictionary *root, const char *key)
cocos2d::ObjectcheckObjectExist (cocos2d::Dictionary *root, const char *key)
int objectToIntValue (cocos2d::Object *obj)
float objectToFloatValue (cocos2d::Object *obj)
const char * objectToStringValue (cocos2d::Object *obj)
bool objectToBooleanValue (cocos2d::Object *obj)
cocos2d::ArrayobjectToCCArray (cocos2d::Object *obj)
JsonDictionarygetSubDictionary_json (JsonDictionary *root, const char *key)
int getIntValue_json (JsonDictionary *root, const char *key)
float getFloatValue_json (JsonDictionary *root, const char *key)
const char * getStringValue_json (JsonDictionary *root, const char *key)
bool getBooleanValue_json (JsonDictionary *root, const char *key)
int getArrayCount_json (JsonDictionary *root, const char *key)
int getIntValueFromArray_json (JsonDictionary *root, const char *arrayKey, int idx)
float getFloatValueFromArray_json (JsonDictionary *root, const char *arrayKey, int idx)
bool getBoolValueFromArray_json (JsonDictionary *root, const char *arrayKey, int idx)
const char * getStringValueFromArray_json (JsonDictionary *root, const char *arrayKey, int idx)
JsonDictionarygetDictionaryFromArray_json (JsonDictionary *root, const char *arrayKey, int idx)
bool checkObjectExist_json (JsonDictionary *root, const char *key)

Static Public Member Functions

static DictionaryHelpershareHelper ()
static void purgeDictionaryHelper ()

Constructor & Destructor Documentation

Member Function Documentation

cocos2d::Object* checkObjectExist ( cocos2d::Dictionary root,
const char *  key 
)
bool checkObjectExist_json ( JsonDictionary root,
const char *  key 
)
int getArrayCount_json ( JsonDictionary root,
const char *  key 
)
cocos2d::Array* getArrayValue ( cocos2d::Dictionary root,
const char *  key 
)
bool getBooleanValue ( cocos2d::Dictionary root,
const char *  key 
)
bool getBooleanValue_json ( JsonDictionary root,
const char *  key 
)
bool getBoolValueFromArray_json ( JsonDictionary root,
const char *  arrayKey,
int  idx 
)
JsonDictionary*
getDictionaryFromArray_json
( JsonDictionary root,
const char *  arrayKey,
int  idx 
)
float getFloatValue ( cocos2d::Dictionary root,
const char *  key 
)
float getFloatValue_json ( JsonDictionary root,
const char *  key 
)
float getFloatValueFromArray_json ( JsonDictionary root,
const char *  arrayKey,
int  idx 
)
int getIntValue ( cocos2d::Dictionary root,
const char *  key 
)
int getIntValue_json ( JsonDictionary root,
const char *  key 
)
int getIntValueFromArray_json ( JsonDictionary root,
const char *  arrayKey,
int  idx 
)
const char* getStringValue ( cocos2d::Dictionary root,
const char *  key 
)
const char* getStringValue_json ( JsonDictionary root,
const char *  key 
)
const char*
getStringValueFromArray_json
( JsonDictionary root,
const char *  arrayKey,
int  idx 
)
cocos2d::Dictionary*
getSubDictionary
( cocos2d::Dictionary root,
const char *  key 
)
JsonDictionary*
getSubDictionary_json
( JsonDictionary root,
const char *  key 
)
bool objectToBooleanValue ( cocos2d::Object obj)
cocos2d::Array* objectToCCArray ( cocos2d::Object obj)
float objectToFloatValue ( cocos2d::Object obj)
int objectToIntValue ( cocos2d::Object obj)
const char* objectToStringValue ( cocos2d::Object obj)
static void purgeDictionaryHelper ( )
static
static DictionaryHelper*
shareHelper
( )
static

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