SNAP Library 4.1, User Reference  2018-07-26 16:30:42
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
TNativeCallbackNotify Class Reference

#include <ut.h>

Inherits TNotify.

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)

Definition at line 109 of file ut.h.

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

Member Function Documentation

static PNotify TNativeCallbackNotify::New ( const TNativeCallbackF CallbackF)

Definition at line 110 of file ut.h.

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
void TNativeCallbackNotify::OnNotify ( const TNotifyType Type,
const TStr MsgStr 

Reimplemented from TNotify.

Definition at line 112 of file ut.h.

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:476
void TNativeCallbackNotify::OnStatus ( const TStr MsgStr)

Reimplemented from TNotify.

Definition at line 117 of file ut.h.

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:476

Member Data Documentation

TNativeCallbackF TNativeCallbackNotify::CallbackF

Definition at line 107 of file ut.h.

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