1#ifndef Cpl_Dm_Mp_Void_h_
2#define Cpl_Dm_Mp_Void_h_
60 :
Pointer_<
Void>( myModelBase, symbolicName, initialValue )
67 inline bool read(
void*& dstData, uint16_t* seqNumPtr = 0 ) const noexcept
69 return readData( &dstData,
sizeof(
void* ), seqNumPtr );
75 return writeData( &newValue,
sizeof(
void* ), lockRequest );
91 return "Cpl::Dm::Mp::Void";
This concrete class implements a simple Model Database.
Definition ModelDatabase.h:56
bool readAndSync(void *dstData, size_t dstSize, SubscriberApi &observerToSync)
This method is used to read the MP contents and synchronize the observer with the current MP contents...
Definition ModelPointCommon_.h:93
bool readData(void *dstData, size_t dstSize, uint16_t *seqNumPtr=0) const noexcept
See Cpl::Dm::ModelPoint.
uint16_t writeData(const void *srcData, size_t srcSize, LockRequest_T lockRequest=eNO_REQUEST) noexcept
See Cpl::Dm::ModelPoint.
LockRequest_T
Options related to the Model Point's locked state.
Definition ModelPoint.h:50
@ eNO_REQUEST
No change in the MP's lock state is requested.
Definition ModelPoint.h:51
This template class extends the implementation of Numeric<> class to support the pointers instead of ...
Definition Numeric.h:310
This class provides a concrete implementation for a Point who's data is a void pointer.
Definition Void.h:50
bool readAndSync(void *&dstData, SubscriberApi &observerToSync)
See Cpl::Dm::ModelPointCommon.
Definition Void.h:83
const char * getTypeAsText() const noexcept
See Cpl::Dm::ModelPoint.
Definition Void.h:89
Void(Cpl::Dm::ModelDatabase &myModelBase, const char *symbolicName)
Constructor. Invalid MP.
Definition Void.h:53
uint16_t write(void *newValue, Cpl::Dm::ModelPoint::LockRequest_T lockRequest=Cpl::Dm::ModelPoint::eNO_REQUEST) noexcept
Type safe write. See Cpl::Dm::ModelPoint.
Definition Void.h:73
Cpl::Dm::Subscriber< Void > Observer
Type safe subscriber.
Definition Void.h:80
Void(Cpl::Dm::ModelDatabase &myModelBase, const char *symbolicName, void *initialValue)
Constructor. Valid MP. Requires an initial value.
Definition Void.h:59
bool read(void *&dstData, uint16_t *seqNumPtr=0) const noexcept
Type safe read. See Cpl::Dm::ModelPoint.
Definition Void.h:67
This abstract class defines the Subscriber interface - for change notifications - to a Model Points d...
Definition SubscriberApi.h:34
This template class defines a type safe Subscriber.
Definition Subscriber.h:82
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20