SNAP Library, User Reference  2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
macro.h File Reference

Go to the source code of this file.

Functions

 TMacro (const TStr &TxtStr, const char &_MacroCh='$', const char &_VarCh='#')
static PMacro New (const TStr &TxtStr, const char &MacroCh='$', const char &VarCh='#')
 ~TMacro ()
 TMacro (TSIn &)
static PMacro Load (TSIn &)
void Save (TSOut &) const
TMacrooperator= (const TMacro &)
bool IsOk () const
TStr GetMsgStr () const
TStr GetSrcTxtStr () const
TStr GetDstTxtStr () const
int GetSubstStrs () const
TStr GetSrcSubstStr (const int &SubstStrN) const
bool IsSrcSubstStr (const TStr &SrcSubstStr, int &SubstStrN) const
int GetSrcSubstStrN (const TStr &SrcSubstStr) const
void GetSrcSubstStrV (TStrV &SubstStrV) const
TStr GetDstSubstStr (const int &SubstStrN=0) const
void PutSubstValStr (const int &SubstStrN, const TStr &ValStr)
TStr GetSubstValStr (const int &SubstStrN) const
TStr GetAllSubstValStr () const
int GetVars () const
TStr GetVarNm (const int &VarN) const
void GetVarNmV (TStrV &VarNmV) const
void PutVarVal (const TStr &VarNm, const TStr &ValStr)
TStr GetVarVal (const TStr &VarNm) const
static void SplitVarNm (const TStr &VarNm, TStr &CapStr, bool &IsComboBox, TStr &TbNm, TStr &ListFldNm, TStr &DataFldNm)

Variables

ClassTP(TMacro, PMacro) public TStr MsgStr
char MacroCh
char VarCh
TStr TxtStr
TStrStrH SubstToValStrH
TStrStrH VarNmToValStrH

Function Documentation

TStr TMacro::GetDstSubstStr ( const int &  SubstStrN = 0) const
TStr GetMsgStr ( ) const
TStr GetSrcSubstStr ( const int &  SubstStrN) const
int GetSrcSubstStrN ( const TStr SrcSubstStr) const
void TMacro::GetSrcSubstStrV ( TStrV SubstStrV) const
TStr GetSrcTxtStr ( ) const
int GetSubstStrs ( ) const
TStr GetSubstValStr ( const int &  SubstStrN) const
TStr GetVarNm ( const int &  VarN) const
void GetVarNmV ( TStrV VarNmV) const
int GetVars ( ) const
TStr GetVarVal ( const TStr VarNm) const
bool IsOk ( ) const
bool IsSrcSubstStr ( const TStr SrcSubstStr,
int &  SubstStrN 
) const
static PMacro Load ( TSIn ) [static]
static PMacro New ( const TStr TxtStr,
const char &  MacroCh = '$',
const char &  VarCh = '#' 
) [static]
TMacro& operator= ( const TMacro )
void PutSubstValStr ( const int &  SubstStrN,
const TStr ValStr 
)
void PutVarVal ( const TStr VarNm,
const TStr ValStr 
)
void Save ( TSOut ) const
void TMacro::SplitVarNm ( const TStr VarNm,
TStr CapStr,
bool &  IsComboBox,
TStr TbNm,
TStr ListFldNm,
TStr DataFldNm 
) [static]
TMacro::TMacro ( const TStr TxtStr,
const char &  _MacroCh = '$',
const char &  _VarCh = '#' 
)
TMacro ( TSIn )
~TMacro ( )

Variable Documentation

char MacroCh
ClassTP (TMacro, PMacro) public TStr MsgStr
char VarCh