OTX-Runtime for C++
|
|
Interface which a DiagRuntimeSystem must be implemented More...
#include <IDiagRuntimeSystem.h>
Public Member Functions | |
virtual Common::Result * | Execute (const Common::Command &command)=0 |
DiagRuntimeSystem executes the command synchronously More... | |
virtual Common::Result * | ExecuteAsync (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... | |
Interface which a DiagRuntimeSystem must be implemented
|
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.
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.
|
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.
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.
|
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.
|
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.