OTX-Runtime for C++  
OpenTestSystem::Otx::DiagManager::Common::IDiagRuntimeSystem Class Referenceabstract

Interface which a DiagRuntimeSystem must be implemented More...

#include <IDiagRuntimeSystem.h>

Inheritance diagram for OpenTestSystem::Otx::DiagManager::Common::IDiagRuntimeSystem:
Inheritance graph

Public Member Functions

virtual Common::ResultExecute (const Common::Command &command)=0
 DiagRuntimeSystem executes the command synchronously More...
 
virtual Common::ResultExecuteAsync (const Common::Command &command)=0
 DiagRuntimeSystem executes the command asynchronously More...
 
virtual void SetAsyncResultHandler (std::function< void(const Common::Result &)> handler)=0
 Set an async result handler into DiagRuntimeSystem. More...
 
virtual void SetExceptionHandler (std::function< void(const Common::Exception &)> handler)=0
 Set an exception handler into DiagRuntimeSystem. More...
 

Detailed Description

Interface which a DiagRuntimeSystem must be implemented

Member Function Documentation

◆ Execute()

virtual Common::Result* OpenTestSystem::Otx::DiagManager::Common::IDiagRuntimeSystem::Execute ( const Common::Command command)
pure virtual

DiagRuntimeSystem executes the command synchronously

The DiagRuntimeSystem must execute the command synchronously and returns a result or an exception. The command contains a Google Protobuf data object, which is related according to OTX term or action (e.g. GetComChannel, ExecuteDiagService, ...). It contains all required parameter values.

Returns
Result of the execution

Implemented in OpenTestSystem::Otx::DiagManager::DiagRuntimeSystem::VwMcdSPDiagRuntimeSystem, OpenTestSystem::Otx::DiagManager::DiagRuntimeSystem::VwMcdDiagRuntimeSystem, OpenTestSystem::Otx::DiagManager::DiagRuntimeSystem::SiemensMcdDiagRuntimeSystem, OpenTestSystem::Otx::DiagManager::DiagRuntimeSystem::ProdisMcdDiagRuntimeSystem, and OpenTestSystem::Otx::DiagManager::DiagRuntimeSystem::ActiaMcdDiagRuntimeSystem.

◆ ExecuteAsync()

virtual Common::Result* OpenTestSystem::Otx::DiagManager::Common::IDiagRuntimeSystem::ExecuteAsync ( const Common::Command command)
pure virtual

DiagRuntimeSystem executes the command asynchronously

The DiagRuntimeSystem executes the command asynchronously and returns am empty result. The real result/exception when received will be given back via async result/exception handler, which is set in SetAsyncResultHandler/SetExceptionHandler. The command contains a Google Protobuf data object, which is related according to OTX term or action (e.g. GetComChannel, ExecuteDiagService, ...). It contains all required parameter values.

Returns
Result of the execution

Implemented in OpenTestSystem::Otx::DiagManager::DiagRuntimeSystem::VwMcdSPDiagRuntimeSystem, OpenTestSystem::Otx::DiagManager::DiagRuntimeSystem::VwMcdDiagRuntimeSystem, OpenTestSystem::Otx::DiagManager::DiagRuntimeSystem::SiemensMcdDiagRuntimeSystem, OpenTestSystem::Otx::DiagManager::DiagRuntimeSystem::ProdisMcdDiagRuntimeSystem, and OpenTestSystem::Otx::DiagManager::DiagRuntimeSystem::ActiaMcdDiagRuntimeSystem.

◆ SetAsyncResultHandler()

virtual void OpenTestSystem::Otx::DiagManager::Common::IDiagRuntimeSystem::SetAsyncResultHandler ( std::function< void(const Common::Result &)>  handler)
pure virtual

Set an async result handler into DiagRuntimeSystem.

At asynchonous execution, the DiagRuntimeSystem will call and give the result to the set handler when the execution finishes.

◆ SetExceptionHandler()

virtual void OpenTestSystem::Otx::DiagManager::Common::IDiagRuntimeSystem::SetExceptionHandler ( std::function< void(const Common::Exception &)>  handler)
pure virtual

Set an exception handler into DiagRuntimeSystem.

At asynchonous execution, the DiagRuntimeSystem will call and give the exception to the set handler when the execution has an exception.


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