1#ifndef Ajax_ScreenMgr_MpStaticScreenApiPtr_h_
2#define Ajax_ScreenMgr_MpStaticScreenApiPtr_h_
61 return readData( &dstData,
sizeof(
void* ), seqNumPtr );
67 return writeData( &newValue,
sizeof(
void* ), lockRequest );
77 return ModelPointCommon_::readAndSync( &dstData,
sizeof(
void* ), observerToSync );
83 return "Ajax::ScreenMgr::MpStaticScreenApiPtr";
This class provides a concrete implementation for a Point who's data is a StaticScreenApi pointer.
Definition MpStaticScreenApiPtr.h:42
const char * getTypeAsText() const noexcept
See Cpl::Dm::ModelPoint.
Definition MpStaticScreenApiPtr.h:81
bool readAndSync(StaticScreenApi *&dstData, Cpl::Dm::SubscriberApi &observerToSync)
See Cpl::Dm::ModelPointCommon.
Definition MpStaticScreenApiPtr.h:75
MpStaticScreenApiPtr(Cpl::Dm::ModelDatabase &myModelBase, const char *symbolicName, void *initialValue)
Constructor. Valid MP. Requires an initial value.
Definition MpStaticScreenApiPtr.h:51
uint16_t write(StaticScreenApi *newValue, Cpl::Dm::ModelPoint::LockRequest_T lockRequest=Cpl::Dm::ModelPoint::eNO_REQUEST) noexcept
Type safe write. See Cpl::Dm::ModelPoint.
Definition MpStaticScreenApiPtr.h:65
Cpl::Dm::Subscriber< MpStaticScreenApiPtr > Observer
Type safe subscriber.
Definition MpStaticScreenApiPtr.h:72
bool read(StaticScreenApi *&dstData, uint16_t *seqNumPtr=0) const noexcept
Type safe read. See Cpl::Dm::ModelPoint.
Definition MpStaticScreenApiPtr.h:59
MpStaticScreenApiPtr(Cpl::Dm::ModelDatabase &myModelBase, const char *symbolicName)
Constructor. Invalid MP.
Definition MpStaticScreenApiPtr.h:45
This class defines interface for Screens that only contain static data.
Definition StaticScreenApi.h:31
This concrete class implements a simple Model Database.
Definition ModelDatabase.h:56
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
Pointer_(Cpl::Dm::ModelDatabase &myModelBase, const char *symbolicName)
Constructor. Invalid MP.
Definition Numeric.h:313
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 'Ajax' namespace is the root name space all GM6000 application specific source code.