![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <CapabilitiesDelegateStorageInterface.h>
Public Member Functions | |
virtual | ~CapabilitiesDelegateStorageInterface ()=default |
virtual bool | createDatabase ()=0 |
virtual bool | open ()=0 |
virtual void | close ()=0 |
virtual bool | store (const std::string &endpointId, const std::string &endpointConfig)=0 |
virtual bool | store (const std::unordered_map< std::string, std::string > &endpointIdToConfigMap)=0 |
virtual bool | load (std::unordered_map< std::string, std::string > *endpointConfigMap)=0 |
virtual bool | load (const std::string &endpointId, std::string *endpointConfig)=0 |
virtual bool | erase (const std::string &endpointId)=0 |
virtual bool | erase (const std::unordered_map< std::string, std::string > &endpointIdToConfigMap)=0 |
virtual bool | clearDatabase ()=0 |
An Interface class which defines APIs for interacting with a database for storing, loading and modifying capabilities information.
|
virtualdefault |
Destructor.
|
pure virtual |
Erases the entire storage.
Implemented in alexaClientSDK::capabilitiesDelegate::storage::SQLiteCapabilitiesDelegateStorage.
|
pure virtual |
Closes the database.
Implemented in alexaClientSDK::capabilitiesDelegate::storage::SQLiteCapabilitiesDelegateStorage.
|
pure virtual |
Creates a new database.
Implemented in alexaClientSDK::capabilitiesDelegate::storage::SQLiteCapabilitiesDelegateStorage.
|
pure virtual |
Erases a single endpointConfig from the database.
endpointId | The endpointId key to erase from storage. |
Implemented in alexaClientSDK::capabilitiesDelegate::storage::SQLiteCapabilitiesDelegateStorage.
|
pure virtual |
Erases a vector of endpoint Ids from the data base.
endpointIdToConfigMap | the endpointId to Configuration map. |
Implemented in alexaClientSDK::capabilitiesDelegate::storage::SQLiteCapabilitiesDelegateStorage.
|
pure virtual |
Loads the endpointConfigMap.
endpointConfigMap | The endpoint config map pointer. |
Implemented in alexaClientSDK::capabilitiesDelegate::storage::SQLiteCapabilitiesDelegateStorage.
|
pure virtual |
Loads the endpointConfig with the given endpoint Id.
endpointId | The endpointId key used to load data from the storage. |
endpointConfig | The pointer to the endpointConfig that will be updated, if the key is present in storage. |
Implemented in alexaClientSDK::capabilitiesDelegate::storage::SQLiteCapabilitiesDelegateStorage.
|
pure virtual |
Opens the database.
Implemented in alexaClientSDK::capabilitiesDelegate::storage::SQLiteCapabilitiesDelegateStorage.
|
pure virtual |
Stores the endpointConfig with the endpointId in the database.
endpointId | The endpoint ID string. |
endpointConfig | The full endpoint config sent in the discovery. |
Implemented in alexaClientSDK::capabilitiesDelegate::storage::SQLiteCapabilitiesDelegateStorage.
|
pure virtual |
Stores the endpointConfigMap.
endpointIdToConfigMap | The endpointId to configuration map. |
Implemented in alexaClientSDK::capabilitiesDelegate::storage::SQLiteCapabilitiesDelegateStorage.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0