SNAP Library 2.1, User Reference  2013-09-25 10:47:25
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.

                                 {
  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.

                                       {
  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]

Definition at line 10 of file pp.h.

                                    {
    return GetTag(Lx.GetIdStr());}
static void TPpTag::SaveTxt ( TOLx Lx,
const TInt Tag 
) [inline, static]

Definition at line 12 of file pp.h.

{SaveTxt(Lx, int(Tag));}
static void TPpTag::SaveTxt ( TOLx Lx,
const int &  Tag 
) [inline, static]

Definition at line 13 of file pp.h.

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

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