fesa-core  4.3.1
fesa::ShmMultiplexingDataManager Class Reference

This class extends the CycleDataManager class to deal with shared memory. More...

#include <ShmMultiplexingDataManager.h>

Inheritance diagram for fesa::ShmMultiplexingDataManager:
fesa::MultiplexingDataManager fesa::AbstractMultiplexingDataManager

Public Member Functions

std::size_t computeMemorySize ()
 This method returns the number of bites that are necessary to store the date of the class. More...
 
void mapMemory (char *address, bool first)
 
- Public Member Functions inherited from fesa::MultiplexingDataManager
 MultiplexingDataManager ()
 Constructor.
 
virtual ~MultiplexingDataManager ()
 Destructor.
 
- Public Member Functions inherited from fesa::AbstractMultiplexingDataManager
virtual ~AbstractMultiplexingDataManager ()
 Destructor.
 

Additional Inherited Members

- Protected Attributes inherited from fesa::MultiplexingDataManager
int32_t * currentCycleId_
 Current cycleID.
 
Mutexmutex_
 mutex for all class member variables
 
int32_t * currentSlot_
 The slot where the data of the current cycle is stored.
 

Detailed Description

This class extends the CycleDataManager class to deal with shared memory.

Member Function Documentation

std::size_t fesa::ShmMultiplexingDataManager::computeMemorySize ( )
virtual

This method returns the number of bites that are necessary to store the date of the class.

Returns
The number of bytes needed to store the data

Implements fesa::MultiplexingDataManager.

void fesa::ShmMultiplexingDataManager::mapMemory ( char *  address,
bool  first 
)
virtual

Maps shared fields to the memory pointed to by pAddr.

Parameters
addressaddress where to map shared fields
firsttrue if this is the first process to map the shared fields

Implements fesa::MultiplexingDataManager.


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