evaluates conditional statements encounterd in control file syntax
More...
#include <MHO_ControlConditionEvaluator.hh>
evaluates conditional statements encounterd in control file syntax
- Date
- Fri May 19 13:08:22 2023 -0400
- Author
- J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
◆ MHO_ControlConditionEvaluator()
hops::MHO_ControlConditionEvaluator::MHO_ControlConditionEvaluator |
( |
| ) |
|
◆ ~MHO_ControlConditionEvaluator()
hops::MHO_ControlConditionEvaluator::~MHO_ControlConditionEvaluator |
( |
| ) |
|
|
virtual |
◆ Evaluate()
bool hops::MHO_ControlConditionEvaluator::Evaluate |
( |
mho_json & |
control_condition | ) |
|
Evaluates a single condition from an mho_json object and returns the result as a boolean.
- Parameters
-
control_condition | Reference to an mho_json object containing the condition to evaluate. |
- Returns
- Boolean indicating whether the evaluated condition is true or false.
◆ GetApplicableStatements()
mho_json hops::MHO_ControlConditionEvaluator::GetApplicableStatements |
( |
mho_json & |
control_contents | ) |
|
reduces the contents of a control file to only those statements which are applicable for this pass
- Parameters
-
control_contents | Reference to input mho_json containing control conditions |
- Returns
- mho_json containing applicable conditional statements
◆ SetPassInformation()
void hops::MHO_ControlConditionEvaluator::SetPassInformation |
( |
std::string |
baseline, |
|
|
std::string |
source, |
|
|
std::string |
fgroup, |
|
|
std::string |
scan_time |
|
) |
| |
Setter for pass (baseline, source, frequency group, scan) information.
- Parameters
-
baseline | Baseline string |
source | Source string |
fgroup | Frequency Group string |
scan_time | Scan-time/name string |
The documentation for this class was generated from the following files: