client-cpp  0.0.1-SNAPSHOT
kaa::AbstractNotificationListener< T > Class Template Referenceabstract

#include <AbstractNotificationListener.hpp>

+ Inheritance diagram for kaa::AbstractNotificationListener< T >:
+ Collaboration diagram for kaa::AbstractNotificationListener< T >:

Public Member Functions

virtual void onNotificationRaw (const std::string &id, const std::vector< boost::uint8_t > &notification)
 
virtual void onNotification (const std::string &id, const T &notification)=0
 
- Public Member Functions inherited from kaa::INotificationListener
virtual ~INotificationListener ()
 

Detailed Description

template<typename T>
class kaa::AbstractNotificationListener< T >

Implements INotificationListener and ables to convert the raw notification's data to the needed object.

Author
Yaroslav Zeygerman

Definition at line 33 of file AbstractNotificationListener.hpp.

Member Function Documentation

template<typename T >
virtual void kaa::AbstractNotificationListener< T >::onNotification ( const std::string &  id,
const T &  notification 
)
pure virtual

User-defined routine for notification processing

Parameters
idtopic's id for which a notification is received
notificationavro-specific body of the topic notification
template<typename T >
virtual void kaa::AbstractNotificationListener< T >::onNotificationRaw ( const std::string &  id,
const std::vector< boost::uint8_t > &  notification 
)
inlinevirtual

Will be called when topic notification is received

Parameters
idtopic's id for which a notification is received
notificationbody of the topic notification

Implements kaa::INotificationListener.

Definition at line 42 of file AbstractNotificationListener.hpp.


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