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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TPpTag Class Reference

#include <pp.h>

List of all members.

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 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();
  }
}

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

                                       {
  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;}
}

Here is the caller graph for this function:

static TPpTagVal TPpTag::LoadTxt ( TILx Lx) [inline, static]

Definition at line 10 of file pp.h.

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

                                    {
    return GetTag(Lx.GetIdStr());}

Here is the call graph for this function:

static void TPpTag::SaveTxt ( TOLx Lx,
const TInt Tag 
) [inline, static]

Definition at line 12 of file pp.h.

References SaveTxt().

Referenced by SaveTxt().

{SaveTxt(Lx, int(Tag));}

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 
) [inline, static]

Definition at line 13 of file pp.h.

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

                                               {
    Lx.PutIdStr(GetStr(Tag));}

Here is the call graph for this function:


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