TiObj
Constructors and Destructors
- TiObj()
- TiObj(std::string text)
- ~TiObj()
Load Text or File
- int
- loadText(std::string text)
- int
- loadFile(FILE* fd)
- int
- loadFile(std::string filename)
- int
- saveFile(std::string filename)
Set Value
- void
- set(std::string name, std::string value)
- void
- set(std::string name, int value)
- void
- set(std::string name, long int value)
- void
- set(std::string name, double value)
- void
- set(std::string name, TiVet& value)
- void
- set(std::string name, TiObj& value)
- void
- set(std::string name, TiObj* value)
- void
- setObj(std::string name, std::string text)
- void
- setVector(std::string name, std::string text)
- void
- set(TiVar& attr)
- void
- setText(std::string name, std::string strtype, std::string text)
Get Value
- TiVar&
- at (std::string name, bool create=false)
- std::string
- atStr (std::string name, std::string _default="")
- long int
- atInt (std::string name, long int _default=0)
- double
- atDbl (std::string name, double _default=0.0)
- TiObj&
- atObj (std::string name)
- TiVar&
- operator[](std::string name)
- TiVar&
- operator[](int i)
Box Manipulation
- TiObj&
- select(TiObj& out, std::string classes)
- TiObj&
- select(std::string classes)
- TiObj&
- orderby(TiObj& out, std::string field)
- TiObj&
- orderby(std::string field)
- void
- groupby(TiObj& out, std::string field)
Encoder and Decoder
- std::string
- toString()
- std::string
- toString(std::string name)
- std::string
- encode(int tab=0, bool indent=true, bool jmpline=true)
- int
- decode(TiObj& out, std::string text)
- void
- void tiasm(std::string& res)
- std::string
- tiasm()
Other functions
- void
- clear()
- bool
- has(std::string name)
- bool
- isset(std::string name)
- bool
- hasnt(std::string name)
- bool
- isEmpty()
- unsigned
- length()
- unsigned
- size()
- bool
- is(std::string name)
- bool
- isOnly(std::string name)
TiVar
Constructors and Destructors
- TiVar()
- TiVar(int isReadOnly)
- TiVar(std::string name)
- ~TiVar()
Type Verification
- bool
- isNull()
- bool
- isEmpty()
- bool
- isStr()
- bool
- isDbl()
- bool
- isInt()
- bool
- isObj()
- bool
- isVet()
Get Value
- std::string
- atStr()
- long int
- atInt()
- double
- atDbl()
- TiObj&
- atObj()
- TiVet&
- atVet()
Set Value
- void
- operator=(std::string value)
- void
- operator=(int value)
- void
- operator=(long int value)
- void
- operator=(double value)
- void
- operator=(TiObj& obj)
- void
- operator=(TiObj* obj)
- void
- operator=(TiVet& vector)
Convert to String
- std::string
- toString()
- std::string
- std::string encode(int tab=0)
- void
- tiasm(std::string& res)
TiVet
TiBox