7 case ptInt:
return "Int";
8 case ptFlt:
return "Flt";
9 case ptStr:
return "Str";
10 case ptValV:
return "ValV";
11 case ptSel:
return "Sel";
12 case ptSet:
return "Set";
18 if (Str==
"Undef"){
return ptUndef;}
19 else if (Str==
"Bool"){
return ptBool;}
20 else if (Str==
"Int"){
return ptInt;}
21 else if (Str==
"Flt"){
return ptFlt;}
22 else if (Str==
"Str"){
return ptStr;}
23 else if (Str==
"ValV"){
return ptValV;}
24 else if (Str==
"Sel"){
return ptSel;}
25 else if (Str==
"Set"){
return ptSet;}
32 if (
Tag!=PpVal.
Tag){
return false;}
42 default:
Fail;
return false;
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);
100 for (
int ValN=0; ValN<
ValV.
Len(); ValN++){
ValV[ValN].SaveTxt(Lx);}
113 for (
int PpN=0; PpN<
PpV.
Len(); PpN++){
114 if (
PpV[PpN]->UcIdNm==UcIdNm){
return PpN;}}
119 for (
int LevN=0; LevN<Lev; LevN++){ChA+=
"| ";}
121 ChA+=
" '"; ChA+=
IdNm; ChA+=
"' ("; ChA+=
DescNm; ChA+=
") = ";
124 for (
int PpN=0; PpN<
PpV.
Len(); PpN++){
125 PpV[PpN]->GetChA(Lev+1, Brief, ChA);
166 while (!RestIdPath.
Empty()){
167 RestIdPath.
SplitOnCh(IdNm,
'|', RestIdPath);
168 Pp=Pp->PpV[Pp->GetPpN(IdNm)];
210 PPp Pp=
PPp(
new TPp(IdNm, DescNm, Tag, ValVTag));
212 Pp->PutCcValV(CcValV);
213 if (IsMnMxValDef){Pp->PutMnMxVal(MnVal, MxVal);}
240 for (
int CcValN=0; CcValN<
CcValV.
Len(); CcValN++){
241 CcValV[CcValN].SaveTxt(Lx);}
245 for (
int PpN=0; PpN<
PpV.
Len(); PpN++){
static PPp LoadTxt(const PSIn &SIn)
void IAssertSubPp() const
void PutVar(const TStr &VarNm, const bool &LBracket=false, const bool &NewLn=false, const bool &CheckIdStr=true)
static TStr GetStr(const int &Tag)
void PutBool(const TBool &Bool)
TSizeTy Len() const
Returns the number of elements in the vector.
static TPpTagVal GetTag(const TStr &Str)
void SaveTxt(TOLx &Lx) const
void PutInt(const TInt &Int)
void GetVar(const TStr &VarNm, const bool &LBracket=false, const bool &NewLn=false)
void PutSym(const TLxSym &Sym)
void PutQStr(const TStr &Str)
bool IsVar(const TStr &VarNm)
void SplitOnCh(TStr &LStr, const char &SplitCh, TStr &RStr) const
int GetPpN(const TStr &IdNm) const
void GetChA(const int &Lev, const bool &Brief, TChA &ChA) const
static TPpVal LoadTxt(TILx &Lx)
void SaveTxt(const PSOut &SOut) const
TStr GetValStr(const bool &DoAddTag=false) const
TStr GetQStr(const TStr &QStr=TStr())
bool operator==(const TPpVal &PpVal) const
void PutFlt(const TFlt &Flt, const int &Width=-1, const int &Prec=-1)
static void SaveTxt(TOLx &Lx, const TInt &Tag)
TStr GetIdStr(const TStr &IdStr=TStr())
TSizeTy SearchForw(const TVal &Val, const TSizeTy &BValN=0) const
Returns the position of an element with value Val.
static TStr GetStr(const bool &Val)
TLxSym GetSym(const TFSet &Expect)
void PutVal(const TPpVal &_Val)
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element.
PPp GetPp(const int &PpN) const
static TPpTagVal LoadTxt(TILx &Lx)
bool IsPp(const TStr &IdNm) const
void PutIdStr(const TStr &Str, const bool &CheckIdStr=true)