00001 #include "RuleParser/PrescaleRule.h" 00002 #include <sstream> 00003 00004 using namespace RuleParser; 00005 00006 Rule* PrescaleRuleFactory::createRule(const ParameterDescription&, // The parameter being acted upon. 00007 int , 00008 int value, // The value the operator is compared to, if any. 00009 bool 00010 ) 00011 { 00012 std::ostringstream stm; 00013 stm << "Prescale by " << value; 00014 00015 std::string name = stm.str(); 00016 return new PrescaleRule(name,value); 00017 };