#include <TransformReactor.hpp>
Inherits pion::platform::Reactor.
Definition at line 39 of file TransformReactor.hpp.
Public Member Functions | |
| TransformReactor (void) | |
| constructs a new TransformReactor object | |
| virtual | ~TransformReactor () |
| virtual destructor: this class is meant to be extended | |
| virtual void | setConfig (const pion::platform::Vocabulary &v, const xmlNodePtr config_ptr) |
| virtual void | updateVocabulary (const pion::platform::Vocabulary &v) |
| virtual void | process (const pion::platform::EventPtr &e) |
Classes | |
| class | EmptySetTermException |
| exception thrown if source term is missing from assign term transformation More... | |
| class | EmptyTermException |
| exception thrown if the TransformReactor configuration does not define a Term for a Comparison More... | |
| class | EmptyTransformationException |
| exception thrown if a set value is missing from transformation configuration More... | |
| class | EmptyTypeException |
| exception thrown if the TransformReactor configuration does not define a Comparison type More... | |
| class | EmptyValueException |
| exception thrown if the TransformReactor configuration does not define a Term for a Comparison More... | |
| class | InvalidTransformation |
| exception thrown if the TransformReactor configuration does not define a Term for a Comparison More... | |
| class | TransformFailureException |
| exception thrown if an exception is caught from transform() More... | |
| class | UnknownTermException |
| exception thrown if the TransformReactor configuration uses an unknown Term for a Comparison More... | |
| void pion::plugins::TransformReactor::process | ( | const pion::platform::EventPtr & | e | ) | [virtual] |
modifies Events according to transformation rules and delivers the resulting Events to the output connections.
| e | pointer to the Event to process |
Reimplemented from pion::platform::Reactor.
Definition at line 220 of file TransformReactor.cpp.
References pion::platform::EventFactory::create(), pion::platform::Reactor::deliverEvent(), pion::platform::PlatformPlugin::getId(), pion::platform::PlatformPlugin::getReactionEngine(), and pion::platform::Reactor::stop().
| void pion::plugins::TransformReactor::setConfig | ( | const pion::platform::Vocabulary & | v, | |
| const xmlNodePtr | config_ptr | |||
| ) | [virtual] |
sets configuration parameters for this Reactor
| v | the Vocabulary that this Reactor will use to describe Terms | |
| config_ptr | pointer to a list of XML nodes containing Reactor configuration parameters |
Reimplemented from pion::platform::Reactor.
Definition at line 105 of file TransformReactor.cpp.
References pion::platform::Reactor::ConfigWriteLock, pion::platform::Vocabulary::findTerm(), and pion::platform::PlatformPlugin::getId().
| void pion::plugins::TransformReactor::updateVocabulary | ( | const pion::platform::Vocabulary & | v | ) | [virtual] |
this updates the Vocabulary information used by this Reactor; it should be called whenever the global Vocabulary is updated
| v | the Vocabulary that this Reactor will use to describe Terms |
Reimplemented from pion::platform::Reactor.
Definition at line 208 of file TransformReactor.cpp.
References pion::platform::Reactor::ConfigWriteLock.
1.4.7