OTX-Runtime for C++  
OpenTestSystem::Otx::DiagManager::DiagRuntimeSystem::ActiaMcdDiagRuntimeSystem Class Reference

Contains methods for accessing the VW-MCD More...

#include <ActiaMcdDiagRuntimeSystem.h>

Inheritance diagram for OpenTestSystem::Otx::DiagManager::DiagRuntimeSystem::ActiaMcdDiagRuntimeSystem:
Inheritance graph

Public Member Functions

DIAGRUNTIMESYSTEM_EXPORTS ActiaMcdDiagRuntimeSystem ()
 Creates an instance of the VW-MCD with the given project and vehicle name More...
 
DIAGRUNTIMESYSTEM_EXPORTS ActiaMcdDiagRuntimeSystem (const std::string &appId, const std::vector< unsigned char > &secretKey)
 Creates an instance of the VW-MCD with the given appId and secretKey More...
 
DIAGRUNTIMESYSTEM_EXPORTS ActiaMcdDiagRuntimeSystem (std::string projectName, std::string vehicleInfo)
 Creates an instance of the VW-MCD with the given project and vehicle name More...
 
DIAGRUNTIMESYSTEM_EXPORTS Common::ResultExecute (const Common::Command &command) override
 DiagRuntimeSystem executes the command synchronously More...
 
DIAGRUNTIMESYSTEM_EXPORTS Common::ResultExecuteAsync (const Common::Command &command) override
 DiagRuntimeSystem executes the command asynchronously More...
 
- Public Member Functions inherited from OpenTestSystem::Otx::DiagManager::Common::IDiagRuntimeSystem
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

Contains methods for accessing the VW-MCD

Constructor & Destructor Documentation

◆ ActiaMcdDiagRuntimeSystem() [1/3]

ActiaMcdDiagRuntimeSystem::ActiaMcdDiagRuntimeSystem ( )

Creates an instance of the VW-MCD with the given project and vehicle name

◆ ActiaMcdDiagRuntimeSystem() [2/3]

ActiaMcdDiagRuntimeSystem::ActiaMcdDiagRuntimeSystem ( const std::string &  appId,
const std::vector< unsigned char > &  secretKey 
)

Creates an instance of the VW-MCD with the given appId and secretKey

◆ ActiaMcdDiagRuntimeSystem() [3/3]

ActiaMcdDiagRuntimeSystem::ActiaMcdDiagRuntimeSystem ( std::string  projectName,
std::string  vehicleInfo 
)

Creates an instance of the VW-MCD with the given project and vehicle name

Parameters
projectNameName of the ODX runtime project
vehicleInfoShortname of the vehicle

Member Function Documentation

◆ Execute()

Result * ActiaMcdDiagRuntimeSystem::Execute ( const Common::Command command)
overridevirtual

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

Implements OpenTestSystem::Otx::DiagManager::Common::IDiagRuntimeSystem.

◆ ExecuteAsync()

Result * ActiaMcdDiagRuntimeSystem::ExecuteAsync ( const Common::Command command)
overridevirtual

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

Implements OpenTestSystem::Otx::DiagManager::Common::IDiagRuntimeSystem.


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