scenario_simulator_v2 C++ API
storyboard_element_type.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__STORYBOARD_ELEMENT_TYPE_HPP_
16 #define OPENSCENARIO_INTERPRETER__SYNTAX__STORYBOARD_ELEMENT_TYPE_HPP_
17 
18 #include <iostream>
19 
21 {
22 inline namespace syntax
23 {
24 /* ---- StoryboardElementType --------------------------------------------------
25  *
26  * <xsd:simpleType name="StoryboardElementType">
27  * <xsd:union>
28  * <xsd:simpleType>
29  * <xsd:restriction base="xsd:string">
30  * <xsd:enumeration value="story"/>
31  * <xsd:enumeration value="act"/>
32  * <xsd:enumeration value="maneuver"/>
33  * <xsd:enumeration value="event"/>
34  * <xsd:enumeration value="action"/>
35  * <xsd:enumeration value="maneuverGroup"/>
36  * </xsd:restriction>
37  * </xsd:simpleType>
38  * <xsd:simpleType>
39  * <xsd:restriction base="parameter"/>
40  * </xsd:simpleType>
41  * </xsd:union>
42  * </xsd:simpleType>
43  *
44  * -------------------------------------------------------------------------- */
46 {
47  enum value_type {
48  act,
54  } value;
55 
56  StoryboardElementType() = default;
57 
58  constexpr operator value_type() const noexcept { return value; }
59 };
60 
61 auto operator>>(std::istream &, StoryboardElementType &) -> std::istream &;
62 
63 auto operator<<(std::ostream &, const StoryboardElementType &) -> std::ostream &;
64 } // namespace syntax
65 } // namespace openscenario_interpreter
66 
67 #endif // OPENSCENARIO_INTERPRETER__SYNTAX__STORYBOARD_ELEMENT_TYPE_HPP_
auto operator>>(std::istream &, Boolean &) -> std::istream &
Definition: boolean.cpp:52
auto operator<<(std::ostream &, const Boolean &) -> std::ostream &
Definition: boolean.cpp:46
Definition: escape_sequence.hpp:22
Definition: storyboard_element_type.hpp:46
value_type
Definition: storyboard_element_type.hpp:47
@ action
Definition: storyboard_element_type.hpp:49
@ maneuver
Definition: storyboard_element_type.hpp:51
@ act
Definition: storyboard_element_type.hpp:48
@ story
Definition: storyboard_element_type.hpp:53
@ event
Definition: storyboard_element_type.hpp:50
@ maneuverGroup
Definition: storyboard_element_type.hpp:52
enum openscenario_interpreter::syntax::StoryboardElementType::value_type value