AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
State.h
Go to the documentation of this file.
1 /*
2  * Copyright 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 ACSDKASSETSINTERFACES_STATE_H_
17 #define ACSDKASSETSINTERFACES_STATE_H_
18 
19 namespace alexaClientSDK {
20 namespace acsdkAssets {
21 namespace commonInterfaces {
22 /*
23  * The state of the DAVS artifacts on the system.
24  *
25  * @startuml
26  * (INIT) --> (LOADED) : From Storage
27  * (INIT) --> (REQUESTING) : From DAVS
28  * (REQUESTING) --> (LOADED) : Already found \n on device
29  * (REQUESTING) --> (DOWNLOADING)
30  * (REQUESTING) --> (INVALID) : Failed
31  * (DOWNLOADING) --> (LOADED)
32  * (DOWNLOADING) --> (INVALID) : Failed
33  * @enduml
34  */
36 
37 inline std::string toString(State state) {
38  switch (state) {
39  case State::INIT:
40  return "INIT";
41  case State::REQUESTING:
42  return "REQUESTING";
43  case State::DOWNLOADING:
44  return "DOWNLOADING";
45  case State::INVALID:
46  return "INVALID";
47  case State::LOADED:
48  return "LOADED";
49  }
50  return "";
51 }
52 
53 inline std::ostream& operator<<(std::ostream& os, State value) {
54  return os << toString(value);
55 }
56 
57 } // namespace commonInterfaces
58 } // namespace acsdkAssets
59 } // namespace alexaClientSDK
60 
61 #endif // ACSDKASSETSINTERFACES_STATE_H_
::std::string string
Definition: gtest-port.h:1097
std::string toString(Priority priority)
Definition: Priority.h:33
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::ostream & operator<<(std::ostream &os, Priority value)
Definition: Priority.h:49

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