AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::properties::MiscStorageUriMapperInterface Class Referenceabstract

Interface to map properties config URI into component name and table name. More...

#include <MiscStorageAdapter.h>

Inheritance diagram for alexaClientSDK::properties::MiscStorageUriMapperInterface:
Inheritance graph
[legend]

Public Member Functions

virtual ~MiscStorageUriMapperInterface () noexcept=default
 Default destructor. More...
 
virtual bool extractComponentAndTableName (const std::string &configUri, std::string &componentName, std::string &tableName) noexcept=0
 Extracts component name and table name from configuration URI. More...
 

Detailed Description

Interface to map properties config URI into component name and table name.

This interface connects Properties API and MiscStorageInterface.

PropertiesFactoryInterface uses configuration URI to open properties container. When working with MiscStorageInterface this URI must be mapped into componentName and tableName parameters.

See also
Properties API
alexaClientSDK::propertiesInterfaces::PropertiesFactoryInterface
alexaClientSDK::avsCommon::sdkInterfaces::storage::MiscStorageInterface

Constructor & Destructor Documentation

◆ ~MiscStorageUriMapperInterface()

virtual alexaClientSDK::properties::MiscStorageUriMapperInterface::~MiscStorageUriMapperInterface ( )
virtualdefaultnoexcept

Default destructor.

Member Function Documentation

◆ extractComponentAndTableName()

virtual bool alexaClientSDK::properties::MiscStorageUriMapperInterface::extractComponentAndTableName ( const std::string &  configUri,
std::string &  componentName,
std::string &  tableName 
)
pure virtualnoexcept

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.

Parameters
[in]configUriConfiguration URI.
[out]componentNameComponent.
[out]tableNameTable name.
Returns
True if operation succeeds. If false is returned the state of componentName and tableName is undefined.

Implemented in alexaClientSDK::properties::SimpleMiscStorageUriMapper.


The documentation for this class was generated from the following file:

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