SNAP Library 3.0, Developer 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>

Inheritance diagram for TCallbackNotify:
Collaboration diagram for TCallbackNotify:

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.

Referenced by New().

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

Here is the caller graph for this function:

Member Function Documentation

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

Definition at line 87 of file ut.h.

References TCallbackNotify().

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

Here is the call graph for this function:

void TCallbackNotify::OnNotify ( const TNotifyType Type,
const TStr MsgStr 
)
inlinevirtual

Reimplemented from TNotify.

Definition at line 89 of file ut.h.

References Assert, and CallbackF.

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.

References Assert, CallbackF, and ntStat.

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.

Referenced by OnNotify(), and OnStatus().


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