Flair
Framework Libre Air
SharedMem.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
13 #ifndef SHAREDMEM_H
14 #define SHAREDMEM_H
15 
16 #include <Object.h>
17 #include <semaphore.h>
18 
19 class SharedMem_impl;
20 
21 namespace flair {
22 namespace core {
23 
32 class SharedMem : public Object {
33 public:
43  SharedMem(const Object *parent, std::string name, size_t size);
44 
49  ~SharedMem();
50 
57  void Write(const char *buf, size_t size);
58 
65  void Read(char *buf, size_t size) const;
66 
67 private:
68  SharedMem_impl *pimpl_;
69 };
70 
71 } // end namespace core
72 } // end namespace flair
73 
74 #endif // SHAREDMEM_H
Base class for all Framework's classes.
Definition: Object.h:77
namespace of the flair Framework
Definition: Ahrs.h:19
void Read(char *buf, size_t size) const
Read.
Class defining a shared memory.
Definition: SharedMem.h:32
Base class for all Framework's classes.
~SharedMem()
Destructor.
void Write(const char *buf, size_t size)
Write.
SharedMem(const Object *parent, std::string name, size_t size)
Constructor.