AutoAPMS
Resilient Robot Mission Management
Loading...
Searching...
No Matches
script.hpp
1// Copyright 2024 Robin Müller
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#include <string>
16#include <vector>
17
19{
20
29class Script
30{
31 friend class TreeDocument;
32
33public:
37 Script() = default;
38
44 Script(std::vector<std::string> expressions);
45
51 Script(const std::string & str);
52
58 Script(const char * str);
59
60 Script & operator+=(const Script & rhs);
61
62 friend Script operator+(Script lhs, const Script & rhs);
63
68 std::string str() const;
69
70private:
71 std::vector<std::string> expressions_;
72};
73
74} // namespace auto_apms_behavior_tree::core
Script()=default
Create an empty script.
std::string str() const
Concatenate all expressions of this instance to a single string.
Definition script.cpp:41
Core API for AutoAPMS's behavior tree implementation.
Definition builder.hpp:30