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

Defect.h

00001 #ifndef SCTDATA_DEFECT_H
00002 #define SCTDATA_DEFECT_H
00003 
00004 #include "ModuleElement.h"
00005 
00006 namespace SctData {
00007     
00008 class DefectPrototype;
00009 
00015 class Defect {
00016 public:
00017     Defect(const DefectPrototype& proto, ModuleElement element) : prototype(&proto), element(element) {}
00018 
00023     const ModuleElement& getModuleElement() const {return element;}
00024 
00029     const DefectPrototype& getPrototype() const {return *prototype;}
00030     
00035     bool operator==(const Defect& defect) const {return element==defect.element && *prototype==*defect.prototype;}
00036 
00037 private:
00038     const DefectPrototype* prototype;       
00039     ModuleElement element;          
00040 };
00041 }
00042 
00043 #endif //SCTDATA_DEFECT_H

Generated on Thu Jul 15 09:50:44 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5