00001 #ifndef LTBREADOUTFORMAT_LTBBUFFER_H 00002 #define LTBREADOUTFORMAT_LTBBUFFER_H 00003 00004 /* 00005 * LtbBuffer.h 00006 * LtbReadoutFormat 00007 * 00008 * Created by Simon Patton on 7/21/10. 00009 * Copyright 2010 DayaBay Collaboration. All rights reserved. 00010 * 00011 */ 00012 00013 #include "DaqReadoutFormat/DaqBuffer.h" 00014 00015 namespace DybDaq { 00016 class ByteBuffer; 00017 class LtbTraits; 00018 } 00019 00020 namespace DybDaq { 00021 00022 class LtbBuffer : public DaqBuffer { 00023 00024 public: 00025 00029 virtual ~LtbBuffer(); 00030 00034 const LtbTraits& ltbTraits() const; 00035 00036 protected: 00037 00041 LtbBuffer(char* buffer, 00042 const LtbTraits& traits, 00043 const unsigned int size = 0); 00044 00048 LtbBuffer(const ByteBuffer& byteBuffer, 00049 const LtbTraits& traits); 00050 00051 private: 00052 00056 LtbBuffer(); 00057 00061 LtbBuffer(LtbBuffer& rhs); 00062 00066 LtbBuffer& operator=(LtbBuffer& rhs); 00067 }; 00068 00069 } 00070 00071 #endif // LTBREADOUTFORMAT_LTBBUFFER_H