32 void setSwitch(
const std::string &
name,
bool on);
34 void switchOn(
const std::string &
name);
36 void switchOff(
const std::string &
name);
38 bool isSwitchOn(
const std::string &
name)
const;
41 void setVariable(
const std::string &
name,
double value);
43 double getVariable(
const std::string &
name)
const;
45 void addVariable(
const std::string &
name,
double delta);
48 void setSelfVariable(
const std::string &
scope,
const std::string &
name,
double value);
50 double getSelfVariable(
const std::string &
scope,
const std::string &
name)
const;
52 bool hasSelfVariable(
const std::string &
scope,
const std::string &
name)
const;
64 void setSelfString(
const std::string &
scope,
const std::string &
name, std::string
value);
70 [[nodiscard]] std::string getSelfString(
const std::string &
scope,
const std::string &
name)
const;
72 [[nodiscard]]
bool hasSelfString(
const std::string &
scope,
const std::string &
name)
const;
74 void clearSelfString(
const std::string &
scope,
const std::string &
name);
108 std::unordered_map<std::string, bool> switches_;
109 std::unordered_map<std::string, double> variables_;
110 std::unordered_map<std::string, std::unordered_map<std::string, double>> selfVariables_;
111 std::unordered_map<std::string, std::unordered_map<std::string, std::string>> selfStrings_;