Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

SctPixelRod::RodPrimitive Class Reference

#include <RodPrimitive.h>


Public Member Functions

 RodPrimitive ()
 RodPrimitive (long length, long index, long id, long version, long *body)
 RodPrimitive (const RodPrimitive &)
 ~RodPrimitive ()
RodPrimitive & operator= (const RodPrimitive &)
void setLength (long len)
 Accessor function to set length.

long getLength () const
 Accessor function to get length.

void setIndex (long ind)
 Accessor function to set index.

long getIndex () const
 Accessor function to get index.

void setId (long id)
 Accessor function to set ID.

long getId () const
 Accessor function to get ID.

void setVersion (long version)
 Accessor function to set version.

long getVersion () const
 Accessor function to get version.

void setBody (long *body)
 Accessor function to set pointer to data body.

long * getBody () const
 Accessor function to get pointer to data body.

long checkSum ()
 Figure checksum.


Private Attributes

long m_length
 The length of the primitive (may need to be filled after primitive is defined.).

long m_index
 The index of the primitive. This is an accounting ID giving a unique numerical identifier.

long m_id
 The ID which says what kind of primitive this is (echo, memory test, etc.).

long m_version
 The version number for this primitive.

long * m_body
 A pointer to the body of the primitive.


Constructor & Destructor Documentation

SctPixelRod::RodPrimitive::RodPrimitive  
 

SctPixelRod::RodPrimitive::RodPrimitive long    length,
long    index,
long    id,
long    version,
long *    body
 

SctPixelRod::RodPrimitive::RodPrimitive const RodPrimitive &   
 

SctPixelRod::RodPrimitive::~RodPrimitive  
 


Member Function Documentation

long SctPixelRod::RodPrimitive::checkSum  
 

Figure checksum.

long* SctPixelRod::RodPrimitive::getBody   const [inline]
 

Accessor function to get pointer to data body.

Definition at line 54 of file RodPrimitive.h.

References m_body.

long SctPixelRod::RodPrimitive::getId   const [inline]
 

Accessor function to get ID.

Definition at line 44 of file RodPrimitive.h.

References m_id.

long SctPixelRod::RodPrimitive::getIndex   const [inline]
 

Accessor function to get index.

Definition at line 39 of file RodPrimitive.h.

References m_index.

long SctPixelRod::RodPrimitive::getLength   const [inline]
 

Accessor function to get length.

Definition at line 34 of file RodPrimitive.h.

References m_length.

long SctPixelRod::RodPrimitive::getVersion   const [inline]
 

Accessor function to get version.

Definition at line 49 of file RodPrimitive.h.

References m_version.

RodPrimitive& SctPixelRod::RodPrimitive::operator= const RodPrimitive &   
 

void SctPixelRod::RodPrimitive::setBody long *    body [inline]
 

Accessor function to set pointer to data body.

Definition at line 52 of file RodPrimitive.h.

References m_body.

void SctPixelRod::RodPrimitive::setId long    id [inline]
 

Accessor function to set ID.

Definition at line 42 of file RodPrimitive.h.

References m_id.

void SctPixelRod::RodPrimitive::setIndex long    ind [inline]
 

Accessor function to set index.

Definition at line 37 of file RodPrimitive.h.

References m_index.

void SctPixelRod::RodPrimitive::setLength long    len [inline]
 

Accessor function to set length.

Definition at line 32 of file RodPrimitive.h.

References m_length.

void SctPixelRod::RodPrimitive::setVersion long    version [inline]
 

Accessor function to set version.

Definition at line 47 of file RodPrimitive.h.

References m_version.


Field Documentation

long* SctPixelRod::RodPrimitive::m_body [private]
 

A pointer to the body of the primitive.

Storage is allocated in the calling routine, do not delete the body from within this class. Watch for memory leaks!!!

Definition at line 70 of file RodPrimitive.h.

Referenced by getBody(), and setBody().

long SctPixelRod::RodPrimitive::m_id [private]
 

The ID which says what kind of primitive this is (echo, memory test, etc.).

Definition at line 65 of file RodPrimitive.h.

Referenced by getId(), and setId().

long SctPixelRod::RodPrimitive::m_index [private]
 

The index of the primitive. This is an accounting ID giving a unique numerical identifier.

Definition at line 63 of file RodPrimitive.h.

Referenced by getIndex(), and setIndex().

long SctPixelRod::RodPrimitive::m_length [private]
 

The length of the primitive (may need to be filled after primitive is defined.).

Definition at line 61 of file RodPrimitive.h.

Referenced by getLength(), and setLength().

long SctPixelRod::RodPrimitive::m_version [private]
 

The version number for this primitive.

Definition at line 67 of file RodPrimitive.h.

Referenced by getVersion(), and setVersion().


The documentation for this class was generated from the following file:
Generated on Mon Dec 15 19:38:07 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3