scenario_simulator_v2 C++ API
precipitation_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__PRECIPITATION_TYPE_HPP_
16 #define OPENSCENARIO_INTERPRETER__SYNTAX__PRECIPITATION_TYPE_HPP_
17 
18 #include <iostream>
19 
21 {
22 inline namespace syntax
23 {
24 /* ---- PrecipitationType 1.2 ---------------------------------------------
25  *
26  * <xsd:simpleType name="PrecipitationType">
27  * <xsd:union>
28  * <xsd:simpleType>
29  * <xsd:restriction base="xsd:string">
30  * <xsd:enumeration value="dry"/>
31  * <xsd:enumeration value="rain"/>
32  * <xsd:enumeration value="snow"/>
33  * </xsd:restriction>
34  * </xsd:simpleType>
35  * <xsd:simpleType>
36  * <xsd:restriction base="parameter"/>
37  * </xsd:simpleType>
38  * </xsd:union>
39  * </xsd:simpleType>
40  *
41  * -------------------------------------------------------------------------- */
43 {
45 
46  PrecipitationType() = default;
47 
49 
50  constexpr operator value_type() const noexcept { return value; }
51 };
52 
53 auto operator>>(std::istream &, PrecipitationType &) -> std::istream &;
54 
55 auto operator<<(std::ostream &, const PrecipitationType &) -> std::ostream &;
56 } // namespace syntax
57 } // namespace openscenario_interpreter
58 
59 #endif // OPENSCENARIO_INTERPRETER__SYNTAX__PRECIPITATION_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: hypot.hpp:22
Definition: precipitation_type.hpp:43
enum openscenario_interpreter::syntax::PrecipitationType::value_type value
constexpr PrecipitationType(value_type value)
Definition: precipitation_type.hpp:48
value_type
Definition: precipitation_type.hpp:44
@ snow
Definition: precipitation_type.hpp:44
@ dry
Definition: precipitation_type.hpp:44
@ rain
Definition: precipitation_type.hpp:44