scenario_simulator_v2 C++ API
fractional_cloud_cover.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__FRACTIONAL_CLOUD_COVER_HPP_
16 #define OPENSCENARIO_INTERPRETER__SYNTAX__FRACTIONAL_CLOUD_COVER_HPP_
17 
18 #include <iostream>
19 
21 {
22 inline namespace syntax
23 {
24 /* ---- FractionalCloudCover 1.2 ----------------------------------------
25  *
26  * <xsd:simpleType name="FractionalCloudCover">
27  * <xsd:union>
28  * <xsd:simpleType>
29  * <xsd:restriction base="xsd:string">
30  * <xsd:enumeration value="zeroOktas"/>
31  * <xsd:enumeration value="oneOktas"/>
32  * <xsd:enumeration value="twoOktas"/>
33  * <xsd:enumeration value="threeOktas"/>
34  * <xsd:enumeration value="fourOktas"/>
35  * <xsd:enumeration value="fiveOktas"/>
36  * <xsd:enumeration value="sixOktas"/>
37  * <xsd:enumeration value="sevenOktas"/>
38  * <xsd:enumeration value="eightOktas"/>
39  * <xsd:enumeration value="nineOktas"/>
40  * </xsd:restriction>
41  * </xsd:simpleType>
42  * <xsd:simpleType>
43  * <xsd:restriction base="parameter"/>
44  * </xsd:simpleType>
45  * </xsd:union>
46  * </xsd:simpleType>
47  *
48  * -------------------------------------------------------------------------- */
50 {
51  enum value_type {
61  nineOktas
62  } value;
63 
64  FractionalCloudCover() = default;
65 
67 
68  constexpr operator value_type() const noexcept { return value; }
69 };
70 
71 auto operator>>(std::istream &, FractionalCloudCover &) -> std::istream &;
72 
73 auto operator<<(std::ostream &, const FractionalCloudCover &) -> std::ostream &;
74 } // namespace syntax
75 } // namespace openscenario_interpreter
76 
77 #endif // OPENSCENARIO_INTERPRETER__SYNTAX__FRACTIONAL_CLOUD_COVER_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: fractional_cloud_cover.hpp:50
value_type
Definition: fractional_cloud_cover.hpp:51
@ fourOktas
Definition: fractional_cloud_cover.hpp:56
@ oneOktas
Definition: fractional_cloud_cover.hpp:53
@ threeOktas
Definition: fractional_cloud_cover.hpp:55
@ nineOktas
Definition: fractional_cloud_cover.hpp:61
@ sevenOktas
Definition: fractional_cloud_cover.hpp:59
@ fiveOktas
Definition: fractional_cloud_cover.hpp:57
@ twoOktas
Definition: fractional_cloud_cover.hpp:54
@ sixOktas
Definition: fractional_cloud_cover.hpp:58
@ zeroOktas
Definition: fractional_cloud_cover.hpp:52
@ eightOktas
Definition: fractional_cloud_cover.hpp:60
constexpr FractionalCloudCover(value_type value)
Definition: fractional_cloud_cover.hpp:66
enum openscenario_interpreter::syntax::FractionalCloudCover::value_type value