SNAP Library 2.2, Developer Reference  2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TStdErrNotify Class Reference

#include <ut.h>

Inheritance diagram for TStdErrNotify:
Collaboration diagram for TStdErrNotify:

List of all members.

Public Member Functions

 TStdErrNotify ()
void OnNotify (const TNotifyType &Type, const TStr &MsgStr)
void OnStatus (const TStr &MsgStr)

Static Public Member Functions

static PNotify New ()

Detailed Description

Definition at line 137 of file ut.h.


Constructor & Destructor Documentation

Definition at line 139 of file ut.h.

Referenced by New().

{}

Here is the caller graph for this function:


Member Function Documentation

static PNotify TStdErrNotify::New ( ) [inline, static]

Definition at line 140 of file ut.h.

References TStdErrNotify().

{return PNotify(new TStdErrNotify());}

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:


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