scenario_simulator_v2 C++ API
entity_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__ENTITY_OBJECT_HPP_
16 #define OPENSCENARIO_INTERPRETER__SYNTAX__ENTITY_OBJECT_HPP_
17 
22 
24 {
25 inline namespace syntax
26 {
27 /* ---- EntityObject -----------------------------------------------------------
28  *
29  * <xsd:group name="EntityObject">
30  * <xsd:choice>
31  * <xsd:element name="CatalogReference" type="CatalogReference"/>
32  * <xsd:element name="Vehicle" type="Vehicle"/>
33  * <xsd:element name="Pedestrian" type="Pedestrian"/>
34  * <xsd:element name="MiscObject" type="MiscObject"/>
35  * </xsd:choice>
36  * </xsd:group>
37  *
38  * -------------------------------------------------------------------------- */
39 struct EntityObject : public Group
40 {
41  explicit EntityObject(const pugi::xml_node &, Scope &);
42 
43  auto objectType() const -> ObjectType::value_type;
44 };
45 
47  const EntityObject,
48  // CASE(CatalogReference), //
49  CASE(Vehicle), //
50  CASE(Pedestrian), //
51  CASE(MiscObject), //
52 );
53 
56  // CASE(CatalogReference), //
57  CASE(Vehicle), //
58  CASE(Pedestrian), //
59  CASE(MiscObject), //
60 );
61 } // namespace syntax
62 } // namespace openscenario_interpreter
63 
64 #endif // OPENSCENARIO_INTERPRETER__SYNTAX__ENTITY_OBJECT_HPP_
Definition: scope.hpp:154
#define CASE(NAME)
DEFINE_LAZY_VISITOR(Action, CASE(GlobalAction), CASE(UserDefinedAction), CASE(PrivateAction),)
Definition: hypot.hpp:22
Definition: entity_object.hpp:40
EntityObject(const pugi::xml_node &, Scope &)
Definition: entity_object.cpp:24
auto objectType() const -> ObjectType::value_type
Definition: entity_object.cpp:36
Definition: misc_object.hpp:49
value_type
Definition: object_type.hpp:45
Definition: pedestrian.hpp:48
Definition: vehicle.hpp:50