144 bool Run(
void)
override;
154 Test(
void) : condition(
nullptr), Default(
false) {}
156 void setTestValue(
const std::string &value,
const std::string &
Name,
160 std::cerr <<
"No VALUE supplied for switch component: " <<
Name
166 std::string GetOutputName(
void)
const {
return OutputValue->GetName();}
169 std::vector <Test*> tests;
170 bool initialized =
false;
172 void VerifyProperties(
void);
173 void Debug(
int from)
override;
Encapsulates a condition, which is used in parts of JSBSim including switches.
FGFCSComponent(FGFCS *fcs, Element *el)
Constructor.
Represents a either a real value or a property value.
FGSwitch(FGFCS *fcs, Element *element)
Constructor.
bool Run(void) override
Executes the switch logic.
SGSharedPtr< FGParameter > FGParameter_ptr