AutoAPMS
Resilient Robot Mission Management
|
Class that encapsulates behavior tree script expressions. More...
#include <auto_apms_behavior_tree_core/tree/script.hpp>
Public Member Functions | |
Script ()=default | |
Create an empty script. | |
Script (std::vector< std::string > expressions) | |
Create a script with multiple expressions. | |
Script (const std::string &str) | |
Create a script with a single expression. | |
Script (const char *str) | |
Create a script with a single expression. | |
std::string | str () const |
Concatenate all expressions of this instance to a single string. | |
Class that encapsulates behavior tree script expressions.
Users may create a script expression by passing a string. More expression can be added using the plus operator. Each expressions is validated at the time of construction.
Definition at line 29 of file script.hpp.
|
default |
Create an empty script.
Script | ( | std::vector< std::string > | expressions | ) |
Create a script with multiple expressions.
expressions | Vector of expression strings. |
auto_apms_behavior_tree::exceptions::ScriptError | if script validation fails. |
Definition at line 24 of file script.cpp.
Script | ( | const std::string & | str | ) |
Create a script with a single expression.
str | Expression string. |
auto_apms_behavior_tree::exceptions::ScriptError | if script validation fails. |
Definition at line 31 of file script.cpp.
Script | ( | const char * | str | ) |
Create a script with a single expression.
str | C-style expression string. |
auto_apms_behavior_tree::exceptions::ScriptError | if script validation fails. |
Definition at line 33 of file script.cpp.
std::string str | ( | ) | const |
Concatenate all expressions of this instance to a single string.
Definition at line 41 of file script.cpp.