#include <OnSubscriptionRTEventPayload.h>
Public Member Functions | |
OnSubscriptionRTEventPayload (std::string &deviceName, std::string &propertyName, std::string &cycleSelectorName, rdaData &data) | |
std::string | getDeviceName () |
Retrieve the device name which produced the notification. | |
std::string | getPropertyName () |
Retrieve the property name which produced the notification. | |
std::string | getCycleSelectorName () |
Retrieve the cycle name when the notification occurred. | |
template<class T > | |
void | getValue (T &data) |
Retrieve the data notified for a remote device. The type of the data is specific of each property and it is passed in the template parameter. | |
Private Attributes | |
std::string | deviceName_ |
name of the device that was notified | |
std::string | propertyName_ |
name of the property that was notified | |
std::string | cycleSelectorName_ |
cycle selector | |
rdaData | rdaData_ |
rda data | |
Friends | |
class | OnSubscriptionEventSource |
Definition at line 19 of file OnSubscriptionRTEventPayload.h.
fesa::OnSubscriptionRTEventPayload::OnSubscriptionRTEventPayload | ( | std::string & | deviceName, | |
std::string & | propertyName, | |||
std::string & | cycleSelectorName, | |||
rdaData & | data | |||
) |
FESA-758 the constructor should accept all the necessary parameters deviceName, propertyName, cycle
Definition at line 8 of file OnSubscriptionRTEventPayload.cpp.
References cycleSelectorName_, deviceName_, propertyName_, and rdaData_.
std::string fesa::OnSubscriptionRTEventPayload::getCycleSelectorName | ( | ) |
Retrieve the cycle name when the notification occurred.
Definition at line 27 of file OnSubscriptionRTEventPayload.cpp.
References cycleSelectorName_.
std::string fesa::OnSubscriptionRTEventPayload::getDeviceName | ( | ) |
Retrieve the device name which produced the notification.
Definition at line 17 of file OnSubscriptionRTEventPayload.cpp.
References deviceName_.
std::string fesa::OnSubscriptionRTEventPayload::getPropertyName | ( | ) |
Retrieve the property name which produced the notification.
Definition at line 22 of file OnSubscriptionRTEventPayload.cpp.
References propertyName_.
void fesa::OnSubscriptionRTEventPayload::getValue | ( | T & | data | ) | [inline] |
Retrieve the data notified for a remote device. The type of the data is specific of each property and it is passed in the template parameter.
Definition at line 79 of file OnSubscriptionRTEventPayload.h.
References rdaData_.
friend class OnSubscriptionEventSource [friend] |
Definition at line 76 of file OnSubscriptionRTEventPayload.h.
cycle selector
Definition at line 69 of file OnSubscriptionRTEventPayload.h.
Referenced by getCycleSelectorName(), and OnSubscriptionRTEventPayload().
name of the device that was notified
Definition at line 59 of file OnSubscriptionRTEventPayload.h.
Referenced by getDeviceName(), and OnSubscriptionRTEventPayload().
name of the property that was notified
Definition at line 64 of file OnSubscriptionRTEventPayload.h.
Referenced by getPropertyName(), and OnSubscriptionRTEventPayload().
rda data
Definition at line 75 of file OnSubscriptionRTEventPayload.h.
Referenced by getValue(), OnSubscriptionRTEventPayload(), and fesa::OnSubscriptionEventSource::wait().