Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

CIncompatibleMonitor Class Reference

#include <CIncompatibleMonitor.h>

List of all members.

Public Member Functions

 CIncompatibleMonitor (CEventMonitor &rMonitor, const char *pDoing)
 CIncompatibleMonitor (const CIncompatibleMonitor &rhs)
virtual ~CIncompatibleMonitor ()
CIncompatibleMonitoroperator= (const CIncompatibleMonitor &rhs)
int operator== (const CIncompatibleMonitor &rhs)
 STD (string) getMonitorDescription() const
void setMonitorDescription (const STD(string)&rnew)
virtual const char * ReasonText () const

Private Member Functions

 STD (string) m_MonitorDescription
 STD (string) m_Reason


Detailed Description

Encapsulates exceptions thrown when a reactor sense that it has been attached to an incompatible event monitor. The exception is capable of returning textual string information about the type of the monitor received and what the reactor was doing when it threw the exception.

Definition at line 307 of file CIncompatibleMonitor.h.


Constructor & Destructor Documentation

CIncompatibleMonitor::CIncompatibleMonitor CEventMonitor rMonitor,
const char *  pDoing
 

"Normal" Constructor. Constructs an incompatible exception object just prior to throwing it. Information from the monitor is stored as is information about what was happening in the system at the time the exception was constructed:

Parameters:
rMonitor - The monitor which was not compatible with the Reactor that detected the problem.
pDoing - Text string describing what the program was attempting to do when the incompatibility was detected.

Definition at line 311 of file CIncompatibleMonitor.cpp.

CIncompatibleMonitor::CIncompatibleMonitor const CIncompatibleMonitor rhs  ) 
 

Copy constructor. Used by the compiler construct temporary objects or alternatively, and more usually for this class to build a 'scope safe' copy of the exception which can be saved and passed to catch handlers.

Parameters:
rhs - the reference object being copy constructed.

Definition at line 325 of file CIncompatibleMonitor.cpp.

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

Definition at line 318 of file CIncompatibleMonitor.h.


Member Function Documentation

CIncompatibleMonitor & CIncompatibleMonitor::operator= const CIncompatibleMonitor rhs  ) 
 

Assignment operator. .much like copy construction except:

  • We gaurd against self assignment problems.
  • We are already a fully constructed object in our own right.
  • We return a refereince to *this.

Parameters:
rhs - the object being assigned to us.

Definition at line 340 of file CIncompatibleMonitor.cpp.

int CIncompatibleMonitor::operator== const CIncompatibleMonitor rhs  ) 
 

Equality comparison. We do base class comparison and compare the monitor description. The m_Reason string is not relevant.

Parameters:
rhs - Reference to object we compare ourselves to.

Definition at line 356 of file CIncompatibleMonitor.cpp.

const char * CIncompatibleMonitor::ReasonText  )  const [virtual]
 

Returns a description of why the exception is being thrown. This is of the form: Incompatible Event monitor found: "monitor description", while: Doing"

Definition at line 368 of file CIncompatibleMonitor.cpp.

void CIncompatibleMonitor::setMonitorDescription const STD(string)&  rnew  )  [inline]
 

Definition at line 331 of file CIncompatibleMonitor.h.

CIncompatibleMonitor::STD string   )  const [inline]
 

Definition at line 325 of file CIncompatibleMonitor.h.

CIncompatibleMonitor::STD string   )  [mutable, private]
 

CIncompatibleMonitor::STD string   )  [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 6 16:58:44 2005 for Spectrodaq External Event Framework by  doxygen 1.3.9.1