AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Generic URI mapper for MiscStorageInterface adapter. More...
#include <MiscStorageAdapter.h>
Public Member Functions | |
MiscStorageUriMapperInterface methods | |
bool | extractComponentAndTableName (const std::string &configUri, std::string &componentName, std::string &tableName) noexcept override |
Extracts component name and table name from configuration URI. More... | |
Public Member Functions inherited from alexaClientSDK::properties::MiscStorageUriMapperInterface | |
virtual | ~MiscStorageUriMapperInterface () noexcept=default |
Default destructor. More... | |
Static Public Member Functions | |
static std::shared_ptr< SimpleMiscStorageUriMapper > | create (char sep='/') noexcept |
Creates mapper instance. More... | |
Generic URI mapper for MiscStorageInterface adapter.
This object converts configuration URI into component name and table name. The object expects that the URI contains only component name and table name separated by a single character. For example, when parsing "component/tableName" URI and using '/' as a separator, the object will return "component" as a component name, and "tableName" as a table name.
|
staticnoexcept |
Creates mapper instance.
[in] | sep | Separator character. |
|
overridevirtualnoexcept |
Extracts component name and table name from configuration URI.
This method maps configuration URI from PropertiesFactoryInterface
into component name and table name for MiscStorageInterface
.
This method must be idempotent, and always return the same result for the same input.
[in] | configUri | Configuration URI. |
[out] | componentName | Component. |
[out] | tableName | Table name. |
Implements alexaClientSDK::properties::MiscStorageUriMapperInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0