pion::platform::TransformAssignValue Class Reference

#include <Transform.hpp>

Inherits pion::platform::Transform.

List of all members.


Detailed Description

TransformAssignValue -- Transformation based on assigning a value to a Term Current implementation takes the std::string value of the "SetValue", and does a lexical cast upon assignment -- theoretically an implementation that did a lexical cast to start with, and then used an assignment might be faster... (once vs. many times) Also, this implementation will throw a every assignment (if not possible to lexically cast) while, a pre-cast version would throw once -- at configuration time...

Definition at line 166 of file Transform.hpp.

Public Member Functions

 TransformAssignValue (const Vocabulary &v, const Vocabulary::Term &term, const xmlNodePtr config_ptr)
virtual bool transform (EventPtr &d, const EventPtr &s)


Constructor & Destructor Documentation

pion::platform::TransformAssignValue::TransformAssignValue ( const Vocabulary v,
const Vocabulary::Term term,
const xmlNodePtr  config_ptr 
) [inline]

TransformAssignValue constructs a transformation assignment based on Value

Parameters:
v Vocabulary to use
term The source term type to use
config_ptr Pointer to XML configuration of the AssignValue entity

Definition at line 181 of file Transform.hpp.

References pion::platform::ConfigManager::getConfigOptionEmptyOk().


Member Function Documentation

virtual bool pion::platform::TransformAssignValue::transform ( EventPtr d,
const EventPtr s 
) [inline, virtual]

transform Assigns a fixed value to event/term

Parameters:
d Destination event (pointer) to modify term
s Source event (dummy), passed in only for conformity
Returns:
true if the Transformation occured; false if it did not

Implements pion::platform::Transform.

Definition at line 199 of file Transform.hpp.

References pion::platform::AssignValue().


The documentation for this class was generated from the following file:
Generated on Wed Apr 13 16:38:36 2011 for pion-platform by  doxygen 1.4.7