Alexa Auto SDK  2.3.1
VehicleConfiguration.h
1 /*
2  * Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef AACE_VEHICLE_CONFIG_VEHICLE_CONFIGURATION_H
17 #define AACE_VEHICLE_CONFIG_VEHICLE_CONFIGURATION_H
18 
19 #include <utility>
20 
21 #include "AACE/Core/EngineConfiguration.h"
22 
25 namespace aace {
26 namespace vehicle {
27 namespace config {
28 
33 public:
37  enum class VehiclePropertyType {
38 
43  MAKE,
44 
49  MODEL,
50 
57  YEAR,
58 
63  TRIM,
64 
69  GEOGRAPHY,
70 
75  VERSION,
76 
82 
88 
93  LANGUAGE,
94 
99  MICROPHONE,
100 
105  COUNTRY_LIST,
106 
111  };
112 
116  using VehicleProperty = std::pair<VehiclePropertyType, std::string>;
117 
147  static std::shared_ptr<aace::core::config::EngineConfiguration> createVehicleInfoConfig(
148  const std::vector<VehicleProperty>& propertyList);
149 
165  static std::shared_ptr<aace::core::config::EngineConfiguration> createOperatingCountryConfig(
166  const std::string& operatingCountry);
167 };
168 
169 inline std::ostream& operator<<(std::ostream& stream, const VehicleConfiguration::VehiclePropertyType& state) {
170  switch (state) {
172  stream << "MAKE";
173  break;
175  stream << "MODEL";
176  break;
178  stream << "YEAR";
179  break;
181  stream << "TRIM";
182  break;
184  stream << "GEOGRAPHY";
185  break;
187  stream << "VERSION";
188  break;
190  stream << "OPERATING_SYSTEM";
191  break;
193  stream << "HARDWARE_ARCH";
194  break;
196  stream << "LANGUAGE";
197  break;
199  stream << "MICROPHONE";
200  break;
202  stream << "COUNTRY_LIST";
203  break;
205  stream << "VEHICLE_IDENTIFIER";
206  break;
207  }
208  return stream;
209 }
210 
211 } // namespace config
212 } // namespace vehicle
213 } // namespace aace
214 
215 #endif // AACE_VEHICLE_CONFIG_VEHICLE_CONFIGURATION_H
static std::shared_ptr< aace::core::config::EngineConfiguration > createOperatingCountryConfig(const std::string &operatingCountry)
static std::shared_ptr< aace::core::config::EngineConfiguration > createVehicleInfoConfig(const std::vector< VehicleProperty > &propertyList)
Definition: AddressBook.h:26
std::pair< VehiclePropertyType, std::string > VehicleProperty
Definition: VehicleConfiguration.h:116
VehiclePropertyType
Definition: VehicleConfiguration.h:37
Definition: VehicleConfiguration.h:32

Alexa Auto SDK 2.3.1 - Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0