00001 00002 // ************************************************************************** 00003 // * * 00004 // * ! ! ! A T T E N T I O N ! ! ! * 00005 // * * 00006 // * This file was created automatically by GaudiObjDesc, please do not * 00007 // * delete it or edit it by hand. * 00008 // * * 00009 // * If you want to change this file, first change the corresponding * 00010 // * xml-file and rerun the tools from GaudiObjDesc (or run make if you * 00011 // * are using it from inside a Gaudi-package). * 00012 // * * 00013 // ************************************************************************** 00014 00015 #ifndef SimTrigEvent_SimTrigHeader_H 00016 #define SimTrigEvent_SimTrigHeader_H 1 00017 00018 // Include files 00019 #include "Event/HeaderObject.h" 00020 #include "Event/SimTrigCommandHeader.h" 00021 #include "GaudiKernel/boost_allocator.h" 00022 #include <ostream> 00023 00024 // Forward declarations 00025 00026 namespace DayaBay 00027 { 00028 00029 // Forward declarations 00030 00031 // Class ID definition 00032 static const CLID CLID_SimTrigHeader = 51501; 00033 00034 // Namespace for locations in TDS 00035 namespace SimTrigHeaderLocation { 00036 static const std::string& Default = "/Event/SimTrig/SimTrigHeader"; 00037 } 00038 00039 00049 class SimTrigHeader: public HeaderObject 00050 { 00051 public: 00052 00054 static const std::string& defaultLocation() { return SimTrigHeaderLocation::Default; } 00055 virtual const std::string& defLoc() const { return SimTrigHeaderLocation::Default; } 00056 00058 SimTrigHeader() : m_commandHeader(0) {} 00059 00061 ~SimTrigHeader(); 00062 00063 // Retrieve pointer to class definition structure 00064 virtual const CLID& clID() const; 00065 static const CLID& classID(); 00066 00068 std::ostream& fillStream(std::ostream& s) const; 00069 00072 const DayaBay::SimTrigCommandHeader* commandHeader() const; 00073 00076 void setCommandHeader(DayaBay::SimTrigCommandHeader* value); 00077 00078 00079 #ifndef GOD_NOALLOC 00081 static void* operator new ( size_t size ) 00082 { 00083 return ( sizeof(SimTrigHeader) == size ? 00084 boost::singleton_pool<SimTrigHeader, sizeof(SimTrigHeader)>::malloc() : 00085 ::operator new(size) ); 00086 } 00087 00091 static void* operator new ( size_t size, void* pObj ) 00092 { 00093 return ::operator new (size,pObj); 00094 } 00095 00097 static void operator delete ( void* p ) 00098 { 00099 boost::singleton_pool<SimTrigHeader, sizeof(SimTrigHeader)>::is_from(p) ? 00100 boost::singleton_pool<SimTrigHeader, sizeof(SimTrigHeader)>::free(p) : 00101 ::operator delete(p); 00102 } 00103 00106 static void operator delete ( void* p, void* pObj ) 00107 { 00108 ::operator delete (p, pObj); 00109 } 00110 #endif 00111 protected: 00112 00113 private: 00114 00115 DayaBay::SimTrigCommandHeader* m_commandHeader; 00116 00117 }; // class SimTrigHeader 00118 00119 inline std::ostream& operator<< (std::ostream& str, const SimTrigHeader& obj) 00120 { 00121 return obj.fillStream(str); 00122 } 00123 00124 } // namespace DayaBay; 00125 00126 // ----------------------------------------------------------------------------- 00127 // end of class 00128 // ----------------------------------------------------------------------------- 00129 00130 // Including forward declarations 00131 00132 inline DayaBay::SimTrigHeader::~SimTrigHeader() 00133 { 00134 00135 delete m_commandHeader; 00136 00137 } 00138 00139 inline const CLID& DayaBay::SimTrigHeader::clID() const 00140 { 00141 return DayaBay::SimTrigHeader::classID(); 00142 } 00143 00144 inline const CLID& DayaBay::SimTrigHeader::classID() 00145 { 00146 return CLID_SimTrigHeader; 00147 } 00148 00149 inline const DayaBay::SimTrigCommandHeader* DayaBay::SimTrigHeader::commandHeader() const 00150 { 00151 return m_commandHeader; 00152 } 00153 00154 inline void DayaBay::SimTrigHeader::setCommandHeader(DayaBay::SimTrigCommandHeader* value) 00155 { 00156 m_commandHeader = value; 00157 } 00158 00159 00160 #endif