CARMA C++
IPQbuffer.h
Go to the documentation of this file.
1 #ifndef CARMA_UTIL_IPQBUFFER_H
2 #define CARMA_UTIL_IPQBUFFER_H
3 
17 
18 #include <sys/types.h>
19 #include <sys/mman.h>
20 #include <sys/uio.h>
21 
22 
23 namespace carma {
24  namespace util {
25 
26 
37 class IPQbuffer: public IPQbufferBase {
38 protected:
55  IPQbuffer( void * localElement,
56  int elementSize,
57  const ::std::string & filename,
58  bool isCreator = false,
59  int nElements = 0,
60  unsigned int testOffset = 0 );
61 
62 public:
66  virtual ~IPQbuffer() ;
67 
68 private:
72  virtual bool openBuffer();
73 
77  virtual bool createBuffer();
78 };
79 
80 } } // End of namespace carma::util
81 
82 #endif // CARMA_UTIL_IPQBUFFER_H
IPQbuffer(void *localElement, int elementSize, const ::std::string &filename, 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: IPQbufferBase.h:77
Shared memory storage mechanism for an IPQ buffer.
Definition: IPQbuffer.h:37
IPQ (InterProcessQueue) provides a generic way for information to be shared between processes or thre...
virtual ~IPQbuffer()
Destructor.