fesa::SubscriptionParameter Class Reference

The SubscriptionTreeManager is implemented as a singleton. It provides a functional interface to the subscription tree and manages the tree - mutex - policity. More...

#include <SubscriptionParameter.h>

List of all members.

Public Member Functions

 SubscriptionParameter (const std::string &paramName, AbstractDevice &device, Property &property, bool useFastUpdate, NotificationThread *pNotificationThread)
 ~SubscriptionParameter ()
void notify (MultiplexingContext &muxContext, RequestType &reqType, std::vector< std::string > &validCS)
void addSubscriber (const std::string &cycleSelector, const rdaData &filter, rdaValueChangeListener *subscriber)
void removeSubscriber (const std::string &cycleSelector, rdaValueChangeListener *subscriber, bool &isEmpty)
const std::string & getName ()
PropertygetProperty ()
AbstractDevicegetDevice ()
void reportInternalError (const std::string &errorCategory, int32_t errorCode, const std::string &message, bool changed)
void printDebugState (std::stringstream &str)

Private Types

typedef std::vector
< boost::shared_ptr
< AbstractSubscriptionFilter > > 
SubscriptionFilterVector
 vector that contains all the filters registered for this SubscriptionParameter.
typedef
SubscriptionFilterVector::iterator 
SubscriptionFilterItr

Private Attributes

SubscriptionFilterVector filters_
std::string name_
 SubscriptionParameter name.
AbstractDevicedevice_
 reference to the device instance
Propertyproperty_
 reference to the property instance
bool useFastUpdate_
 defines the client update policy
NotificationThreadpNotificationThread_
 A reference to the Notification thread of the corresponding Property.

Detailed Description

The SubscriptionTreeManager is implemented as a singleton. It provides a functional interface to the subscription tree and manages the tree - mutex - policity.

Definition at line 30 of file SubscriptionParameter.h.


Member Typedef Documentation

typedef SubscriptionFilterVector::iterator fesa::SubscriptionParameter::SubscriptionFilterItr [private]

Definition at line 59 of file SubscriptionParameter.h.

typedef std::vector<boost::shared_ptr<AbstractSubscriptionFilter> > fesa::SubscriptionParameter::SubscriptionFilterVector [private]

vector that contains all the filters registered for this SubscriptionParameter.

Definition at line 58 of file SubscriptionParameter.h.


Constructor & Destructor Documentation

fesa::SubscriptionParameter::SubscriptionParameter ( const std::string &  paramName,
AbstractDevice device,
Property property,
bool  useFastUpdate,
NotificationThread pNotificationThread 
)
fesa::SubscriptionParameter::~SubscriptionParameter (  ) 

Member Function Documentation

void fesa::SubscriptionParameter::addSubscriber ( const std::string &  cycleSelector,
const rdaData &  filter,
rdaValueChangeListener *  subscriber 
)
AbstractDevice & fesa::SubscriptionParameter::getDevice (  )  [inline]

Definition at line 98 of file SubscriptionParameter.h.

References device_.

const std::string & fesa::SubscriptionParameter::getName (  )  [inline]

Definition at line 88 of file SubscriptionParameter.h.

References name_.

Property & fesa::SubscriptionParameter::getProperty (  )  [inline]

Definition at line 93 of file SubscriptionParameter.h.

References property_.

void fesa::SubscriptionParameter::notify ( MultiplexingContext muxContext,
RequestType reqType,
std::vector< std::string > &  validCS 
)

Definition at line 125 of file SubscriptionParameter.cpp.

References filters_.

void fesa::SubscriptionParameter::printDebugState ( std::stringstream &  str  ) 

Definition at line 145 of file SubscriptionParameter.cpp.

References filters_, and name_.

void fesa::SubscriptionParameter::removeSubscriber ( const std::string &  cycleSelector,
rdaValueChangeListener *  subscriber,
bool &  isEmpty 
)

Definition at line 105 of file SubscriptionParameter.cpp.

References filters_.

void fesa::SubscriptionParameter::reportInternalError ( const std::string &  errorCategory,
int32_t  errorCode,
const std::string &  message,
bool  changed 
)

Definition at line 136 of file SubscriptionParameter.cpp.

References filters_.


Member Data Documentation

reference to the device instance

Definition at line 70 of file SubscriptionParameter.h.

Referenced by addSubscriber(), and getDevice().

std::string fesa::SubscriptionParameter::name_ [private]

A reference to the Notification thread of the corresponding Property.

Definition at line 85 of file SubscriptionParameter.h.

Referenced by addSubscriber().

reference to the property instance

Definition at line 75 of file SubscriptionParameter.h.

Referenced by addSubscriber(), and getProperty().

defines the client update policy

Definition at line 80 of file SubscriptionParameter.h.

Referenced by addSubscriber().


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

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1