scenario_simulator_v2 C++ API
scenario_object.hpp
Go to the documentation of this file.
1 // Copyright 2015 TIER IV, Inc. All rights reserved.
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 // http://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 #ifndef OPENSCENARIO_INTERPRETER__SYNTAX__SCENARIO_OBJECT_HPP_
16 #define OPENSCENARIO_INTERPRETER__SYNTAX__SCENARIO_OBJECT_HPP_
17 
23 #include <pugixml.hpp>
24 
26 {
27 inline namespace syntax
28 {
29 /* ---- ScenarioObject ---------------------------------------------------------
30  *
31  * <xsd:complexType name="ScenarioObject">
32  * <xsd:sequence>
33  * <xsd:group ref="EntityObject"/>
34  * <xsd:element name="ObjectController" minOccurs="0" type="ObjectController"/>
35  * </xsd:sequence>
36  * <xsd:attribute name="name" type="String" use="required"/>
37  * </xsd:complexType>
38  *
39  * -------------------------------------------------------------------------- */
40 struct ScenarioObject : public Scope, public EntityObject
41 {
42  ObjectController object_controller; // Controller of the EntityObject instance.
43 
44  bool is_added = false; // NOTE: Is applied AddEntityAction?
45 
46  explicit ScenarioObject(const pugi::xml_node &, Scope &);
47 };
48 } // namespace syntax
49 } // namespace openscenario_interpreter
50 
51 #endif // OPENSCENARIO_INTERPRETER__SYNTAX__SCENARIO_OBJECT_HPP_
Definition: scope.hpp:154
Definition: escape_sequence.hpp:22
Definition: entity_object.hpp:40
Definition: object_controller.hpp:39
Definition: scenario_object.hpp:41
ScenarioObject(const pugi::xml_node &, Scope &)
Definition: scenario_object.cpp:25
ObjectController object_controller
Definition: scenario_object.hpp:42
bool is_added
Definition: scenario_object.hpp:44