SNAP Library, User Reference  2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
ut.h File Reference

Go to the source code of this file.

Classes

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

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 void(__stdcall * TCallbackF )(const TNotifyType &Type, const TStr &MsgStr)
typedef void(__stdcall * TNativeCallbackF )(int Type, const char *MsgStr)
typedef void(* TOnExceptF )(const TStr &MsgStr)

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)
ClassTP(TNotify, PNotify)
private TNotify
operator= (const TNotify &)
 TNotify ()
virtual ~TNotify ()
virtual void OnNotify (const TNotifyType &, const TStr &)
virtual void OnStatus (const TStr &)
virtual void OnLn (const TStr &)
virtual void OnTxt (const TStr &)
void OnNotifyFmt (const TNotifyType &Type, const char *FmtStr,...)
void OnStatusFmt (const char *FmtStr,...)
void OnLnFmt (const char *FmtStr,...)
void OnTxtFmt (const char *FmtStr,...)
static TStr GetTypeStr (const TNotifyType &Type, const bool &Brief=true)
static void OnNotify (const PNotify &Notify, const TNotifyType &Type, const TStr &MsgStr)
static void OnStatus (const PNotify &Notify, const TStr &MsgStr)
static void OnLn (const PNotify &Notify, const TStr &MsgStr)
static void OnTxt (const PNotify &Notify, const TStr &MsgStr)
static void DfOnNotify (const TNotifyType &Type, const TStr &MsgStr)
 UndefDefaultCopyAssign (TExcept)
 TExcept (const TStr &_MsgStr)
 TExcept (const TStr &_MsgStr, const TStr &_LocStr)
virtual ~TExcept ()
TStr GetMsgStr () const
TStr GetLocStr () const
TStr GetStr () const
static bool IsOnExceptF ()
static void PutOnExceptF (TOnExceptF _OnExceptF)
static TOnExceptF GetOnExceptF ()
static void Throw (const TStr &MsgStr)
static void Throw (const TStr &MsgStr, const TStr &ArgStr)
static void Throw (const TStr &MsgStr, const TStr &ArgStr1, const TStr &ArgStr2)
static void ThrowFull (const TStr &MsgStr, const TStr &LocStr)

Variables

static const PNotify NullNotify = TNullNotify::New()
static const PNotify StdNotify = TStdNotify::New()
static const PNotify StdErrNotify = TStdErrNotify::New()
ClassTP(TExcept, PExcept)
private TStr 
LocStr
static TOnExceptF OnExceptF = NULL

Define Documentation

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

Typedef Documentation

typedef void(__stdcall * TCallbackF)(const TNotifyType &Type, const TStr &MsgStr)
typedef void(__stdcall * TNativeCallbackF)(int Type, const char *MsgStr)
typedef void(* TOnExceptF)(const TStr &MsgStr)

Enumeration Type Documentation

Enumerator:
ntInfo 
ntWarn 
ntErr 
ntStat 

Function Documentation

void TNotify::DfOnNotify ( const TNotifyType Type,
const TStr MsgStr 
) [static]
void ErrNotify ( const TStr MsgStr) [inline]
TStr GetLocStr ( ) const
TStr GetMsgStr ( ) const
static TOnExceptF GetOnExceptF ( ) [static]
TStr GetStr ( ) const
template<class Type >
TStr GetTypeNm ( const Type &  Var)
static TStr GetTypeStr ( const TNotifyType Type,
const bool &  Brief = true 
) [static]
void InfoNotify ( const TStr MsgStr) [inline]
static bool IsOnExceptF ( ) [static]
virtual void OnLn ( const TStr ) [virtual]
static void OnLn ( const PNotify &  Notify,
const TStr MsgStr 
) [static]
void TNotify::OnLnFmt ( const char *  FmtStr,
  ... 
)
virtual void OnNotify ( const TNotifyType ,
const TStr  
) [virtual]
static void OnNotify ( const PNotify &  Notify,
const TNotifyType Type,
const TStr MsgStr 
) [static]
void TNotify::OnNotifyFmt ( const TNotifyType Type,
const char *  FmtStr,
  ... 
)
virtual void OnStatus ( const TStr ) [virtual]
static void OnStatus ( const PNotify &  Notify,
const TStr MsgStr 
) [static]
void TNotify::OnStatusFmt ( const char *  FmtStr,
  ... 
)
virtual void OnTxt ( const TStr ) [virtual]
static void OnTxt ( const PNotify &  Notify,
const TStr MsgStr 
) [static]
void TNotify::OnTxtFmt ( const char *  FmtStr,
  ... 
)
ClassTP (TNotify, PNotify) private TNotify& operator= ( const TNotify )
static void PutOnExceptF ( TOnExceptF  _OnExceptF) [static]
void StatNotify ( const TStr MsgStr) [inline]
TExcept ( const TStr _MsgStr)
TExcept ( const TStr _MsgStr,
const TStr _LocStr 
)
static void Throw ( const TStr MsgStr) [static]
static void Throw ( const TStr MsgStr,
const TStr ArgStr 
) [static]
static void Throw ( const TStr MsgStr,
const TStr ArgStr1,
const TStr ArgStr2 
) [static]
static void ThrowFull ( const TStr MsgStr,
const TStr LocStr 
) [static]
TNotify ( )
void WarnNotify ( const TStr MsgStr) [inline]
virtual ~TExcept ( ) [virtual]
virtual ~TNotify ( ) [virtual]

Variable Documentation

ClassTP (TExcept, PExcept) private TStr LocStr
const PNotify TNotify::NullNotify = TNullNotify::New() [static]
const PNotify TNotify::StdErrNotify = TStdErrNotify::New() [static]
const PNotify TNotify::StdNotify = TStdNotify::New() [static]