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

Hierarchy Class Reference

#include <Hierarchy.h>

Inheritance diagram for Hierarchy:

CCompoundEventSegment CEventSegment List of all members.

Public Methods

 Hierarchy (unsigned short id, const string &rName, const string &rDescription, const string &rVersion)
virtual ~Hierarchy ()
const CDocumentedPacketgetPacket () const
virtual DAQWordBufferPtr & Read (DAQWordBufferPtr &rBuffer)

Private Methods

 Hierarchy (const Hierarchy &rhs)
const Hierarchy & operator= (const Hierarchy &rhs)
int operator== (const Hierarchy &rhs) const
int operator!= (const Hierarchy &rhs) const

Private Attributes

CDocumentedPacket m_Packet
 The packet that brackets the upper level.


Detailed Description

This file shows how to get a hierarchical event structure. The idea is to derive a class from the CCompoundEventSegment. The derived class will have a packet member. We override the Read member function so that it brackets a call to CCompoundSegment inside packet begin/end calls.

If the event segments inserted in turn produce packets, we get a hierarchy of packet. Note that at present, the documentation buffer has no way to express the structure of the hiearchy.

See Hierarchy.cpp for implementation.

Definition at line 32 of file Hierarchy.h.


Constructor & Destructor Documentation

Hierarchy::Hierarchy unsigned short    id,
const string &    rName,
const string &    rDescription,
const string &    rVersion
 

Construct a Hierarchy object. The parameters are thos required of CDocumentedPacket and are used to construct that member.

Definition at line 10 of file Hierarchy.cpp.

virtual Hierarchy::~Hierarchy   [inline, virtual]
 

Definition at line 42 of file Hierarchy.h.

Hierarchy::Hierarchy const Hierarchy &    rhs [private]
 


Member Function Documentation

const CDocumentedPacket& Hierarchy::getPacket   const [inline]
 

Definition at line 54 of file Hierarchy.h.

int Hierarchy::operator!= const Hierarchy &    rhs const [private]
 

const Hierarchy& Hierarchy::operator= const Hierarchy &    rhs [private]
 

int Hierarchy::operator== const Hierarchy &    rhs const [private]
 

DAQWordBufferPtr & Hierarchy::Read DAQWordBufferPtr &    rBuffer [virtual]
 

Read a hierarchy. Done by bracketing base class calls inside the packet described by m_Packet:

Reimplemented from CCompoundEventSegment.

Definition at line 21 of file Hierarchy.cpp.

References CDocumentedPacket::Begin(), CDocumentedPacket::End(), m_Packet, and CCompoundEventSegment::Read().


Member Data Documentation

CDocumentedPacket Hierarchy::m_Packet [private]
 

The packet that brackets the upper level.

Definition at line 36 of file Hierarchy.h.

Referenced by Read().


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