|
SNAP Library 3.0, User Reference
2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <json.h>
Public Member Functions | |
| TJsonVal () | |
| TJsonVal (TSIn &SIn) | |
| void | Save (TSOut &SOut) const |
| TStr | SaveStr () |
| bool | operator== (const TJsonVal &JsonVal) const |
| bool | operator!= (const TJsonVal &JsonVal) const |
| void | PutNull () |
| void | PutBool (const bool &BoolVal) |
| void | PutNum (const double &NumVal) |
| void | PutStr (const TStr &StrVal) |
| void | PutArr () |
| void | AddToArr (const PJsonVal &Val) |
| void | PutObj () |
| void | AddToObj (const TStr &KeyNm, const PJsonVal &Val) |
| void | AddToObj (const TStr &KeyNm, const int &Val) |
| void | AddToObj (const TStr &KeyNm, const double &Val) |
| void | AddToObj (const TStr &KeyNm, const TStr &Val) |
| void | AddToObj (const TStr &KeyNm, const char *Val) |
| void | AddToObj (const TStr &KeyNm, const bool &Val) |
| void | AddToObj (const TStr &KeyNm, const TJsonValV &ValV) |
| void | AddToObj (const PJsonVal &Val) |
| TJsonValType | GetJsonValType () const |
| bool | IsDef () const |
| bool | IsNull () const |
| bool | IsBool () const |
| bool | IsNum () const |
| bool | IsStr () const |
| bool | IsArr () const |
| bool | IsObj () const |
| bool | GetBool () const |
| double | GetNum () const |
| TStr | GetStr () const |
| int | GetArrVals () const |
| PJsonVal | GetArrVal (const int &ValN) const |
| int | GetObjKeys () const |
| void | GetObjKeyVal (const int &KeyValN, TStr &Key, PJsonVal &Val) const |
| bool | IsObjKey (const TStr &Key) const |
| bool | IsObjKey (const char *Key) const |
| PJsonVal | GetObjKey (const TStr &Key) const |
| PJsonVal | GetObjKey (const char *Key) const |
| bool | GetObjBool (const TStr &Key) const |
| bool | GetObjBool (const char *Key) const |
| double | GetObjNum (const TStr &Key) const |
| double | GetObjNum (const char *Key) const |
| TStr | GetObjStr (const TStr &Key) const |
| TStr | GetObjStr (const char *Key) const |
| bool | GetObjBool (const TStr &Key, const bool &DefBool) const |
| bool | GetObjBool (const char *Key, const bool &DefBool) const |
| double | GetObjNum (const TStr &Key, const double &DefNum) const |
| double | GetObjNum (const char *Key, const double &DefNum) const |
| TStr | GetObjStr (const TStr &Key, const TStr &DefStr) const |
| TStr | GetObjStr (const char *Key, const TStr &DefStr) const |
Static Public Member Functions | |
| static PJsonVal | New () |
| static PJsonVal | Load (TSIn &SIn) |
| static PJsonVal | NewNull () |
| static PJsonVal | NewBool (const bool &Bool) |
| static PJsonVal | NewNum (const double &Num) |
| static PJsonVal | NewStr (const TStr &Str) |
| static PJsonVal | NewArr () |
| static PJsonVal | NewArr (const TJsonValV &ValV) |
| static PJsonVal | NewArr (const TIntV &IntV) |
| static PJsonVal | NewArr (const TFltV &FltV) |
| static PJsonVal | NewArr (const TStrV &StrV) |
| static PJsonVal | NewArr (const TFltPr &FltPr) |
| static PJsonVal | NewObj () |
| static PJsonVal | NewObj (const TStr &KeyNm, const PJsonVal &ObjVal) |
| static PJsonVal | NewObj (const TStr &KeyNm, const int &ObjVal) |
| static PJsonVal | NewObj (const TStr &KeyNm, const double &ObjVal) |
| static PJsonVal | NewObj (const TStr &KeyNm, const TStr &ObjVal) |
| static PJsonVal | NewObj (const TStr &KeyNm, const bool &ObjVal) |
| static PJsonVal | GetValFromLx (TILx &Lx) |
| static PJsonVal | GetValFromSIn (const PSIn &SIn) |
| static PJsonVal | GetValFromStr (const TStr &JsonStr) |
| static void | AddEscapeChAFromStr (const TStr &Str, TChA &ChA) |
| static TStr | AddEscapeStrFromStr (const TStr &Str) |
| static void | AddQChAFromStr (const TStr &Str, TChA &ChA) |
| static void | GetChAFromVal (const PJsonVal &Val, TChA &ChA) |
| static TStr | GetStrFromVal (const PJsonVal &Val) |
Private Member Functions | |
| UndefCopyAssign (TJsonVal) | |
Private Attributes | |
| TCRef | CRef |
| TJsonValType | JsonValType |
| TBool | Bool |
| TFlt | Num |
| TStr | Str |
| TJsonValV | ValV |
| THash< TStr, PJsonVal > | KeyValH |
Friends | |
| class | TPt< TJsonVal > |
Definition at line 113 of file json.h.
Definition at line 242 of file json.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 248 of file json.cpp.
|
inline |
|
inline |
| bool TJsonVal::GetObjBool | ( | const TStr & | Key, |
| const bool & | DefBool | ||
| ) | const |
| bool TJsonVal::GetObjBool | ( | const char * | Key, |
| const bool & | DefBool | ||
| ) | const |
|
inline |
| double TJsonVal::GetObjNum | ( | const TStr & | Key, |
| const double & | DefNum | ||
| ) | const |
| double TJsonVal::GetObjNum | ( | const char * | Key, |
| const double & | DefNum | ||
| ) | const |
|
inline |
Definition at line 281 of file json.cpp.
Definition at line 166 of file json.cpp.
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| bool TJsonVal::operator!= | ( | const TJsonVal & | JsonVal | ) | const |
|
private |
|
private |