#include <SubscriptionCycle.h>
Public Member Functions | |
SubscriptionCycle () | |
~SubscriptionCycle () | |
void | addCycle (const std::string &cycle) |
void | removeCycle (const std::string &cycle) |
void | matchContext (MultiplexingContext &ctxt, std::vector< std::string > &validCycles) |
this method fills the "validCycles" collection given by the caller with all the CycleSelector matching the given context. | |
void | printDebugState (std::stringstream &str, int32_t tabNb) |
Private Types | |
typedef std::map< std::string, int32_t > | CyclesMap |
typedef CyclesMap::iterator | CyclesItr |
Private Attributes | |
CyclesMap | cycles_ |
Definition at line 21 of file SubscriptionCycle.h.
typedef CyclesMap::iterator fesa::SubscriptionCycle::CyclesItr [private] |
Definition at line 44 of file SubscriptionCycle.h.
typedef std::map<std::string, int32_t> fesa::SubscriptionCycle::CyclesMap [private] |
Definition at line 43 of file SubscriptionCycle.h.
fesa::SubscriptionCycle::SubscriptionCycle | ( | ) |
Definition at line 11 of file SubscriptionCycle.cpp.
fesa::SubscriptionCycle::~SubscriptionCycle | ( | ) |
Definition at line 15 of file SubscriptionCycle.cpp.
void fesa::SubscriptionCycle::addCycle | ( | const std::string & | cycle | ) |
Definition at line 19 of file SubscriptionCycle.cpp.
References cycles_.
Referenced by fesa::Notification::addCycle(), and fesa::SubscriptionTreeManager::addSubscriber().
void fesa::SubscriptionCycle::matchContext | ( | MultiplexingContext & | ctxt, | |
std::vector< std::string > & | validCycles | |||
) |
this method fills the "validCycles" collection given by the caller with all the CycleSelector matching the given context.
ctxt | The Multiplexing Context | |
validCycles | will contain all the cycles matching the context as the result of this call |
Definition at line 47 of file SubscriptionCycle.cpp.
References cycles_, and fesa::MultiplexingContext::match().
Referenced by fesa::SubscriptionTreeManager::notify(), and fesa::Notification::notify().
void fesa::SubscriptionCycle::printDebugState | ( | std::stringstream & | str, | |
int32_t | tabNb | |||
) |
Definition at line 64 of file SubscriptionCycle.cpp.
References cycles_.
Referenced by fesa::Notification::printDebugState(), and fesa::SubscriptionTreeManager::printState().
void fesa::SubscriptionCycle::removeCycle | ( | const std::string & | cycle | ) |
Definition at line 34 of file SubscriptionCycle.cpp.
References cycles_.
Referenced by fesa::SubscriptionTreeManager::removeSubscriber(), and fesa::Notification::removeSubscriber().
CyclesMap fesa::SubscriptionCycle::cycles_ [private] |
Definition at line 45 of file SubscriptionCycle.h.
Referenced by addCycle(), matchContext(), printDebugState(), and removeCycle().