AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
List of all members
alexaClientSDK::acsdkCommunication::InMemoryCommunicationInvokeHandler< ReturnType, Types > Class Template Reference

#include <InMemoryCommunicationInvokeHandler.h>

Inheritance diagram for alexaClientSDK::acsdkCommunication::InMemoryCommunicationInvokeHandler< ReturnType, Types >:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::acsdkCommunication::InMemoryCommunicationInvokeHandler< ReturnType, Types >:
Collaboration graph
[legend]

CommunicationInvokeHandlerInterface methods

bool registerFunction (const std::string &name, std::shared_ptr< acsdkCommunicationInterfaces::FunctionInvokerInterface< ReturnType, Types... >> functionImplementation) override
 }@ More...
 
alexaClientSDK::avsCommon::utils::error::SuccessResult< ReturnType > invoke (const std::string &name, Types... args) override
 }@ More...
 
bool deregister (const std::string &name, const std::shared_ptr< acsdkCommunicationInterfaces::FunctionInvokerInterface< ReturnType, Types... >> &functionImplementation) override
 }@ More...
 

Additional Inherited Members

- Public Member Functions inherited from alexaClientSDK::acsdkCommunicationInterfaces::CommunicationInvokeHandlerInterface< ReturnType, Types... >
virtual ~CommunicationInvokeHandlerInterface ()=default
 
virtual bool registerFunction (const std::string &name, std::shared_ptr< FunctionInvokerInterface< ReturnType, ArgTypes... >> functionImplementation)=0
 
virtual alexaClientSDK::avsCommon::utils::error::SuccessResult< ReturnType > invoke (const std::string &name, ArgTypes...)=0
 
virtual bool deregister (const std::string &name, const std::shared_ptr< FunctionInvokerInterface< ReturnType, ArgTypes... >> &functionImplementation)=0
 

Detailed Description

template<typename ReturnType, typename... Types>
class alexaClientSDK::acsdkCommunication::InMemoryCommunicationInvokeHandler< ReturnType, Types >

The in memory implementation of the CommunicationInvokeHandlerInterface. This is a thread safe class that provides users the ability to register functions and have them be invoked by other components.

Member Function Documentation

◆ deregister()

template<typename ReturnType, typename... Types>
bool alexaClientSDK::acsdkCommunication::InMemoryCommunicationInvokeHandler< ReturnType, Types >::deregister ( const std::string &  name,
const std::shared_ptr< acsdkCommunicationInterfaces::FunctionInvokerInterface< ReturnType, Types... >> &  functionImplementation 
)
override

}@

◆ invoke()

template<typename ReturnType , typename... Types>
alexaClientSDK::avsCommon::utils::error::SuccessResult< ReturnType > alexaClientSDK::acsdkCommunication::InMemoryCommunicationInvokeHandler< ReturnType, Types >::invoke ( const std::string &  name,
Types...  args 
)
override

}@

◆ registerFunction()

template<typename ReturnType, typename... Types>
bool alexaClientSDK::acsdkCommunication::InMemoryCommunicationInvokeHandler< ReturnType, Types >::registerFunction ( const std::string &  name,
std::shared_ptr< acsdkCommunicationInterfaces::FunctionInvokerInterface< ReturnType, Types... >>  functionImplementation 
)
override

}@


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