Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cx::SharedMemoryClient Class Reference

Shared Memory Client. More...

#include <cxSharedMemory.h>

Public Member Functions

 SharedMemoryClient (QObject *parent=0)
 
 ~SharedMemoryClient ()
 
bool attach (const QString &key)
 
bool detach ()
 
int size ()
 
int buffers ()
 
QString key ()
 
const void * buffer (bool onlyNew=false)
 Grab and lock a read buffer. More...
 
void release ()
 Release our read buffer. More...
 
const void * isNew ()
 Return new buffer only if new is available, otherwise return NULL. More...
 
QDateTime timestamp ()
 

Detailed Description

Shared Memory Client.

See also
SharedMemoryServer

Definition at line 84 of file cxSharedMemory.h.

Constructor & Destructor Documentation

cx::SharedMemoryClient::SharedMemoryClient ( QObject *  parent = 0)

Definition at line 128 of file cxSharedMemory.cpp.

cx::SharedMemoryClient::~SharedMemoryClient ( )

Definition at line 199 of file cxSharedMemory.cpp.

Member Function Documentation

bool cx::SharedMemoryClient::attach ( const QString &  key)

Definition at line 135 of file cxSharedMemory.cpp.

const void * cx::SharedMemoryClient::buffer ( bool  onlyNew = false)

Grab and lock a read buffer.

Definition at line 153 of file cxSharedMemory.cpp.

int cx::SharedMemoryClient::buffers ( )
inline

Definition at line 99 of file cxSharedMemory.h.

bool cx::SharedMemoryClient::detach ( )

Definition at line 148 of file cxSharedMemory.cpp.

const void * cx::SharedMemoryClient::isNew ( )

Return new buffer only if new is available, otherwise return NULL.

Definition at line 179 of file cxSharedMemory.cpp.

QString cx::SharedMemoryClient::key ( )
inline

Definition at line 100 of file cxSharedMemory.h.

void cx::SharedMemoryClient::release ( )

Release our read buffer.

Definition at line 184 of file cxSharedMemory.cpp.

int cx::SharedMemoryClient::size ( )
inline

Definition at line 98 of file cxSharedMemory.h.

QDateTime cx::SharedMemoryClient::timestamp ( )
inline

Definition at line 104 of file cxSharedMemory.h.


The documentation for this class was generated from the following files: