SNAP Library 3.0, User Reference  2016-07-20 17:56:49
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
TCallbackNotify Class Reference

#include <ut.h>

Inherits TNotify.

Public Member Functions

 TCallbackNotify (const TCallbackF &_CallbackF)
 
void OnNotify (const TNotifyType &Type, const TStr &MsgStr)
 
void OnStatus (const TStr &MsgStr)
 
- Public Member Functions inherited from TNotify
 TNotify ()
 
virtual ~TNotify ()
 
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 Public Member Functions

static PNotify New (const TCallbackF &CallbackF)
 
- Static Public Member Functions inherited from TNotify
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)
 

Private Attributes

TCallbackF CallbackF
 

Additional Inherited Members

- Static Public Attributes inherited from TNotify
static const PNotify NullNotify =TNullNotify::New()
 
static const PNotify StdNotify =TStdNotify::New()
 
static const PNotify StdErrNotify =TStdErrNotify::New()
 

Detailed Description

Definition at line 81 of file ut.h.

Constructor & Destructor Documentation

TCallbackNotify::TCallbackNotify ( const TCallbackF _CallbackF)
inline

Definition at line 86 of file ut.h.

86 : CallbackF(_CallbackF) {}
TCallbackF CallbackF
Definition: ut.h:84

Member Function Documentation

static PNotify TCallbackNotify::New ( const TCallbackF CallbackF)
inlinestatic

Definition at line 87 of file ut.h.

87 { return PNotify(new TCallbackNotify(CallbackF)); }
TCallbackF CallbackF
Definition: ut.h:84
TPt< TNotify > PNotify
Definition: ut.h:30
TCallbackNotify(const TCallbackF &_CallbackF)
Definition: ut.h:86
void TCallbackNotify::OnNotify ( const TNotifyType Type,
const TStr MsgStr 
)
inlinevirtual

Reimplemented from TNotify.

Definition at line 89 of file ut.h.

90  {
91  Assert(CallbackF != NULL);
92  CallbackF(Type, MsgStr);
93  }
TCallbackF CallbackF
Definition: ut.h:84
#define Assert(Cond)
Definition: bd.h:251
void TCallbackNotify::OnStatus ( const TStr MsgStr)
inlinevirtual

Reimplemented from TNotify.

Definition at line 94 of file ut.h.

95  {
96  Assert(CallbackF != NULL);
97  CallbackF(ntStat, MsgStr);
98  }
TCallbackF CallbackF
Definition: ut.h:84
#define Assert(Cond)
Definition: bd.h:251
Definition: ut.h:28

Member Data Documentation

TCallbackF TCallbackNotify::CallbackF
private

Definition at line 84 of file ut.h.


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