ADTF
Loading...
Searching...
No Matches
rpc::cRPCObjectsRegistry Class Reference

#include <rpc_object_registry.h>

Inherits rpc::IRPCObjectsRegistry.

Classes

class  cLockedRPCObject
 

Public Types

typedef std::pair< std::unique_ptr< a_util::concurrency::shared_mutex >, IRPCObject * > tRPCItem
 Type granting thread safe access to an object of type rpc::IRPCObject.
 

Public Member Functions

virtual a_util::result::Result RegisterRPCObject (const char *strName, IRPCObject *pObject)
 
virtual a_util::result::Result UnregisterRPCObject (const char *strName)
 
virtual cLockedRPCObject GetRPCObject (const char *strName) const
 

Detailed Description

An RPC Server that receives calls via HTTP.

Member Function Documentation

◆ GetRPCObject()

virtual cLockedRPCObject rpc::cRPCObjectsRegistry::GetRPCObject ( const char * strName) const
virtual

Get thread safe rpc object access by the rpc objects name

Parameters
[in]strNameName of the rpc object
Returns
The locked rpc object, might be empty if the name could not be looked up.

◆ RegisterRPCObject()

virtual a_util::result::Result rpc::cRPCObjectsRegistry::RegisterRPCObject ( const char * strName,
IRPCObject * pObject )
virtual

Register an RPC object

Parameters
[in]strNameThe name of the object.
[in]pObjectThe object.
Returns
Standard result.

Implements rpc::IRPCObjectsRegistry.

◆ UnregisterRPCObject()

virtual a_util::result::Result rpc::cRPCObjectsRegistry::UnregisterRPCObject ( const char * strName)
virtual

Unregisters an RPC object

Parameters
[in]strNameThe name of the object.
Returns
Standard result.

Implements rpc::IRPCObjectsRegistry.


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