15 TMacro(const
TStr& TxtStr, const
char& _MacroCh='$', const
char& _VarCh='
#');
17 const TStr& TxtStr,
const char& MacroCh=
'$',
const char& VarCh=
'#'){
26 bool IsOk()
const {
return Ok;}
30 TStr GetDstTxtStr()
const;
34 return SubstToValStrH.
GetKey(SubstStrN);}
36 return SubstToValStrH.
IsKey(SrcSubstStr, SubstStrN);}
38 return SubstToValStrH.
GetKeyId(SrcSubstStr);}
39 void GetSrcSubstStrV(
TStrV& SubstStrV)
const;
40 TStr GetDstSubstStr(
const int& SubstStrN=0)
const;
42 SubstToValStrH[SubstStrN]=ValStr;}
44 return SubstToValStrH[SubstStrN];}
45 TStr GetAllSubstValStr()
const;
49 void GetVarNmV(
TStrV& VarNmV)
const;
51 VarNmToValStrH.
AddDat(VarNm, ValStr);}
53 return VarNmToValStrH.
GetDat(VarNm);}
55 static void SplitVarNm(
57 bool& IsComboBox,
TStr& TbNm,
TStr& ListFldNm,
TStr& DataFldNm);
static PMacro Load(TSIn &)
static PMacro New(const TStr &TxtStr, const char &MacroCh='$', const char &VarCh='#')
TStr GetVarVal(const TStr &VarNm) const
const TDat & GetDat(const TKey &Key) const
TStr GetSrcSubstStr(const int &SubstStrN) const
void PutSubstValStr(const int &SubstStrN, const TStr &ValStr)
#define ClassTP(TNm, PNm)
TMacro & operator=(const TMacro &)
TStr GetVarNm(const int &VarN) const
bool IsSrcSubstStr(const TStr &SrcSubstStr, int &SubstStrN) const
void PutVarVal(const TStr &VarNm, const TStr &ValStr)
TStr GetSrcTxtStr() const
int GetKeyId(const TKey &Key) const
bool IsKey(const TKey &Key) const
TStr GetSubstValStr(const int &SubstStrN) const
TDat & AddDat(const TKey &Key)
int GetSrcSubstStrN(const TStr &SrcSubstStr) const
const TKey & GetKey(const int &KeyId) const
Vector is a sequence TVal objects representing an array that can change in size.