2 #ifndef PREPROCESS_FUNCTION_H
3 #define PREPROCESS_FUNCTION_H
9 namespace HistFactory {
11 class PreprocessFunction {
17 PreprocessFunction(std::string Name, std::string Expression, std::string Dependents);
18 std::string GetCommand(std::string Name, std::string Expression, std::string Dependents);
21 void Print(std::ostream& = std::cout);
22 void PrintXML(std::ostream& );
24 void SetName(
const std::string& Name) { fName = Name; }
25 std::string GetName() {
return fName; }
27 void SetExpression(
const std::string& Expression) { fExpression = Expression; }
28 std::string GetExpression() {
return fExpression; }
30 void SetDependents(
const std::string& Dependents) { fDependents = Dependents; }
31 std::string GetDependents() {
return fDependents; }
33 void SetCommand(
const std::string& Command) { fCommand = Command; }
34 std::string GetCommand() {
return fCommand; }
40 std::string fExpression;
41 std::string fDependents;