Definition at line 19 of file pp.h.
TStr TPpVal::GetValStr |
( |
const bool & |
DoAddTag = false | ) |
const |
Definition at line 46 of file pp.cpp.
References Bool, Fail, Flt, TPpTag::GetStr(), TBool::GetStr(), TInt::GetStr(), TFlt::GetStr(), Int, TVec< TVal, TSizeTy >::Len(), ptBool, ptFlt, ptInt, ptStr, ptUndef, ptValV, Str, Tag, and ValV.
Referenced by TPp::GetChA().
54 case ptStr: ChA+=
'"'; ChA+=
Str; ChA+=
'"';
break;
57 for (
int ValN=0; ValN<
ValV.
Len(); ValN++){
58 if (ValN>0){ChA+=
' ';}
59 ChA+=
ValV[ValN].GetValStr(DoAddTag);
static TStr GetStr(const int &Tag)
TSizeTy Len() const
Returns the number of elements in the vector.
static TStr GetStr(const bool &Val)
Definition at line 67 of file pp.cpp.
References TVec< TVal, TSizeTy >::Add(), Fail, TILx::GetBool(), TILx::GetFlt(), TILx::GetInt(), TILx::GetQStr(), TILx::GetSym(), TPpTag::LoadTxt(), TILx::PeekSym(), ptBool, ptFlt, ptInt, ptStr, ptUndef, ptValV, syColon, syIdStr, syLBracket, syRBracket, Tag, TPpVal(), and ValV.
Referenced by TPp::LoadTxt().
static TPpVal LoadTxt(TILx &Lx)
TStr GetQStr(const TStr &QStr=TStr())
TLxSym GetSym(const TFSet &Expect)
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element.
static TPpTagVal LoadTxt(TILx &Lx)
void TPpVal::SaveTxt |
( |
TOLx & |
Lx | ) |
const |
Definition at line 89 of file pp.cpp.
References Bool, Fail, Flt, TPpTag::GetStr(), Int, TVec< TVal, TSizeTy >::Len(), ptBool, ptFlt, ptInt, ptStr, ptUndef, ptValV, TOLx::PutBool(), TOLx::PutFlt(), TOLx::PutIdStr(), TOLx::PutInt(), TOLx::PutQStr(), TOLx::PutSym(), Str, syColon, syLBracket, syRBracket, Tag, and ValV.
Referenced by TPp::SaveTxt().
100 for (
int ValN=0; ValN<
ValV.
Len(); ValN++){
ValV[ValN].SaveTxt(Lx);}
static TStr GetStr(const int &Tag)
void PutBool(const TBool &Bool)
TSizeTy Len() const
Returns the number of elements in the vector.
void PutInt(const TInt &Int)
void PutSym(const TLxSym &Sym)
void PutQStr(const TStr &Str)
void PutFlt(const TFlt &Flt, const int &Width=-1, const int &Prec=-1)
void PutIdStr(const TStr &Str, const bool &CheckIdStr=true)