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

RodPrimitive.h

Go to the documentation of this file.
00001 // File: RodPrimitive.h
00002 
00003 #ifndef SCTPIXELROD_RODPRIMITIVE_H
00004 #define SCTPIXELROD_RODPRIMITIVE_H
00005 
00019 namespace SctPixelRod {
00020 
00021 class RodPrimitive
00022 {
00023 public:
00024     RodPrimitive();                                               // Default constructor
00025     RodPrimitive( long length, long index, long id, long version, 
00026                       long * body);                                   // Alternate constructor
00027     RodPrimitive( const RodPrimitive& );                          // Copy constructor
00028     ~RodPrimitive();                                              // Destructor
00029     RodPrimitive& operator=( const RodPrimitive&);                //Overload = operator
00030 
00032     void setLength( long len) { m_length = len; }
00034     long getLength() const { return m_length; }
00035     
00037     void setIndex( long ind) { m_index = ind; }
00039     long getIndex() const { return m_index; }
00040     
00042     void setId( long id) { m_id = id; }
00044     long getId() const { return m_id; }
00045     
00047     void setVersion( long version) { m_version = version; }
00049     long getVersion() const { return m_version; }
00050     
00052     void setBody( long *body) { m_body = body;}
00054     long* getBody() const {return m_body; }
00055  
00057         long checkSum();
00058 
00059 private:
00061     long m_length;
00063     long m_index;
00065     long m_id;
00067         long m_version;
00070     long *m_body;
00071 
00072 };                                    // End of RodPrimitive declaration
00073 } // End namespace SctPixelRod
00074 
00075 #endif  // SCTPIXELROD_RodPrimitive_H

Generated on Mon Dec 15 19:36:13 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3