24 void Save(
TSOut& SOut)
const;
27 bool operator==(
const TJsonVal& JsonVal)
const;
90 EAssert(IsObj()); Key=KeyValH.GetKey(KeyValN); Val=KeyValH[KeyValN];}
92 bool IsObjKey(
const char *Key)
const {
EAssert(IsObj());
return KeyValH.IsKey(Key);}
94 PJsonVal GetObjKey(
const char *Key)
const;
96 bool GetObjBool(
const char *Key)
const {
return GetObjKey(Key)->GetBool(); }
97 double GetObjNum(
const TStr& Key)
const {
return GetObjKey(Key)->GetNum(); }
98 double GetObjNum(
const char *Key)
const {
return GetObjKey(Key)->GetNum(); }
101 bool GetObjBool(
const TStr& Key,
const bool& DefBool)
const;
102 bool GetObjBool(
const char *Key,
const bool& DefBool)
const;
103 double GetObjNum(
const TStr& Key,
const double& DefNum)
const;
104 double GetObjNum(
const char *Key,
const double& DefNum)
const;
105 TStr GetObjStr(
const TStr& Key,
const TStr& DefStr)
const;
106 TStr GetObjStr(
const char *Key,
const TStr& DefStr)
const;
112 static void AddEscapeChAFromStr(
const TStr& Str,
TChA& ChA);
114 TChA ChA; AddEscapeChAFromStr(Str, ChA);
return ChA; }
115 static void AddQChAFromStr(
const TStr& Str,
TChA& ChA);
116 static void GetChAFromVal(
const PJsonVal& Val,
TChA& ChA);
static PJsonVal NewObj(const TStr &KeyNm, const int &ObjVal)
void AddToObj(const TStr &KeyNm, const double &Val)
void GetObjKeyVal(const int &KeyValN, TStr &Key, PJsonVal &Val) const
static PJsonVal Load(TSIn &SIn)
void PutNum(const double &_Num)
static PJsonVal NewBool(const bool &Bool)
void AddToObj(const TStr &KeyNm, const char *Val)
void PutBool(const bool &_Bool)
static PJsonVal NewNull()
static PJsonVal NewObj(const TStr &KeyNm, const PJsonVal &ObjVal)
TJsonValType GetJsonValType() const
#define UndefCopyAssign(TNm)
bool operator!=(const TRec &Rec1, const TRec &Rec2)
static PJsonVal NewObj(const TStr &KeyNm, const TStr &ObjVal)
#define ClassTPV(TNm, PNm, TNmV)
void AddToObj(const TStr &KeyNm, const TJsonValV &ValV)
void AddToObj(const TStr &KeyNm, const TStr &Val)
static PJsonVal NewStr(const TStr &Str)
void AddToObj(const TStr &KeyNm, const bool &Val)
void AddToObj(const TStr &KeyNm, const PJsonVal &Val)
double GetObjNum(const char *Key) const
void PutStr(const TStr &_Str)
bool GetObjBool(const char *Key) const
static PJsonVal NewObj(const TStr &KeyNm, const double &ObjVal)
void AddToArr(const PJsonVal &Val)
double GetObjNum(const TStr &Key) const
static PJsonVal NewObj(const TStr &KeyNm, const bool &ObjVal)
bool GetObjBool(const TStr &Key) const
TStr GetObjStr(const TStr &Key) const
TStr GetObjStr(const char *Key) const
static TStr AddEscapeStrFromStr(const TStr &Str)
PJsonVal GetArrVal(const int &ValN) const
bool IsObjKey(const char *Key) const
void AddToObj(const TStr &KeyNm, const int &Val)
static PJsonVal NewNum(const double &Num)
bool IsObjKey(const TStr &Key) const