|
SNAP Library , Developer Reference
2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <ut.h>


Public Member Functions | |
| TStdErrNotify () | |
| void | OnNotify (const TNotifyType &Type, const TStr &MsgStr) |
| void | OnStatus (const TStr &MsgStr) |
Static Public Member Functions | |
| static PNotify | New () |
| TStdErrNotify::TStdErrNotify | ( | ) | [inline] |
| static PNotify TStdErrNotify::New | ( | ) | [inline, static] |
Definition at line 140 of file ut.h.
References TStdErrNotify().
{return PNotify(new TStdErrNotify());}

| void TStdErrNotify::OnNotify | ( | const TNotifyType & | Type, |
| const TStr & | MsgStr | ||
| ) | [virtual] |
Reimplemented from TNotify.
Definition at line 88 of file ut.cpp.
References TStr::CStr(), TNotify::GetTypeStr(), and ntInfo.
{
if (Type==ntInfo){
fprintf(stderr, "%s\n", MsgStr.CStr());
} else {
TStr TypeStr=TNotify::GetTypeStr(Type, false);
fprintf(stderr, "%s: %s\n", TypeStr.CStr(), MsgStr.CStr());
}
}

| void TStdErrNotify::OnStatus | ( | const TStr & | MsgStr | ) | [virtual] |
Reimplemented from TNotify.
Definition at line 97 of file ut.cpp.
References TStr::CStr(), TStr::Empty(), and TStr::LastCh().
{
fprintf(stderr, "%s", MsgStr.CStr());
// print '\n' if message not overlayed
if ((!MsgStr.Empty())&&(MsgStr.LastCh()!='\r')){
fprintf(stderr, "\n");}
}
