OTX-Runtime for C++  
IComInterface.h
1 #ifndef OpenTestSystem_DiagConfiguration_OtxDiagApi_IComInterface_H
2 #define OpenTestSystem_DiagConfiguration_OtxDiagApi_IComInterface_H
3 
4 #include "ApiDefs.h"
5 #include "TypeDefs.h"
6 #include "DataTypes/AllClasses.h"
7 #include "DataTypes/OtxConnectionState.h"
8 #include <string>
9 #include <memory>
10 #include <vector>
11 #include <map>
12 
13 namespace OpenTestSystem {
14  namespace Otx {
15  namespace DiagManager {
16  namespace OtxDiagApi {
20  class API_EXPORTS IComInterface
21  {
22  protected:
23  inline IComInterface() {}
24  public:
25  inline virtual ~IComInterface() {}
29  virtual void ActivateEthernet(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce) = 0;
33  virtual void CloseComInterface(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce) = 0;
37  virtual void ConnectComInterface(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce) = 0;
41  virtual void DeactivateEthernet(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce) = 0;
45  virtual std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComChannel> CreateComChannelFromComInterface(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce, const std::string & identifier, std::string * ecuVariantName = nullptr, const std::string & resource = "") = 0;
49  virtual double GetBatteryVoltage(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce) = 0;
53  virtual std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComChannel> GetComChannelFromComInterface(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce, const std::string & identifier, std::string * ecuVariantName = nullptr, bool performVariantSelection = false, const std::string & resource = "") = 0;
57  virtual std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> GetComInterface(const std::string & comInterfaceName) = 0;
65  virtual std::vector<std::string> GetComInterfaceNameListFromEthernet(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce, const std::string & optionString) = 0;
69  virtual std::map<std::string, std::string> GetComInterfaceProperties(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce) = 0;
73  virtual std::vector<std::string> GetComInterfaceResourceNameList(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce) = 0;
77  virtual std::string GetDefaultComInterfaceName() = 0;
81  virtual bool GetIgnitionState(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce, int64 * pinOnInterfaceConnector) = 0;
85  virtual bool IsInterfaceConnected(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce) = 0;
89  virtual bool IsSecuredDoipSessionActive(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce) = 0;
93  virtual void TlsSetCertificate(std::shared_ptr<OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface> comInterfce, const std::vector<std::vector<unsigned char>>& certificates) = 0;
97  virtual void SetDefaultComInterface(const std::string& comInterfaceName) = 0;
98  };
99  }
100  }
101  }
102 }
103 #endif // OpenTestSystem_DiagConfiguration_OtxDiagApi_IComInterface_H
The class is identical to an extension in OTX standard ISO 13209. A detailed specification can be fou...
Definition: IComInterface.h:21
virtual void ConnectComInterface(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual std::string GetDefaultComInterfaceName()=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual std::vector< std::string > GetComInterfaceNameList(const OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::OtxConnectionStates *connectionState)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual bool GetIgnitionState(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce, int64 *pinOnInterfaceConnector)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual double GetBatteryVoltage(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce)=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::IComChannel > GetComChannelFromComInterface(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce, const std::string &identifier, std::string *ecuVariantName=nullptr, bool performVariantSelection=false, const std::string &resource="")=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual void ActivateEthernet(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual void DeactivateEthernet(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual std::map< std::string, std::string > GetComInterfaceProperties(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual void SetDefaultComInterface(const std::string &comInterfaceName)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual void TlsSetCertificate(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce, const std::vector< std::vector< unsigned char >> &certificates)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual void CloseComInterface(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual bool IsSecuredDoipSessionActive(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual bool IsInterfaceConnected(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual std::vector< std::string > GetComInterfaceResourceNameList(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce)=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::IComInterface > GetComInterface(const std::string &comInterfaceName)=0
Identical to an action or term in the OTX standard ISO 13209. A detailed specification can be found t...
virtual std::vector< std::string > GetComInterfaceNameListFromEthernet(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce, const std::string &optionString)=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::IComChannel > CreateComChannelFromComInterface(std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::IComInterface > comInterfce, const std::string &identifier, std::string *ecuVariantName=nullptr, const std::string &resource="")=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