SNAP Library, Developer 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
TLogNotify Class Reference

#include <ut.h>

List of all members.

Public Member Functions

 TLogNotify (const PNotify &_Notify)
void OnStatus (const TStr &MsgStr)

Static Public Member Functions

static PNotify New (const PNotify &Notify)

Private Attributes

PNotify Notify

Detailed Description

Definition at line 146 of file ut.h.


Constructor & Destructor Documentation

TLogNotify::TLogNotify ( const PNotify &  _Notify) [inline]

Definition at line 151 of file ut.h.

Referenced by New().

: Notify(_Notify) { }

Here is the caller graph for this function:


Member Function Documentation

static PNotify TLogNotify::New ( const PNotify &  Notify) [inline, static]

Definition at line 152 of file ut.h.

References TLogNotify().

{ return new TLogNotify(Notify); }

Here is the call graph for this function:

void TLogNotify::OnStatus ( const TStr MsgStr)

Definition at line 106 of file ut.cpp.

References TStr::CStr(), TStr::Fmt(), TTm::GetCurLocTm(), TTm::GetHMSTColonDotStr(), TTm::GetYMDDashStr(), and Notify.

                                            {
        TTm NowTm = TTm::GetCurLocTm();
        Notify->OnStatus(TStr::Fmt("[%s %s] %s", 
                NowTm.GetYMDDashStr().CStr(), 
                NowTm.GetHMSTColonDotStr(true, false).CStr(), 
                MsgStr.CStr()));
}

Here is the call graph for this function:


Member Data Documentation

PNotify TLogNotify::Notify [private]

Definition at line 148 of file ut.h.

Referenced by OnStatus().


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