CARMA C++
IPQreader.h
Go to the documentation of this file.
1 #ifndef CARMA_UTIL_IPQREADER_H
2 #define CARMA_UTIL_IPQREADER_H
3 
13 #include "carma/util/IPQbuffer.h"
14 
15 namespace carma {
16 namespace util {
17 
18 
80 template < class E >
81 class IPQreader : public IPQbuffer, public E {
82 public:
83 
101  IPQreader( const ::std::string & filenameString,
102  bool isCreator = false,
103  int nElements = 0,
104  unsigned int testOffset = 0);
105 
106 
107 };
108 
109 
110 }} // End namespace carma::util
111 
112 
113 template < class E >
115  const ::std::string & filenameString,
116  const bool isCreator,
117  const int nElements,
118  const unsigned int testOffset) :
119 IPQbuffer( static_cast< E * >( this ),
120  sizeof( E ),
121  filenameString,
122  isCreator,
123  nElements,
124  testOffset)
125 {
126  init();
127 }
128 
129 
130 #endif // CARMA_UTIL_IPQREADER_H
IPQ (InterProcessQueue) provides a generic way for information to be shared between processes or thre...
Shared memory storage mechanism for an IPQ buffer.
Definition: IPQbuffer.h:37
IPQreader(const ::std::string &filenameString, bool isCreator=false, int nElements=0, unsigned int testOffset=0)
Constructor for shared memory queue reader.
Definition: IPQreader.h:114
void init()
This does all the real constructor work.