Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

MessageBase Class Reference

#include <msg.h>

Inheritance diagram for MessageBase:

CriticalWarning Message Question SteghideError VerboseMessage Warning ArgError AssertionFailed BinaryInputError BinaryOutputError CorruptDataError NotImplementedError UnSupFileFormat List of all members.

Public Member Functions

 MessageBase (void)
 MessageBase (std::string msg)
 MessageBase (const char *msgfmt,...)
virtual ~MessageBase ()
const std::string & getMessage (void) const
void setMessage (std::string msg)
void setNewline (bool prnl)
const std::string getNewline (void) const
void setMessage (const char *msgfmt,...)
virtual void printMessage (void) const =0

Protected Member Functions

std::string compose (const char *msgfmt,...) const
std::string vcompose (const char *msgfmt, va_list ap) const

Static Protected Attributes

const unsigned int MsgMaxSize = 512

Private Attributes

std::string Message
bool Newline

Constructor & Destructor Documentation

MessageBase::MessageBase void   ) 
 

MessageBase::MessageBase std::string  msg  ) 
 

MessageBase::MessageBase const char *  msgfmt,
  ...
 

virtual MessageBase::~MessageBase  )  [inline, virtual]
 


Member Function Documentation

std::string MessageBase::compose const char *  msgfmt,
  ...
const [protected]
 

const std::string& MessageBase::getMessage void   )  const [inline]
 

const std::string MessageBase::getNewline void   )  const [inline]
 

return either "\n" or "" depending on wether this message should be followed by a newline or not

virtual void MessageBase::printMessage void   )  const [pure virtual]
 

Implemented in AssertionFailed, ArgError, NotImplementedError, CorruptDataError, Message, VerboseMessage, Warning, CriticalWarning, Question, and SteghideError.

void MessageBase::setMessage const char *  msgfmt,
  ...
 

void MessageBase::setMessage std::string  msg  )  [inline]
 

void MessageBase::setNewline bool  prnl  )  [inline]
 

toggle newline printing on/off

Parameters:
prnl wether to print a newline character after the message

std::string MessageBase::vcompose const char *  msgfmt,
va_list  ap
const [protected]
 


Member Data Documentation

std::string MessageBase::Message [private]
 

const unsigned int MessageBase::MsgMaxSize = 512 [static, protected]
 

bool MessageBase::Newline [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jul 16 19:41:22 2004 for steghide by doxygen 1.3.7