CARMA C++
IPQfileWriter.h
Go to the documentation of this file.
1 #ifndef CARMA_UTIL_IPQFILEWRITER_H
2 #define CARMA_UTIL_IPQFILEWRITER_H
3 
14 
15 namespace carma {
16 namespace util {
17 
18 
80 template < class E >
81 class IPQfileWriter : public IPQfileBuffer, public E {
82 public:
104  IPQfileWriter( const ::std::string & filenameString,
105  bool isCreator = false,
106  int nElements = 0,
107  unsigned int testOffset = 0);
108 
114  void write( );
115 };
116 
117 
118 }} // End namespace carma::util
119 
120 
121 template < class E >
123  const ::std::string & filenameString,
124  const bool isCreator,
125  const int nElements,
126  const unsigned int testOffset) :
127 IPQfileBuffer( static_cast< E * >( this ),
128  sizeof( E ),
129  filenameString,
130  isCreator,
131  nElements,
132  testOffset)
133 {
134  init();
135 }
136 
137 
138 template < class E >
139 void
141 {
143 }
144 
145 
146 #endif // CARMA_UTIL_IPQFILEWRITER_H
IPQfileWriter(const ::std::string &filenameString, bool isCreator=false, int nElements=0, unsigned int testOffset=0)
Constructor for a writer of a memory mapped file.
IPQ (InterProcessQueue) provides a generic way for information to be shared between processes or thre...
Definition: IPQfileWriter.h:81
IPQ (InterProcessQueue) provides a generic way for information to be shared between processes or thre...
void write()
Put an element into the queue.
Shared memory storage mechanism.
Definition: IPQfileBuffer.h:29
void write()
Put an element into the queue.
void init()
This does all the real constructor work.