YourCityInvadedByAliens
Documentation for code of the game
|
|
Go to the documentation of this file.
32 std::vector<std::string>
getKeys()
const;
71 YJson(
const std::string &sFilename);
73 std::vector<std::string>
getKeys()
const;
77 bool toParse(
const std::string &sLine);
bool containsKey(const std::string &sKey) const
Definition: yjson.cpp:117
std::vector< std::string > getKeys() const
Definition: yjson.cpp:214
void setNumber(int nValue)
Definition: yjson.cpp:67
std::vector< YJsonObject * > m_vParserStack
Definition: yjson.h:90
void setString(std::string sValue)
Definition: yjson.cpp:41
std::string m_sFilename
Definition: yjson.h:85
YJsonObject()
Definition: yjson.cpp:9
const YJsonObject & operator[](const std::string &sName) const
Definition: yjson.cpp:218
std::vector< std::string > getKeys() const
Definition: yjson.cpp:86
std::string sParseKeyName
Definition: yjson.h:91
int m_nValue
Definition: yjson.h:48
std::string getString() const
Definition: yjson.cpp:34
bool isObject()
Definition: yjson.cpp:74
YJsonObject m_root
Definition: yjson.h:88
YJson()
Definition: yjson.cpp:184
void doNumber()
Definition: yjson.cpp:52
std::string m_sLineParse
Definition: yjson.h:84
std::string TAG
Definition: yjson.h:45
void popObjectFromStack()
Definition: yjson.cpp:494
void doString()
Definition: yjson.cpp:26
int length() const
Definition: yjson.cpp:144
bool isNumber()
Definition: yjson.cpp:48
bool isString()
Definition: yjson.cpp:22
std::string sParseKeyValue
Definition: yjson.h:92
bool isSkipChar(char c)
Definition: yjson.cpp:485
YJsonParserState
Definition: yjson.h:53
void reset()
Definition: yjson.cpp:162
std::vector< YJsonObject * > m_arrObjects
Definition: yjson.h:50
void doObject()
Definition: yjson.cpp:78
bool isUndefined()
Definition: yjson.cpp:18
YJsonObjectType
Definition: yjson.h:6
void doArray()
Definition: yjson.cpp:129
std::string m_sValue
Definition: yjson.h:93
bool m_bStartRoot
Definition: yjson.h:89
bool isArray() const
Definition: yjson.cpp:125
bool toParse(const std::string &sLine)
Definition: yjson.cpp:222
~YJsonObject()
Definition: yjson.cpp:14
bool m_bParserFailed
Definition: yjson.h:86
void pushObjectToStack(YJsonObject *)
Definition: yjson.cpp:489
bool isParserFailed()
Definition: yjson.cpp:210
void addKeyValue(const std::string &sKey, YJsonObject *pValue)
Definition: yjson.cpp:110
int getNumber() const
Definition: yjson.cpp:60
YJsonObject * getLastObjectFromStack()
Definition: yjson.cpp:502
std::map< std::string, YJsonObject * > m_mapObjects
Definition: yjson.h:49
void push(YJsonObject *pValue)
Definition: yjson.cpp:137
YJsonParserState m_nParserState
Definition: yjson.h:87
const YJsonObject & operator[](const std::string &sName) const
Definition: yjson.cpp:96
YJsonObjectType m_nType
Definition: yjson.h:46
void printParserError(const std::string &sDescription)
Definition: yjson.cpp:510
std::string m_sValue
Definition: yjson.h:47
int m_nLineNumber
Definition: yjson.h:83