SNAP Library , Developer Reference  2013-01-07 14:03:36
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>

Inheritance diagram for TStdNotify:
Collaboration diagram for TStdNotify:

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.

Referenced by New().

{}

Here is the caller graph for this function:


Member Function Documentation

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

Definition at line 129 of file ut.h.

References TStdNotify().

{return PNotify(new TStdNotify());}

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:


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