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 | |
TStdNotify () | |
void | OnNotify (const TNotifyType &Type, const TStr &MsgStr) |
void | OnStatus (const TStr &MsgStr) |
Static Public Member Functions | |
static PNotify | New () |
TStdNotify::TStdNotify | ( | ) | [inline] |
static PNotify TStdNotify::New | ( | ) | [inline, static] |
Definition at line 127 of file ut.h.
References TStdNotify().
{return PNotify(new TStdNotify());}
void TStdNotify::OnNotify | ( | const TNotifyType & | Type, |
const TStr & | MsgStr | ||
) |
Definition at line 70 of file ut.cpp.
References TStr::CStr(), GetTypeStr(), ntInfo, and TypeStr.
{ if (Type==ntInfo){ printf("%s\n", MsgStr.CStr()); } else { TStr TypeStr=TNotify::GetTypeStr(Type, false); printf("%s: %s\n", TypeStr.CStr(), MsgStr.CStr()); } }
void TStdNotify::OnStatus | ( | const TStr & | MsgStr | ) |
Definition at line 79 of file ut.cpp.
References TStr::CStr(), TStr::Empty(), and TStr::LastCh().
{ printf("%s", MsgStr.CStr()); // print '\n' if message not overlayed if ((!MsgStr.Empty())&&(MsgStr.LastCh()!='\r')){ printf("\n");} }