/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions
RuleParser::PrescaleRuleFactory Class Reference

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

#include <PrescaleRule.h>

Inheritance diagram for RuleParser::PrescaleRuleFactory:
Inheritance graph
[legend]
Collaboration diagram for RuleParser::PrescaleRuleFactory:
Collaboration graph
[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 parameter,
int  operation,
int  value,
bool  param_on_left 
) [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.

{
  std::ostringstream stm;
  stm << "Prescale by " << value;
  
  std::string name = stm.str();
  return new PrescaleRule(name,value);
};
Rule * RuleFactory::createRule ( const ParameterDescription paramter,
int  operation,
double  value,
bool  param_on_left 
) [virtual, inherited]

Definition at line 14 of file RuleFactory.cc.

{ 
  assert(0 && "Not implimented: double type factory"); 
};
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.

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

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

Generated on Fri May 16 2014 09:53:45 for RuleParser by doxygen 1.7.4