cocos2d-x  2.2
 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::CCDictionarygetSubDictionary (cocos2d::CCDictionary *root, const char *key)
int getIntValue (cocos2d::CCDictionary *root, const char *key)
float getFloatValue (cocos2d::CCDictionary *root, const char *key)
const char * getStringValue (cocos2d::CCDictionary *root, const char *key)
bool getBooleanValue (cocos2d::CCDictionary *root, const char *key)
cocos2d::CCArraygetArrayValue (cocos2d::CCDictionary *root, const char *key)
cocos2d::CCObjectcheckObjectExist (cocos2d::CCDictionary *root, const char *key)
int objectToIntValue (cocos2d::CCObject *obj)
float objectToFloatValue (cocos2d::CCObject *obj)
const char * objectToStringValue (cocos2d::CCObject *obj)
bool objectToBooleanValue (cocos2d::CCObject *obj)
cocos2d::CCArrayobjectToCCArray (cocos2d::CCObject *obj)
cs::CSJsonDictionarygetSubDictionary_json (cs::CSJsonDictionary *root, const char *key)
int getIntValue_json (cs::CSJsonDictionary *root, const char *key)
float getFloatValue_json (cs::CSJsonDictionary *root, const char *key)
const char * getStringValue_json (cs::CSJsonDictionary *root, const char *key)
bool getBooleanValue_json (cs::CSJsonDictionary *root, const char *key)
int getArrayCount_json (cs::CSJsonDictionary *root, const char *key)
int getIntValueFromArray_json (cs::CSJsonDictionary *root, const char *arrayKey, int idx)
float getFloatValueFromArray_json (cs::CSJsonDictionary *root, const char *arrayKey, int idx)
bool getBoolValueFromArray_json (cs::CSJsonDictionary *root, const char *arrayKey, int idx)
const char * getStringValueFromArray_json (cs::CSJsonDictionary *root, const char *arrayKey, int idx)
cs::CSJsonDictionarygetDictionaryFromArray_json (cs::CSJsonDictionary *root, const char *arrayKey, int idx)
bool checkObjectExist_json (cs::CSJsonDictionary *root, const char *key)

Static Public Member Functions

static DictionaryHelpershareHelper ()
static void purgeDictionaryHelper ()

Constructor & Destructor Documentation

Member Function Documentation

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

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