SNAP Library 2.2, Developer Reference
2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <pp.h>
Static Public Member Functions | |
static TStr | GetStr (const int &Tag) |
static TPpTagVal | GetTag (const TStr &Str) |
static TPpTagVal | LoadTxt (TILx &Lx) |
static void | SaveTxt (TOLx &Lx, const TInt &Tag) |
static void | SaveTxt (TOLx &Lx, const int &Tag) |
TStr TPpTag::GetStr | ( | const int & | Tag | ) | [static] |
Definition at line 3 of file pp.cpp.
References Fail, ptBool, ptFlt, ptInt, ptSel, ptSet, ptStr, ptUndef, and ptValV.
Referenced by SaveTxt(), and TPpVal::SaveTxt().
{ switch (Tag){ case ptUndef: return "Undef"; case ptBool: return "Bool"; case ptInt: return "Int"; case ptFlt: return "Flt"; case ptStr: return "Str"; case ptValV: return "ValV"; case ptSel: return "Sel"; case ptSet: return "Set"; default: Fail; return TStr(); } }
TPpTagVal TPpTag::GetTag | ( | const TStr & | Str | ) | [static] |
Definition at line 17 of file pp.cpp.
References Fail, ptBool, ptFlt, ptInt, ptSel, ptSet, ptStr, ptUndef, and ptValV.
Referenced by LoadTxt().
{ if (Str=="Undef"){return ptUndef;} else if (Str=="Bool"){return ptBool;} else if (Str=="Int"){return ptInt;} else if (Str=="Flt"){return ptFlt;} else if (Str=="Str"){return ptStr;} else if (Str=="ValV"){return ptValV;} else if (Str=="Sel"){return ptSel;} else if (Str=="Set"){return ptSet;} else {Fail; return ptUndef;} }
static TPpTagVal TPpTag::LoadTxt | ( | TILx & | Lx | ) | [inline, static] |
static void TPpTag::SaveTxt | ( | TOLx & | Lx, |
const TInt & | Tag | ||
) | [inline, static] |
static void TPpTag::SaveTxt | ( | TOLx & | Lx, |
const int & | Tag | ||
) | [inline, static] |