Alexa Auto SDK  2.3.0
EngineConfiguration.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_CORE_CONFIG_ENGINE_CONFIGURATION_H
17 #define AACE_CORE_CONFIG_ENGINE_CONFIGURATION_H
18 
19 #include <fstream>
20 #include <iostream>
21 #include <string>
22 #include <vector>
23 #include <sstream>
24 #include <memory>
25 
28 namespace aace {
29 namespace core {
30 namespace config {
31 
36 public:
37  virtual ~EngineConfiguration() = default;
38 
42  virtual std::shared_ptr<std::istream> getStream() = 0;
43 };
44 
51 private:
52  StreamConfiguration() = default;
53 
54 public:
61  static std::shared_ptr<StreamConfiguration> create(std::shared_ptr<std::istream> stream);
62 
66  std::shared_ptr<std::istream> getStream() override;
67 
68 private:
69  std::shared_ptr<std::istream> m_stream;
70 };
71 
78 private:
79  ConfigurationFile() = default;
80 
81 public:
88  static std::shared_ptr<ConfigurationFile> create(const std::string& configFilePath);
89 
93  std::shared_ptr<std::istream> getStream() override;
94 
95 private:
96  std::shared_ptr<std::istream> m_stream;
97 };
98 
99 } // namespace config
100 } // namespace core
101 } // namespace aace
102 
103 #endif // AACE_CORE_CONFIG_ENGINE_CONFIGURATION_H
Definition: EngineConfiguration.h:50
Definition: AddressBook.h:26
Definition: EngineConfiguration.h:77
Definition: EngineConfiguration.h:35
virtual std::shared_ptr< std::istream > getStream()=0

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