| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

RawLtbFrameUnix.h

Go to the documentation of this file.
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 RawEvent_RawLtbFrameUnix_H
00016 #define RawEvent_RawLtbFrameUnix_H 1
00017 
00018 // Include files
00019 #include "Context/TimeStamp.h"
00020 #include "Event/RawLtbFrame.h"
00021 #include "GaudiKernel/boost_allocator.h"
00022 #include <ostream>
00023 
00024 // Forward declarations
00025 
00026 namespace DayaBay 
00027 {
00028 
00029   // Forward declarations
00030 
00040   class RawLtbFrameUnix: public RawLtbFrame
00041   {
00042   public:
00043 
00045     RawLtbFrameUnix() : m_unixSecLow(0),
00046                         m_unixSecHigh(0) {}
00047   
00049     virtual ~RawLtbFrameUnix() {}
00050   
00052    virtual std::ostream& fillStream(std::ostream& s) const;
00053   
00056   int unixSecLow() const;
00057   
00060   void setUnixSecLow(int value);
00061   
00064   int unixSecHigh() const;
00065   
00068   void setUnixSecHigh(int value);
00069   
00070   
00071   #ifndef GOD_NOALLOC
00073     static void* operator new ( size_t size )
00074     {
00075       return ( sizeof(RawLtbFrameUnix) == size ? 
00076                boost::singleton_pool<RawLtbFrameUnix, sizeof(RawLtbFrameUnix)>::malloc() :
00077                ::operator new(size) );
00078     }
00079   
00083     static void* operator new ( size_t size, void* pObj )
00084     {
00085       return ::operator new (size,pObj);
00086     }
00087   
00089     static void operator delete ( void* p )
00090     {
00091       boost::singleton_pool<RawLtbFrameUnix, sizeof(RawLtbFrameUnix)>::is_from(p) ?
00092       boost::singleton_pool<RawLtbFrameUnix, sizeof(RawLtbFrameUnix)>::free(p) :
00093       ::operator delete(p);
00094     }
00095   
00098     static void operator delete ( void* p, void* pObj )
00099     {
00100       ::operator delete (p, pObj);
00101     }
00102   #endif
00103   protected:
00104 
00105   private:
00106 
00107     int m_unixSecLow;  
00108     int m_unixSecHigh; 
00109   
00110   }; // class RawLtbFrameUnix
00111 
00112   inline std::ostream& operator<< (std::ostream& str, const RawLtbFrameUnix& obj)
00113   {
00114     return obj.fillStream(str);
00115   }
00116   
00117 } // namespace DayaBay;
00118 
00119 // -----------------------------------------------------------------------------
00120 // end of class
00121 // -----------------------------------------------------------------------------
00122 
00123 // Including forward declarations
00124 
00125 inline std::ostream& DayaBay::RawLtbFrameUnix::fillStream(std::ostream& s) const
00126 {
00127   RawLtbFrame::fillStream(s);
00128   s << "{ " << "unixSecLow :    " << m_unixSecLow << std::endl
00129             << "unixSecHigh :   " << m_unixSecHigh << std::endl << " }";
00130   return s;
00131 }
00132 
00133 
00134 inline int DayaBay::RawLtbFrameUnix::unixSecLow() const 
00135 {
00136   return m_unixSecLow;
00137 }
00138 
00139 inline void DayaBay::RawLtbFrameUnix::setUnixSecLow(int value) 
00140 {
00141   m_unixSecLow = value;
00142 }
00143 
00144 inline int DayaBay::RawLtbFrameUnix::unixSecHigh() const 
00145 {
00146   return m_unixSecHigh;
00147 }
00148 
00149 inline void DayaBay::RawLtbFrameUnix::setUnixSecHigh(int value) 
00150 {
00151   m_unixSecHigh = value;
00152 }
00153 
00154 
00155 #endif 
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:20:14 2011 for RawEvent by doxygen 1.4.7