| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

RuleParser::PrescaleRuleFactory Class Reference

Example of a custom rule and factory that can do prescaling. More...

#include <PrescaleRule.h>

Inheritance diagram for RuleParser::PrescaleRuleFactory:

[legend]
Collaboration diagram for RuleParser::PrescaleRuleFactory:
[legend]
List of all members.

Public Member Functions

RulecreateRule (const ParameterDescription &, int, int, bool)
 User class needs to override at least one of these methods, depending on what type Value is.
virtual RulecreateRule (const ParameterDescription &paramter, int operation, double value, bool param_on_left)
virtual RulecreateRule (const ParameterDescription &paramter, int operation, const std::string &value, bool param_on_left)

Detailed Description

Example of a custom rule and factory that can do prescaling.

Author:
Nathaniel Tagg (tagg@minos.phy.tufts.edu)

Definition at line 44 of file PrescaleRule.h.


Member Function Documentation

Rule * PrescaleRuleFactory::createRule ( const ParameterDescription ,
int  ,
int  ,
bool   
) [virtual]

User class needs to override at least one of these methods, depending on what type Value is.

Reimplemented from RuleParser::RuleFactory.

Definition at line 6 of file PrescaleRule.cc.

00011 {
00012   std::ostringstream stm;
00013   stm << "Prescale by " << value;
00014   
00015   std::string name = stm.str();
00016   return new PrescaleRule(name,value);
00017 };

Rule * RuleFactory::createRule ( const ParameterDescription paramter,
int  operation,
double  value,
bool  param_on_left 
) [virtual, inherited]

Definition at line 14 of file RuleFactory.cc.

00019 { 
00020   assert(0 && "Not implimented: double type factory"); 
00021 };

Rule * RuleFactory::createRule ( const ParameterDescription paramter,
int  operation,
const std::string &  value,
bool  param_on_left 
) [virtual, inherited]

Definition at line 23 of file RuleFactory.cc.

00028 { 
00029   assert(0 && "Not implimented: string type factory"); 
00030 };


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:09:15 2011 for RuleParser by doxygen 1.4.7