Alexa Auto SDK  2.0.0
VehicleConfiguration.h
1 /*
2  * Copyright 2017-2019 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:
34 
38  enum class VehiclePropertyType {
39 
43  MAKE,
44 
48  MODEL,
49 
53  YEAR,
54 
58  TRIM,
59 
63  GEOGRAPHY,
64 
68  VERSION,
69 
74 
79 
83  LANGUAGE,
84 
88  MICROPHONE,
89 
94 
99  };
100 
104  using VehicleProperty = std::pair<VehiclePropertyType,std::string>;
105 
135  static std::shared_ptr<aace::core::config::EngineConfiguration> createVehicleInfoConfig( const std::vector<VehicleProperty>& propertyList );
136 
152  static std::shared_ptr<aace::core::config::EngineConfiguration> createOperatingCountryConfig( const std::string& operatingCountry );
153 };
154 
155 inline std::ostream& operator<<(std::ostream& stream, const VehicleConfiguration::VehiclePropertyType& state) {
156  switch (state) {
158  stream << "MAKE";
159  break;
161  stream << "MODEL";
162  break;
164  stream << "YEAR";
165  break;
167  stream << "TRIM";
168  break;
170  stream << "GEOGRAPHY";
171  break;
173  stream << "VERSION";
174  break;
176  stream << "OPERATING_SYSTEM";
177  break;
179  stream << "HARDWARE_ARCH";
180  break;
182  stream << "LANGUAGE";
183  break;
185  stream << "MICROPHONE";
186  break;
188  stream << "COUNTRY_LIST";
189  break;
191  stream << "VEHICLE_IDENTIFIER";
192  break;
193  }
194  return stream;
195 }
196 
197 } // aace::vehicle::config
198 } // aace::vehicle
199 } // aace
200 
201 #endif // AACE_VEHICLE_CONFIG_VEHICLE_CONFIGURATION_H
static std::shared_ptr< aace::core::config::EngineConfiguration > createOperatingCountryConfig(const std::string &operatingCountry)
std::pair< VehiclePropertyType, std::string > VehicleProperty
Definition: VehicleConfiguration.h:104
static std::shared_ptr< aace::core::config::EngineConfiguration > createVehicleInfoConfig(const std::vector< VehicleProperty > &propertyList)
Definition: AddressBook.h:26
VehiclePropertyType
Definition: VehicleConfiguration.h:38
Definition: VehicleConfiguration.h:32

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