NorMIT-nav  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

◆ SharedMemoryClient()

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

Definition at line 128 of file cxSharedMemory.cpp.

◆ ~SharedMemoryClient()

cx::SharedMemoryClient::~SharedMemoryClient ( )

Definition at line 199 of file cxSharedMemory.cpp.

Member Function Documentation

◆ attach()

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

Definition at line 135 of file cxSharedMemory.cpp.

◆ buffer()

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

Grab and lock a read buffer.

Definition at line 153 of file cxSharedMemory.cpp.

◆ buffers()

int cx::SharedMemoryClient::buffers ( )
inline

Definition at line 99 of file cxSharedMemory.h.

◆ detach()

bool cx::SharedMemoryClient::detach ( )

Definition at line 148 of file cxSharedMemory.cpp.

◆ isNew()

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

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

Definition at line 179 of file cxSharedMemory.cpp.

◆ key()

QString cx::SharedMemoryClient::key ( )
inline

Definition at line 100 of file cxSharedMemory.h.

◆ release()

void cx::SharedMemoryClient::release ( )

Release our read buffer.

Definition at line 184 of file cxSharedMemory.cpp.

◆ size()

int cx::SharedMemoryClient::size ( )
inline

Definition at line 98 of file cxSharedMemory.h.

◆ timestamp()

QDateTime cx::SharedMemoryClient::timestamp ( )
inline

Definition at line 104 of file cxSharedMemory.h.


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