CARMA C++
IPQfileReader.h
Go to the documentation of this file.
1 #ifndef CARMA_UTIL_IPQFILEREADER_H
2 #define CARMA_UTIL_IPQFILEREADER_H
3 
12 
13 namespace carma {
14 namespace util {
15 
16 
73 template < class E >
74 class IPQfileReader : public IPQfileBuffer, public E {
75 public:
76 
94  IPQfileReader( const ::std::string & filenameString,
95  bool isCreator = false,
96  int nElements = 0,
97  unsigned int testOffset = 0);
98 
99 private:
103  void write( );
104 };
105 
106 
107 }} // End namespace carma::util
108 
109 
110 template < class E >
112  const ::std::string & filenameString,
113  const bool isCreator,
114  const int nElements,
115  const unsigned int testOffset) :
116 IPQfileBuffer( static_cast< E * >( this ),
117  sizeof( E ),
118  filenameString,
119  isCreator,
120  nElements,
121  testOffset)
122 {
123  init();
124 }
125 
126 
127 #endif // CARMA_UTIL_IPQFILEREADER_H
IPQ (InterProcessQueue) provides a generic way for information to be shared between processes or thre...
Shared memory storage mechanism.
Definition: IPQfileBuffer.h:29
IPQfileReader(const ::std::string &filenameString, bool isCreator=false, int nElements=0, unsigned int testOffset=0)
Constructor.
IPQ (InterProcessQueue) provides a generic way for information to be shared between processes or thre...
Definition: IPQfileReader.h:74
void init()
This does all the real constructor work.