2 #ifndef CARMA_UI_RTD_MEMORYMAPPEDFILE_H_
3 #define CARMA_UI_RTD_MEMORYMAPPEDFILE_H_
99 bool persistent =
true);
112 bool persistent =
true);
142 void init(
const char* map_file_name,
146 bool persistent =
true);
147 MapfileHeader* header;
160 #endif // _MEMORYMAPPEDFILE_H_
bool unlock()
Unlock the file.
Exceptions for MemoryMappedFile's.
Protection_t
File protection flags.
Memory Mapped file is a class that provides a C++ interface to the mmap(2) system call...
MemoryMappedFile(const char *map_file_name, size_t client_size, bool reuse, Protection_t p_mask=Protection_t(Read|Write), bool persistent=true)
bool lockRead()
Lock the file for read access.
void * getClientArea()
Get a pointer to the start of the data area.
~MemoryMappedFile()
Destructor.
int getFileDescriptor() const
Get the file descriptor.
bool lockWrite()
Lock the file for write access.
const char * getFileName()
Get the filename.