CMS 3D CMS Logo

Public Member Functions | Private Attributes

Message Class Reference

#include <MessageDispatcher.h>

List of all members.

Public Member Functions

std::string getText ()
std::string getTitle ()
std::string getType ()
 Message (std::string the_title, std::string the_text, MessageType the_type)

Private Attributes

std::string text
std::string title
MessageType type

Detailed Description

Definition at line 14 of file MessageDispatcher.h.


Constructor & Destructor Documentation

Message::Message ( std::string  the_title,
std::string  the_text,
MessageType  the_type 
) [inline]

Definition at line 25 of file MessageDispatcher.h.

References text, and title.

    {
      type = the_type;
      title = the_title;
      text = the_text;
    }

Member Function Documentation

std::string Message::getText ( ) [inline]

Definition at line 33 of file MessageDispatcher.h.

References text.

{ return text; }
std::string Message::getTitle ( ) [inline]

Definition at line 32 of file MessageDispatcher.h.

References title.

{ return title; }
std::string Message::getType ( void  )

Definition at line 4 of file MessageDispatcher.cc.

References info, and warning.

{ 
  if (type == info) { return "INFO"; } 
  else if (type == warning) { return "WARNING"; } 
  else { return "ERROR"; } 
}

Member Data Documentation

std::string Message::text [private]

Definition at line 20 of file MessageDispatcher.h.

Referenced by getText(), and Message().

std::string Message::title [private]

Definition at line 19 of file MessageDispatcher.h.

Referenced by getTitle(), and Message().

Definition at line 21 of file MessageDispatcher.h.