DUECA/DUSIME
Loading...
Searching...
No Matches
Protected Member Functions | Protected Attributes | List of all members
dueca::DataUpdaterBase Class Reference

Common base class for DataUpdater instantiations. More...

#include <DataUpdater.hxx>

Inheritance diagram for dueca::DataUpdaterBase:
Inheritance graph
[legend]
Collaboration diagram for dueca::DataUpdaterBase:
Collaboration graph
[legend]

Protected Member Functions

 DataUpdaterBase (ChannelWriteToken &token, const DataTimeSpec &ts)
 Constructor.
 
voidbaseGetAccess (uint32_t magic)
 Lets the token copy the latest data written (or, if not available, return a default object)
 
void releaseAccess (void *data_ptr)
 Releasing the read access means that the data will be sent to the channel and made accessible for reading.
 

Protected Attributes

ChannelWriteTokentoken
 Access to the channel.
 
DataTimeSpec ts
 Time specification to be used.
 

Detailed Description

Common base class for DataUpdater instantiations.

Member Function Documentation

◆ baseGetAccess()

void * dueca::DataUpdaterBase::baseGetAccess ( uint32_t magic)
inlineprotected

Lets the token copy the latest data written (or, if not available, return a default object)

Parameters
magicMagic check number, used to verify data class
Returns
A void pointer to the data object

◆ releaseAccess()

void dueca::DataUpdaterBase::releaseAccess ( void * data_ptr)
inlineprotected

Releasing the read access means that the data will be sent to the channel and made accessible for reading.

The associated time can be used to trigger clients who requested triggering.

Parameters
data_ptrPointer to the data object to be sent

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