Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

MESSENGER Class Reference

Manage all messages. More...

#include <messenger.h>

List of all members.

Public Types

enum  ENTITY { ALL, PROJECT, REPORTER }
 Enum of all the entities. More...


Static Public Methods

void Format (char *buf, const char *fmt, va_list args)
 Format a message
Parameters:
buf  buffer where to format the message.
More...


void Format (char *buf, const char *fmt,...)
 Format a message
Parameters:
buf  buffer where to format the message.
More...


void Error (const char *fmt, va_list args)
 Display an error message. More...

void Error (const char *fmt,...)
 Display an error message. More...

void Warning (const char *fmt, va_list args)
 Display a warning. More...

void Warning (const char *fmt,...)
 Display a warning. More...

void Debug (ENTITY entity, const char *fmt, va_list args)
 Display a debug message. More...

void Debug (ENTITY entity, const char *fmt,...)
 Display a debug message. More...

void setGlobalDebug (bool state)
bool getGlobalDebug ()

Static Private Attributes

bool _globalDebug = false
 Storage. More...


Detailed Description

Manage all messages.

Definition at line 26 of file messenger.h.


Member Enumeration Documentation

enum MESSENGER::ENTITY
 

Enum of all the entities.

Enumeration values:
ALL  Can be used to identify all or any.
PROJECT  For sched.cc.
REPORTER  For graph.cc.

Definition at line 34 of file messenger.h.


Member Function Documentation

void MESSENGER::Debug ENTITY    entity,
const char *    fmt,
...   
[static]
 

Display a debug message.

Definition at line 105 of file messenger.cc.

References Debug().

void MESSENGER::Debug ENTITY    entity,
const char *    fmt,
va_list    args
[static]
 

Display a debug message.

Definition at line 93 of file messenger.cc.

References _globalDebug, and Format().

Referenced by ProjectFile::Debug(), Debug(), and Project::Debug().

void MESSENGER::Error const char *    fmt,
...   
[static]
 

Display an error message.

Definition at line 61 of file messenger.cc.

References Error().

void MESSENGER::Error const char *    fmt,
va_list    args
[static]
 

Display an error message.

Definition at line 51 of file messenger.cc.

References Format().

Referenced by Error().

void MESSENGER::Format char *    buf,
const char *    fmt,
...   
[static]
 

Format a message

Parameters:
buf  buffer where to format the message.

Definition at line 41 of file messenger.cc.

References Format().

void MESSENGER::Format char *    buf,
const char *    fmt,
va_list    args
[static]
 

Format a message

Parameters:
buf  buffer where to format the message.

Definition at line 34 of file messenger.cc.

Referenced by Debug(), Error(), Format(), and Warning().

bool MESSENGER::getGlobalDebug   [inline, static]
 

Definition at line 51 of file messenger.h.

References _globalDebug.

Referenced by Reporter::PeriodicReport(), and Reporter::PrintResourcePeriod().

void MESSENGER::setGlobalDebug bool    state [inline, static]
 

Definition at line 49 of file messenger.h.

References _globalDebug.

Referenced by main().

void MESSENGER::Warning const char *    fmt,
...   
[static]
 

Display a warning.

Definition at line 82 of file messenger.cc.

References Warning().

void MESSENGER::Warning const char *    fmt,
va_list    args
[static]
 

Display a warning.

Definition at line 71 of file messenger.cc.

References Format().

Referenced by ProjectFile::Warning(), Warning(), and Project::Warning().


Member Data Documentation

bool MESSENGER::_globalDebug = false [static, private]
 

Storage.

Definition at line 30 of file messenger.cc.

Referenced by Debug(), getGlobalDebug(), and setGlobalDebug().


The documentation for this class was generated from the following files:
Generated on Wed Feb 18 22:24:04 2004 for Opensched by doxygen1.2.15