Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

CInvalidPacketStateException Class Reference

#include <CInvalidPacketStateException.h>

Inheritance diagram for CInvalidPacketStateException:

CReadoutException List of all members.

Public Methods

 CInvalidPacketStateException (bool WasOpen, const char *pszAction)
 CInvalidPacketStateException (const CInvalidPacketStateException &rhs)
 ~CInvalidPacketStateException ()
CInvalidPacketStateException & operator= (const CInvalidPacketStateException &rhs)
int operator== (const CInvalidPacketStateException &rhs)
int operator!= (const CInvalidPacketStateException &rhs)
int getWasOpen () const
Int_t ReasonCode () const
virtual const char * ReasonText () const

Protected Methods

void BuildReasonText ()

Private Attributes

bool m_nWasOpen
 nonzero if packet was open.

string m_sReasonText
 Reason for exception is built here.


Detailed Description

Encapsulates exceptions which are thrown as a result of mis-manipulating packets. The ReasonCode function returns nonzero if the packet was open.

Definition at line 304 of file CInvalidPacketStateException.h.


Constructor & Destructor Documentation

CInvalidPacketStateException::CInvalidPacketStateException bool    WasOpen,
const char *    pszAction
 

Default constructor. This is called when declarations of the form e.g.:

  • CInvalidPacketStateException object; are performed.
Parameters:

Definition at line 287 of file CInvalidPacketStateException.cpp.

References BuildReasonText().

CInvalidPacketStateException::CInvalidPacketStateException const CInvalidPacketStateException &    rhs
 

Copy construction. This is invoked when e.g. an object is passed by value to a function. The copy constructor makes a clone of the rhs object.

Parameters:
rhs  - Reference to the objet from which this copy will be constructed.

Definition at line 300 of file CInvalidPacketStateException.cpp.

References BuildReasonText().

CInvalidPacketStateException::~CInvalidPacketStateException   [inline]
 

Definition at line 314 of file CInvalidPacketStateException.h.


Member Function Documentation

void CInvalidPacketStateException::BuildReasonText   [protected]
 

Re-computes the reason text from the object's member variables. The implicit inputs to this function include:

  • m_sWasOpen - True if the state was open.
  • getAction() returns the action being performed at the time the exception was detected.

Definition at line 363 of file CInvalidPacketStateException.cpp.

References m_nWasOpen, and m_sReasonText.

Referenced by CInvalidPacketStateException(), and operator=().

int CInvalidPacketStateException::getWasOpen   const [inline]
 

Definition at line 325 of file CInvalidPacketStateException.h.

References m_nWasOpen.

int CInvalidPacketStateException::operator!= const CInvalidPacketStateException &    rhs [inline]
 

Definition at line 318 of file CInvalidPacketStateException.h.

References operator==().

CInvalidPacketStateException & CInvalidPacketStateException::operator= const CInvalidPacketStateException &    rhs
 

Assignment operation. This member function supports assignment of an object of this class to an object of the same class.

Parameters:
rhs  - The right hand side of the assignment to *this.
Returns:
- a reference to *this

Definition at line 313 of file CInvalidPacketStateException.cpp.

References BuildReasonText(), m_nWasOpen, and CReadoutException::operator=().

int CInvalidPacketStateException::operator== const CInvalidPacketStateException &    rhs
 

Equality comparison.

Definition at line 326 of file CInvalidPacketStateException.cpp.

References m_nWasOpen, and CReadoutException::operator==().

Referenced by operator!=().

Int_t CInvalidPacketStateException::ReasonCode   const
 

Returns the state of the open flag in the segment. cast to integer.

Definition at line 339 of file CInvalidPacketStateException.cpp.

References m_nWasOpen.

const char * CInvalidPacketStateException::ReasonText   const [virtual]
 

Returns a text string which describes why the exception was thrown.

Definition at line 350 of file CInvalidPacketStateException.cpp.

References m_sReasonText.


Member Data Documentation

bool CInvalidPacketStateException::m_nWasOpen [private]
 

nonzero if packet was open.

Definition at line 307 of file CInvalidPacketStateException.h.

Referenced by BuildReasonText(), getWasOpen(), operator=(), operator==(), and ReasonCode().

string CInvalidPacketStateException::m_sReasonText [private]
 

Reason for exception is built here.

Definition at line 308 of file CInvalidPacketStateException.h.

Referenced by BuildReasonText(), and ReasonText().


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 13:37:16 2002 for Event Readout system. by doxygen1.2.16