SNAP Library 2.1, User Reference  2013-09-25 10:47:25
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
TStdNotify Class Reference

#include <ut.h>

Inherits TNotify.

List of all members.

Public Member Functions

 TStdNotify ()
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 126 of file ut.h.


Constructor & Destructor Documentation

TStdNotify::TStdNotify ( ) [inline]

Definition at line 128 of file ut.h.

{}

Member Function Documentation

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

Definition at line 129 of file ut.h.

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

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

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

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