CARMA C++
DagMLExpr.h
1 /*
2  * Fault System DAG Markup Language Expression Evaluator
3  *
4  * Copyright (c) 2010 Ira W. Snyder <iws@ovro.caltech.edu>
5  */
6 
7 #ifndef DAGMLEXPR_H
8 #define DAGMLEXPR_H
9 
10 #include <map>
11 #include <string>
12 
13 typedef std::map<std::string, std::string> VariableMap;
14 
15 std::string evalFunctionExpr(const std::string &funcName,
16  const std::string &arg, const VariableMap &varmap);
17 
18 std::string
19 evaluateExpression(const std::string &expr, const VariableMap &varmap);
20 
21 bool hasVariableSubstitutions(const std::string &expr);
22 
23 #endif /* DAGMLEXPR_H */