00001 #ifndef DAQREADOUTFORMAT_BYTEINSPECTOR_H 00002 #define DAQREADOUTFORMAT_BYTEINSPECTOR_H 00003 00004 /* 00005 * ByteInspector.h 00006 * DaqReadoutFormat 00007 * 00008 * Created by Simon Patton on 4/4/11. 00009 * Copyright 2010 DayaBay Collaboration. All rights reserved. 00010 * 00011 */ 00012 #include <string> 00013 #include <vector> 00014 00015 namespace DybDaq { 00016 class BitsInspector; 00017 } 00018 00019 namespace DybDaq { 00020 00021 class ByteInspector { 00022 00023 public: 00024 00025 typedef std::vector<BitsInspector*> Bits; 00026 00030 ByteInspector(unsigned int value, 00031 Bits* bits); 00032 00036 virtual ~ByteInspector(); 00037 00041 unsigned int value() const; 00042 00046 const Bits& bits() const; 00047 00048 protected: 00049 00050 private: 00051 00055 ByteInspector(); 00056 00060 ByteInspector(ByteInspector& rhs); 00061 00065 ByteInspector& operator=(ByteInspector& rhs); 00066 00070 const unsigned int m_value; 00071 00075 Bits* m_bits; 00076 }; 00077 00078 } 00079 00080 #endif // DAQREADOUTFORMAT_BYTEINSPECTOR_H