|
SNAP Library 2.1, Developer Reference
2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#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 129 of file ut.h.
References TStdNotify().
{return PNotify(new TStdNotify());}

| void TStdNotify::OnNotify | ( | const TNotifyType & | Type, |
| const TStr & | MsgStr | ||
| ) | [virtual] |
Reimplemented from TNotify.
Definition at line 70 of file ut.cpp.
References TStr::CStr(), TNotify::GetTypeStr(), and ntInfo.
{
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 | ) | [virtual] |
Reimplemented from TNotify.
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");}
}
