SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TNativeCallbackNotify Class Reference

#include <ut.h>

Inheritance diagram for TNativeCallbackNotify:
Collaboration diagram for TNativeCallbackNotify:

Public Member Functions

 TNativeCallbackNotify (const TNativeCallbackF &_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 TNativeCallbackF &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

TNativeCallbackF 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 104 of file ut.h.

Constructor & Destructor Documentation

TNativeCallbackNotify::TNativeCallbackNotify ( const TNativeCallbackF _CallbackF)
inline

Definition at line 109 of file ut.h.

Referenced by New().

109 : CallbackF(_CallbackF) {}
TNativeCallbackF CallbackF
Definition: ut.h:107

Here is the caller graph for this function:

Member Function Documentation

static PNotify TNativeCallbackNotify::New ( const TNativeCallbackF CallbackF)
inlinestatic

Definition at line 110 of file ut.h.

References TNativeCallbackNotify().

110 { return PNotify(new TNativeCallbackNotify(CallbackF)); }
TPt< TNotify > PNotify
Definition: ut.h:30
TNativeCallbackF CallbackF
Definition: ut.h:107
TNativeCallbackNotify(const TNativeCallbackF &_CallbackF)
Definition: ut.h:109

Here is the call graph for this function:

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

Reimplemented from TNotify.

Definition at line 112 of file ut.h.

References Assert, CallbackF, and TStr::CStr().

113  {
114  Assert(CallbackF != NULL);
115  CallbackF((int)Type, MsgStr.CStr());
116  }
TNativeCallbackF CallbackF
Definition: ut.h:107
#define Assert(Cond)
Definition: bd.h:251
char * CStr()
Definition: dt.h:479

Here is the call graph for this function:

void TNativeCallbackNotify::OnStatus ( const TStr MsgStr)
inlinevirtual

Reimplemented from TNotify.

Definition at line 117 of file ut.h.

References Assert, CallbackF, TStr::CStr(), and ntStat.

118  {
119  Assert(CallbackF != NULL);
120  CallbackF((int)ntStat, MsgStr.CStr());
121  }
TNativeCallbackF CallbackF
Definition: ut.h:107
#define Assert(Cond)
Definition: bd.h:251
Definition: ut.h:28
char * CStr()
Definition: dt.h:479

Here is the call graph for this function:

Member Data Documentation

TNativeCallbackF TNativeCallbackNotify::CallbackF
private

Definition at line 107 of file ut.h.

Referenced by OnNotify(), and OnStatus().


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