cocos2d-x
2.2.3-gd2.113-rev1ec524e
|
#include <DS_Dictionary.h>
Public Member Functions | |
std::string | cleanStringWhiteSpace (const std::string &) |
void | split (const std::string &, char *, const std::vector< std::string > &) |
bool | splitWithForm (const std::string &, std::vector< std::string > &) |
bool | rectFromString (const std::string &, cocos2d::CCRect &) |
bool | vec2FromString (const std::string &, cocos2d::CCPoint &) |
DS_Dictionary () | |
~DS_Dictionary () | |
cocos2d::CCObject * | decodeObjectForKey (const char *, bool, int) |
bool | loadRootSubDictFromFile (const char *) |
bool | loadRootSubDictFromCompressedFile (const char *) |
bool | loadRootSubDictFromString (std::string) |
bool | saveRootSubDictToFile (const char *) |
bool | saveRootSubDictToCompressedFile (const char *) |
std::string | saveRootSubDictToString () |
bool | stepIntoSubDictWithKey (const char *) |
void | stepOutOfSubDict () |
void | stepBackToRootSubDict () |
unsigned int | getNumKeys () |
std::string | getKey (unsigned int) |
std::vector< std::string > | getAllKeys () |
unsigned int | getIndexOfKey (const char *) |
unsigned int | getIndexOfKeyWithClosestAlphaNumericalMatch (const char *) |
void | removeKey (unsigned int) |
void | removeKey (const char *) |
void | removeAllKeys () |
int | getIntegerForKey (const char *) |
bool | getBoolForKey (const char *) |
float | getFloatForKey (const char *) |
std::string | getStringForKey (const char *) |
cocos2d::CCPoint | getVec2ForKey (const char *) |
cocos2d::CCRect | getRectForKey (const char *) |
std::vector< std::string > | getStringArrayForKey (const char *) |
std::vector< cocos2d::CCPoint > | getVec2ArrayForKey (const char *) |
std::vector< cocos2d::CCRect > | getRectArrayForKey (const char *) |
cocos2d::CCArray * | getArrayForKey (const char *, bool) |
cocos2d::CCDictionary * | getDictForKey (const char *, bool) |
cocos2d::CCObject * | getObjectForKey (const char *) |
void | setIntegerForKey (const char *, int) |
void | setIntegerForKey (const char *, int, bool) |
void | setBoolForKey (const char *, bool) |
void | setBoolForKey (const char *, bool, bool) |
void | setFloatForKey (const char *, float) |
void | setFloatForKey (const char *, float, bool) |
void | setStringForKey (const char *, const std::string &) |
void | setStringForKey (const char *, const std::string &, bool) |
void | setVec2ForKey (const char *, const cocos2d::CCPoint &) |
void | setVec2ForKey (const char *, const cocos2d::CCPoint &, bool) |
void | setRectForKey (const char *, const cocos2d::CCRect &) |
void | setRectForKey (const char *, const cocos2d::CCRect &, bool) |
void | setStringArrayForKey (const char *, const std::vector< std::string > &) |
void | setStringArrayForKey (const char *, const std::vector< std::string > &, bool) |
void | setVec2ArrayForKey (const char *, const std::vector< cocos2d::CCPoint > &) |
void | setVec2ArrayForKey (const char *, const std::vector< cocos2d::CCPoint > &, bool) |
void | setRectArrayForKey (const char *, const std::vector< cocos2d::CCRect > &) |
void | setRectArrayForKey (const char *, const std::vector< cocos2d::CCRect > &, bool) |
void | setArrayForKey (const char *, cocos2d::CCArray *) |
void | setBoolMapForKey (const char *, const std::map< std::string, bool > &) |
void | setSubDictForKey (const char *) |
void | setSubDictForKey (const char *, bool, bool) |
void | setDictForKey (const char *, cocos2d::CCDictionary *) |
void | setObjectForKey (const char *, cocos2d::CCObject *) |
void | addBoolValuesToMapForKey (const std::map< std::string, bool > &, const char *, bool) |
void | addBoolValuesToMapForKeySpecial (const std::map< std::string, bool > &, const char *, bool) |
void | checkCompatibility () |
Static Public Member Functions | |
static void | copyFile (const char *, const char *) |
Public Attributes | |
pugi::xml_document | doc |
std::vector< pugi::xml_node > | dictTree |
bool | compatible |
DS_Dictionary | ( | ) |
~DS_Dictionary | ( | ) |
void addBoolValuesToMapForKey | ( | const std::map< std::string, bool > & | , |
const char * | , | ||
bool | |||
) |
void addBoolValuesToMapForKeySpecial | ( | const std::map< std::string, bool > & | , |
const char * | , | ||
bool | |||
) |
void checkCompatibility | ( | ) |
std::string cleanStringWhiteSpace | ( | const std::string & | ) |
|
static |
cocos2d::CCObject * decodeObjectForKey | ( | const char * | , |
bool | , | ||
int | |||
) |
std::vector< std::string > getAllKeys | ( | ) |
cocos2d::CCArray * getArrayForKey | ( | const char * | , |
bool | |||
) |
bool getBoolForKey | ( | const char * | ) |
cocos2d::CCDictionary * getDictForKey | ( | const char * | , |
bool | |||
) |
float getFloatForKey | ( | const char * | ) |
unsigned int getIndexOfKey | ( | const char * | ) |
unsigned int getIndexOfKeyWithClosestAlphaNumericalMatch | ( | const char * | ) |
int getIntegerForKey | ( | const char * | ) |
std::string getKey | ( | unsigned int | ) |
unsigned int getNumKeys | ( | ) |
cocos2d::CCObject * getObjectForKey | ( | const char * | ) |
std::vector< cocos2d::CCRect > getRectArrayForKey | ( | const char * | ) |
cocos2d::CCRect getRectForKey | ( | const char * | ) |
std::vector< std::string > getStringArrayForKey | ( | const char * | ) |
std::string getStringForKey | ( | const char * | ) |
std::vector< cocos2d::CCPoint > getVec2ArrayForKey | ( | const char * | ) |
cocos2d::CCPoint getVec2ForKey | ( | const char * | ) |
bool loadRootSubDictFromCompressedFile | ( | const char * | ) |
bool loadRootSubDictFromFile | ( | const char * | ) |
bool loadRootSubDictFromString | ( | std::string | ) |
bool rectFromString | ( | const std::string & | , |
cocos2d::CCRect & | |||
) |
void removeAllKeys | ( | ) |
void removeKey | ( | const char * | ) |
void removeKey | ( | unsigned int | ) |
bool saveRootSubDictToCompressedFile | ( | const char * | ) |
bool saveRootSubDictToFile | ( | const char * | ) |
std::string saveRootSubDictToString | ( | ) |
void setArrayForKey | ( | const char * | , |
cocos2d::CCArray * | |||
) |
void setBoolForKey | ( | const char * | , |
bool | |||
) |
void setBoolForKey | ( | const char * | , |
bool | , | ||
bool | |||
) |
void setBoolMapForKey | ( | const char * | , |
const std::map< std::string, bool > & | |||
) |
void setDictForKey | ( | const char * | , |
cocos2d::CCDictionary * | |||
) |
void setFloatForKey | ( | const char * | , |
float | |||
) |
void setFloatForKey | ( | const char * | , |
float | , | ||
bool | |||
) |
void setIntegerForKey | ( | const char * | , |
int | |||
) |
void setIntegerForKey | ( | const char * | , |
int | , | ||
bool | |||
) |
void setObjectForKey | ( | const char * | , |
cocos2d::CCObject * | |||
) |
void setRectArrayForKey | ( | const char * | , |
const std::vector< cocos2d::CCRect > & | |||
) |
void setRectArrayForKey | ( | const char * | , |
const std::vector< cocos2d::CCRect > & | , | ||
bool | |||
) |
void setRectForKey | ( | const char * | , |
const cocos2d::CCRect & | |||
) |
void setRectForKey | ( | const char * | , |
const cocos2d::CCRect & | , | ||
bool | |||
) |
void setStringArrayForKey | ( | const char * | , |
const std::vector< std::string > & | |||
) |
void setStringArrayForKey | ( | const char * | , |
const std::vector< std::string > & | , | ||
bool | |||
) |
void setStringForKey | ( | const char * | , |
const std::string & | |||
) |
void setStringForKey | ( | const char * | , |
const std::string & | , | ||
bool | |||
) |
void setSubDictForKey | ( | const char * | ) |
void setSubDictForKey | ( | const char * | , |
bool | , | ||
bool | |||
) |
void setVec2ArrayForKey | ( | const char * | , |
const std::vector< cocos2d::CCPoint > & | |||
) |
void setVec2ArrayForKey | ( | const char * | , |
const std::vector< cocos2d::CCPoint > & | , | ||
bool | |||
) |
void setVec2ForKey | ( | const char * | , |
const cocos2d::CCPoint & | |||
) |
void setVec2ForKey | ( | const char * | , |
const cocos2d::CCPoint & | , | ||
bool | |||
) |
void split | ( | const std::string & | , |
char * | , | ||
const std::vector< std::string > & | |||
) |
bool splitWithForm | ( | const std::string & | , |
std::vector< std::string > & | |||
) |
void stepBackToRootSubDict | ( | ) |
bool stepIntoSubDictWithKey | ( | const char * | ) |
void stepOutOfSubDict | ( | ) |
bool vec2FromString | ( | const std::string & | , |
cocos2d::CCPoint & | |||
) |
bool compatible |
std::vector<pugi::xml_node> dictTree |
pugi::xml_document doc |