SNAP Library 2.0, User Reference  2013-05-13 16:33:57
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>

Inherits TNotify.

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.

{}

Member Function Documentation

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

Definition at line 140 of file ut.h.

{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.

                                                                       {
  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.

                                              {
  fprintf(stderr, "%s", MsgStr.CStr());
  // print '\n' if message not overlayed
  if ((!MsgStr.Empty())&&(MsgStr.LastCh()!='\r')){
     fprintf(stderr, "\n");}
}

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