|
SNAP Library, Developer Reference
2012-10-15 15:06:59
SNAP, a general purpose network analysis and graph mining library
|
#include <ut.h>
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 |
| TLogNotify::TLogNotify | ( | const PNotify & | _Notify | ) | [inline] |
| static PNotify TLogNotify::New | ( | const PNotify & | Notify | ) | [inline, static] |
Definition at line 152 of file ut.h.
References TLogNotify().
{ return new TLogNotify(Notify); }

| 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()));
}

PNotify TLogNotify::Notify [private] |
Definition at line 148 of file ut.h.
Referenced by OnStatus().