OTX-Runtime for C++  
IJob.h
1 #ifndef OpenTestSystem_DiagConfiguration_OtxDiagApi_IJob_H
2 #define OpenTestSystem_DiagConfiguration_OtxDiagApi_IJob_H
3 
4 #include "ApiDefs.h"
5 #include "TypeDefs.h"
6 #include "DataTypes/AllClasses.h"
7 #include "DataTypes/OtxResultType.h"
8 #include "DataTypes/OtxSeverityType.h"
9 #include "DataTypes/OtxJobResponseState.h"
10 #include <string>
11 #include <memory>
12 
13 namespace OpenTestSystem { namespace Otx { namespace DiagManager { namespace OtxDiagApi {
17  class API_EXPORTS IJob
18  {
19  protected:
20  inline IJob() {}
21  public:
22  inline virtual ~IJob() {}
26  virtual std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IResult> CreateResult(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IDiagService> diagService, std::string * codeDescription, std::string * vendorCodeDescription, OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::OtxResultTypes * resultType, OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::OtxSeverityTypes * severity, int32 * errorCode, int32 * vendorCode) = 0;
30  virtual std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IResponse> CreateResponse(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IResult> result, OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::OtxJobResponseStates * responseState) = 0;
34  virtual void AddBranchByIndex(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer> parameterContainer, std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer> content, double index) = 0;
38  virtual void AddBranchByName(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer> parameterContainer, std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer> content, const std::string & shortName) = 0;
42  virtual void AddBranchByValue(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer> parameterContainer, double value) = 0;
46  virtual void AddEnvDataByDtc(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer> parameterContainer, double dtc) = 0;
50  virtual void AddElement(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer> parameterContainer, std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer> content) = 0;
54  virtual std::string GetJobInfo(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IDiagService> diagJob) = 0;
58  virtual int32 GetJobProgress(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IDiagService> diagJob) = 0;
62  virtual void SendFinalResult(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IResult> result) = 0;
66  virtual void SendIntermediateResult(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IResult> result) = 0;
70  virtual void SetJobInfo(const std::string & info) = 0;
74  virtual void SetProgressInfo(double process) = 0;
75  };
76 }}}}
77 #endif // OpenTestSystem_DiagConfiguration_OtxDiagApi_IJob_H
The class is identical to an extension in OTX standard ISO 13209. A detailed specification can be fou...
Definition: IJob.h:18
virtual void SetJobInfo(const std::string &info)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual void SetProgressInfo(double process)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IResponse > CreateResponse(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IResult > result, OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::OtxJobResponseStates *responseState)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual void SendIntermediateResult(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IResult > result)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual void AddBranchByName(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer > parameterContainer, std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer > content, const std::string &shortName)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual void AddEnvDataByDtc(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer > parameterContainer, double dtc)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IResult > CreateResult(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IDiagService > diagService, std::string *codeDescription, std::string *vendorCodeDescription, OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::OtxResultTypes *resultType, OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::OtxSeverityTypes *severity, int32 *errorCode, int32 *vendorCode)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual void AddBranchByValue(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer > parameterContainer, double value)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual int32 GetJobProgress(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IDiagService > diagJob)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual std::string GetJobInfo(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IDiagService > diagJob)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual void AddBranchByIndex(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer > parameterContainer, std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer > content, double index)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual void AddElement(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer > parameterContainer, std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IParameterContainer > content)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual void SendFinalResult(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IResult > result)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
Namespace containing all objects related to testing inside automotive industry