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
ut.h File Reference
#include "bd.h"

Go to the source code of this file.

Classes

class  TTypeNm< Type >
class  TNotify
class  TNullNotify
class  TCallbackNotify
class  TNativeCallbackNotify
class  TStdNotify
class  TStdErrNotify
class  TLogNotify
class  TExcept

Defines

#define Try   try {
#define Catch   } catch (PExcept Except){ErrNotify(Except->GetMsgStr());}
#define CatchFull   } catch (PExcept Except){ErrNotify(Except->GetStr());}
#define CatchAll   } catch (...){}

Typedefs

typedef TPt< TNotifyPNotify
typedef void(__stdcall * TCallbackF )(const TNotifyType &Type, const TStr &MsgStr)
typedef void(__stdcall * TNativeCallbackF )(int Type, const char *MsgStr)
typedef TPt< TExceptPExcept

Enumerations

enum  TNotifyType { ntInfo, ntWarn, ntErr, ntStat }

Functions

template<class Type >
TStr GetTypeNm (const Type &Var)
void InfoNotify (const TStr &MsgStr)
void WarnNotify (const TStr &MsgStr)
void ErrNotify (const TStr &MsgStr)
void StatNotify (const TStr &MsgStr)

Define Documentation

#define Catch   } catch (PExcept Except){ErrNotify(Except->GetMsgStr());}

Definition at line 204 of file ut.h.

#define CatchAll   } catch (...){}

Definition at line 206 of file ut.h.

#define CatchFull   } catch (PExcept Except){ErrNotify(Except->GetStr());}

Definition at line 205 of file ut.h.

#define Try   try {

Definition at line 203 of file ut.h.


Typedef Documentation

typedef TPt< TExcept > PExcept

Definition at line 161 of file ut.h.

typedef TPt< TNotify > PNotify

Definition at line 30 of file ut.h.

typedef void(__stdcall * TCallbackF)(const TNotifyType &Type, const TStr &MsgStr)

Definition at line 80 of file ut.h.

typedef void(__stdcall * TNativeCallbackF)(int Type, const char *MsgStr)

Definition at line 103 of file ut.h.


Enumeration Type Documentation

Enumerator:
ntInfo 
ntWarn 
ntErr 
ntStat 

Definition at line 28 of file ut.h.


Function Documentation

void ErrNotify ( const TStr MsgStr) [inline]

Definition at line 25 of file ut.h.

{ErrNotify(MsgStr.CStr());}
template<class Type >
TStr GetTypeNm ( const Type &  Var)

Definition at line 16 of file ut.h.

                               {
  TStr TypeNm=TStr(typeid(Var).name());
  return TTypeNm<Type>::GetNrTypeNm(TypeNm);
}
void InfoNotify ( const TStr MsgStr) [inline]

Definition at line 23 of file ut.h.

{InfoNotify(MsgStr.CStr());}
void StatNotify ( const TStr MsgStr) [inline]

Definition at line 26 of file ut.h.

{StatNotify(MsgStr.CStr());}
void WarnNotify ( const TStr MsgStr) [inline]

Definition at line 24 of file ut.h.

{WarnNotify(MsgStr.CStr());}