SNAP Library 2.3, Developer Reference  2014-06-16 11:58:46
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TPpTag Class Reference

#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)
 

Detailed Description

Definition at line 6 of file pp.h.

Member Function Documentation

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 TPp::GetChA(), TPpVal::GetValStr(), SaveTxt(), and TPpVal::SaveTxt().

3  {
4  switch (Tag){
5  case ptUndef: return "Undef";
6  case ptBool: return "Bool";
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";
13  default: Fail; return TStr();
14  }
15 }
#define Fail
Definition: bd.h:238
Definition: pp.h:4
Definition: pp.h:4
Definition: pp.h:4
Definition: pp.h:4
Definition: pp.h:4
Definition: dt.h:412
Definition: pp.h:4
Definition: pp.h:4
Definition: pp.h:4

Here is the caller graph for this function:

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().

17  {
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;}
26  else {Fail; return ptUndef;}
27 }
#define Fail
Definition: bd.h:238
Definition: pp.h:4
Definition: pp.h:4
Definition: pp.h:4
Definition: pp.h:4
Definition: pp.h:4
Definition: pp.h:4
Definition: pp.h:4
Definition: pp.h:4

Here is the caller graph for this function:

static TPpTagVal TPpTag::LoadTxt ( TILx Lx)
inlinestatic

Definition at line 10 of file pp.h.

References TILx::GetIdStr(), and GetTag().

Referenced by TPpVal::LoadTxt(), and TPp::LoadTxt().

10  {
11  return GetTag(Lx.GetIdStr());}
static TPpTagVal GetTag(const TStr &Str)
Definition: pp.cpp:17
TStr GetIdStr(const TStr &IdStr=TStr())
Definition: lx.h:185

Here is the call graph for this function:

Here is the caller graph for this function:

static void TPpTag::SaveTxt ( TOLx Lx,
const TInt Tag 
)
inlinestatic

Definition at line 12 of file pp.h.

References SaveTxt().

Referenced by SaveTxt(), and TPp::SaveTxt().

12 {SaveTxt(Lx, int(Tag));}
static void SaveTxt(TOLx &Lx, const TInt &Tag)
Definition: pp.h:12

Here is the call graph for this function:

Here is the caller graph for this function:

static void TPpTag::SaveTxt ( TOLx Lx,
const int &  Tag 
)
inlinestatic

Definition at line 13 of file pp.h.

References GetStr(), and TOLx::PutIdStr().

13  {
14  Lx.PutIdStr(GetStr(Tag));}
static TStr GetStr(const int &Tag)
Definition: pp.cpp:3
void PutIdStr(const TStr &Str, const bool &CheckIdStr=true)
Definition: lx.h:286

Here is the call graph for this function:


The documentation for this class was generated from the following files: