Alexa Auto SDK  2.0.0
Engine.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_CORE_ENGINE_H
17 #define AACE_CORE_ENGINE_H
18 
19 #include <vector>
20 #include <memory>
21 
22 #include "PlatformInterface.h"
23 #include "EngineConfiguration.h"
24 
27 namespace aace {
28 namespace core {
29 
36 class Engine {
37 public:
38 
39  static std::shared_ptr<Engine> create();
40 
41  virtual ~Engine() = default;
42 
50  virtual bool configure( std::initializer_list<std::shared_ptr<aace::core::config::EngineConfiguration>> configurationList ) = 0;
51 
59  virtual bool configure( std::vector<std::shared_ptr<aace::core::config::EngineConfiguration>> configurationList ) = 0;
60 
67  virtual bool configure( std::shared_ptr<aace::core::config::EngineConfiguration> configuration ) = 0;
68 
76  virtual bool start() = 0;
77 
85  virtual bool stop() = 0;
86 
92  virtual bool shutdown() = 0;
93 
101  virtual bool setProperty( const std::string& key, const std::string& value ) = 0;
102 
109  virtual std::string getProperty( const std::string& key ) = 0;
110 
121  virtual bool registerPlatformInterface( std::shared_ptr<aace::core::PlatformInterface> platformInterface ) = 0;
122 
134  virtual bool registerPlatformInterface( std::initializer_list<std::shared_ptr<aace::core::PlatformInterface>> platformInterfaceList ) = 0;
135 };
136 
137 } // aace::core
138 } // aace
139 
140 #endif // AACE_CORE_ENGINE_H
virtual std::string getProperty(const std::string &key)=0
virtual bool stop()=0
Definition: Engine.h:36
Definition: AddressBook.h:26
virtual bool configure(std::initializer_list< std::shared_ptr< aace::core::config::EngineConfiguration >> configurationList)=0
virtual bool registerPlatformInterface(std::shared_ptr< aace::core::PlatformInterface > platformInterface)=0
virtual bool shutdown()=0
virtual bool setProperty(const std::string &key, const std::string &value)=0
virtual bool start()=0

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