#include <formula_manager.hpp>
Public Member Functions | |
unit_formula_manager () | |
unit_formula_manager (const unit_formula_manager &o) | |
const wfl::map_formula_callable_ptr & | formula_vars () const |
void | add_formula_var (const std::string &str, const wfl::variant &var) |
bool | has_formula () const |
bool | has_loop_formula () const |
bool | has_priority_formula () const |
const std::string & | get_formula () const |
const std::string & | get_loop_formula () const |
const std::string & | get_priority_formula () const |
void | read (const config &ai) |
void | write (config &cfg) |
Private Attributes | |
std::string | unit_formula_ |
std::string | unit_loop_formula_ |
std::string | unit_priority_formula_ |
wfl::map_formula_callable_ptr | formula_vars_ |
Definition at line 24 of file formula_manager.hpp.
|
inline |
Definition at line 26 of file formula_manager.hpp.
|
inline |
Definition at line 27 of file formula_manager.hpp.
void unit_formula_manager::add_formula_var | ( | const std::string & | str, |
const wfl::variant & | var | ||
) |
Definition at line 21 of file formula_manager.cpp.
References formula_vars_.
Referenced by wfl::set_unit_var_callable::execute_self().
|
inline |
Definition at line 34 of file formula_manager.hpp.
References formula_vars_.
Referenced by wfl::unit_callable::get_value().
|
inline |
Definition at line 39 of file formula_manager.hpp.
References unit_formula_.
|
inline |
Definition at line 40 of file formula_manager.hpp.
References unit_loop_formula_.
|
inline |
Definition at line 41 of file formula_manager.hpp.
References unit_priority_formula_.
|
inline |
|
inline |
Definition at line 37 of file formula_manager.hpp.
References unit_loop_formula_.
Referenced by write().
|
inline |
Definition at line 38 of file formula_manager.hpp.
References unit_priority_formula_.
Referenced by write().
void unit_formula_manager::read | ( | const config & | ai | ) |
Definition at line 27 of file formula_manager.cpp.
References FOR_REMOVAL, formula_vars_, wfl::variant::serialize_from_string(), unit_formula_, unit_loop_formula_, and unit_priority_formula_.
void unit_formula_manager::write | ( | config & | cfg | ) |
Definition at line 47 of file formula_manager.cpp.
References config::add_child(), config::clear(), formula_vars_, has_formula(), has_loop_formula(), has_priority_formula(), i, unit_formula_, unit_loop_formula_, and unit_priority_formula_.
|
private |
Definition at line 50 of file formula_manager.hpp.
Referenced by add_formula_var(), formula_vars(), read(), and write().
|
private |
Definition at line 47 of file formula_manager.hpp.
Referenced by get_formula(), has_formula(), read(), and write().
|
private |
Definition at line 48 of file formula_manager.hpp.
Referenced by get_loop_formula(), has_loop_formula(), read(), and write().
|
private |
Definition at line 49 of file formula_manager.hpp.
Referenced by get_priority_formula(), has_priority_formula(), read(), and write().