AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
InterruptModelConfiguration.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * SPDX-License-Identifier: LicenseRef-.amazon.com.-AmznSL-1.0
5  * Licensed under the Amazon Software License (the "License").
6  * You may not use this file except in compliance with the License.
7  * A copy of the License is located at
8  *
9  * http://aws.amazon.com/asl/
10  *
11  * or in the "license" file accompanying this file. This file is distributed
12  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13  * express or implied. See the License for the specific language governing
14  * permissions and limitations under the License.
15  */
16 
17 #ifndef ALEXA_CLIENT_SDK_INTERRUPTMODEL_CONFIG_INCLUDE_INTERRUPTMODEL_CONFIG_INTERRUPTMODELCONFIGURATION_H_
18 #define ALEXA_CLIENT_SDK_INTERRUPTMODEL_CONFIG_INCLUDE_INTERRUPTMODEL_CONFIG_INTERRUPTMODELCONFIGURATION_H_
19 
20 #include <string>
21 #include <memory>
22 #include <sstream>
23 
24 #include <AVSCommon/Utils/SDKConfig.h>
25 
26 #if defined(_MSC_VER) && defined(ACSDK_CONFIG_SHARED_LIBS)
27 #if defined(IN_INTERRUPTMODEL)
28 #define interruptmodel_EXPORT __declspec(dllexport)
29 #else
30 #define interruptmodel_EXPORT __declspec(dllimport)
31 #endif
32 #else
33 #define interruptmodel_EXPORT
34 #endif
35 
36 namespace alexaClientSDK {
37 namespace afml {
38 namespace interruptModel {
39 
51 public:
56 
61 
68  static interruptmodel_EXPORT std::unique_ptr<std::istream> getConfig(bool supportsDucking = true) {
69  if (supportsDucking)
70  return std::unique_ptr<std::istringstream>(new std::istringstream(configurationJsonSupportsDucking));
71  else
72  return std::unique_ptr<std::istringstream>(new std::istringstream(configurationJsonDuckingNotSupported));
73  }
74 
75 private:
80  }
81 };
82 
83 } // namespace interruptModel
84 } // namespace afml
85 } // namespace alexaClientSDK
86 
87 #endif // ALEXA_CLIENT_SDK_INTERRUPTMODEL_CONFIG_INCLUDE_INTERRUPTMODEL_CONFIG_INTERRUPTMODELCONFIGURATION_H_
static interruptmodel_EXPORT std::unique_ptr< std::istream > getConfig(bool supportsDucking=true)
Definition: InterruptModelConfiguration.h:68
::std::string string
Definition: gtest-port.h:1097
static interruptmodel_EXPORT std::string configurationJsonDuckingNotSupported
Definition: InterruptModelConfiguration.h:60
#define interruptmodel_EXPORT
Definition: InterruptModelConfiguration.h:33
Definition: InterruptModelConfiguration.h:50
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
static interruptmodel_EXPORT std::string configurationJsonSupportsDucking
Definition: InterruptModelConfiguration.h:55

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0