cocos2d-x  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CSJsonDictionary Class Reference

#include <CSContentJsonDictionary.h>

Public Member Functions

 CSJsonDictionary ()
 ~CSJsonDictionary ()
void initWithDescription (const char *pszDescription)
void insertItem (const char *pszKey, int nValue)
void insertItem (const char *pszKey, double fValue)
void insertItem (const char *pszKey, const char *pszValue)
void insertItem (const char *pszKey, CSJsonDictionary *subDictionary)
void insertItem (const char *pszKey, bool bValue)
bool deleteItem (const char *pszKey)
void cleanUp ()
bool isKeyValidate (const char *pszKey)
int getItemIntValue (const char *pszKey, int nDefaultValue)
double getItemFloatValue (const char *pszKey, double fDefaultValue)
const char * getItemStringValue (const char *pszKey)
bool getItemBoolvalue (const char *pszKey, bool bDefaultValue)
CSJsonDictionarygetSubDictionary (const char *pszKey)
std::string getDescription ()
bool insertItemToArray (const char *pszArrayKey, int nValue)
bool insertItemToArray (const char *pszArrayKey, double fValue)
bool insertItemToArray (const char *pszArrayKey, const char *pszValue)
bool insertItemToArray (const char *pszArrayKey, CSJsonDictionary *subDictionary)
int getArrayItemCount (const char *pszArrayKey)
int getIntValueFromArray (const char *pszArrayKey, int nIndex, int nDefaultValue)
double getFloatValueFromArray (const char *pszArrayKey, int nIndex, double fDefaultValue)
bool getBoolValueFromArray (const char *pszArrayKey, int nIndex, bool bDefaultValue)
const char * getStringValueFromArray (const char *pszArrayKey, int nIndex)
CSJsonDictionarygetSubItemFromArray (const char *pszArrayKey, int nIndex)
DicItemType getItemTypeFromArray (const char *pszArrayKey, int nIndex)
int getItemCount ()
DicItemType getItemType (int nIndex)
DicItemType getItemType (const char *pszKey)
std::vector< std::string > getAllMemberNames ()

Protected Attributes

CSJson::Value m_cValue

Constructor & Destructor Documentation

Member Function Documentation

void cleanUp ( )
bool deleteItem ( const char *  pszKey)
std::vector<std::string>
getAllMemberNames
( )
int getArrayItemCount ( const char *  pszArrayKey)
bool getBoolValueFromArray ( const char *  pszArrayKey,
int  nIndex,
bool  bDefaultValue 
)
std::string getDescription ( )
double getFloatValueFromArray ( const char *  pszArrayKey,
int  nIndex,
double  fDefaultValue 
)
int getIntValueFromArray ( const char *  pszArrayKey,
int  nIndex,
int  nDefaultValue 
)
bool getItemBoolvalue ( const char *  pszKey,
bool  bDefaultValue 
)
int getItemCount ( )
double getItemFloatValue ( const char *  pszKey,
double  fDefaultValue 
)
int getItemIntValue ( const char *  pszKey,
int  nDefaultValue 
)
const char* getItemStringValue ( const char *  pszKey)
DicItemType getItemType ( int  nIndex)
DicItemType getItemType ( const char *  pszKey)
DicItemType getItemTypeFromArray ( const char *  pszArrayKey,
int  nIndex 
)
const char* getStringValueFromArray ( const char *  pszArrayKey,
int  nIndex 
)
CSJsonDictionary* getSubDictionary ( const char *  pszKey)
CSJsonDictionary*
getSubItemFromArray
( const char *  pszArrayKey,
int  nIndex 
)
void initWithDescription ( const char *  pszDescription)
void insertItem ( const char *  pszKey,
int  nValue 
)
void insertItem ( const char *  pszKey,
double  fValue 
)
void insertItem ( const char *  pszKey,
const char *  pszValue 
)
void insertItem ( const char *  pszKey,
CSJsonDictionary subDictionary 
)
void insertItem ( const char *  pszKey,
bool  bValue 
)
bool insertItemToArray ( const char *  pszArrayKey,
int  nValue 
)
bool insertItemToArray ( const char *  pszArrayKey,
double  fValue 
)
bool insertItemToArray ( const char *  pszArrayKey,
const char *  pszValue 
)
bool insertItemToArray ( const char *  pszArrayKey,
CSJsonDictionary subDictionary 
)
bool isKeyValidate ( const char *  pszKey)

Member Data Documentation

CSJson::Value m_cValue
protected

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