OTX-Runtime for C++  
OpenTestSystem::Otx::DiagManager::OtxDiagApi::OtxDiagFactory Class Reference

Factory class for creating the DiagOtxApi More...

#include <OtxDiagFactory.h>

Public Member Functions

API_EXPORTS std::shared_ptr< IOtxDiagCreateOtxDiag (std::shared_ptr< OpenTestSystem::Otx::DiagManager::Client::Client > client)
 Creates a DiagManager instance using an existing client instance More...
 
API_EXPORTS std::shared_ptr< IOtxDiagCreatePipeOtxDiag (const std::string &pipeName)
 Creates a DiagManager instance inside a separate process with inter process communication via NamedPipe More...
 
API_EXPORTS std::shared_ptr< IOtxDiagCreateRawOtxDiag (OpenTestSystem::Otx::DiagManager::Common::ICommandProcessor *commandProcessor)
 Creates a DiagManager instance inside the same process More...
 
API_EXPORTS std::shared_ptr< IOtxDiagCreateSocketOtxDiag (unsigned short port)
 Creates a DiagManager instance inside a separate process with inter process communication via Sockets More...
 

Detailed Description

Factory class for creating the DiagOtxApi

Member Function Documentation

◆ CreateOtxDiag()

API_EXPORTS std::shared_ptr<IOtxDiag> OpenTestSystem::Otx::DiagManager::OtxDiagApi::OtxDiagFactory::CreateOtxDiag ( std::shared_ptr< OpenTestSystem::Otx::DiagManager::Client::Client >  client)

Creates a DiagManager instance using an existing client instance

Parameters
clientClient for which a DiagManager is to be created
Exceptions
OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::DiagRuntimeExceptionThrown if the license is invalid or expired.

◆ CreatePipeOtxDiag()

API_EXPORTS std::shared_ptr<IOtxDiag> OpenTestSystem::Otx::DiagManager::OtxDiagApi::OtxDiagFactory::CreatePipeOtxDiag ( const std::string &  pipeName)

Creates a DiagManager instance inside a separate process with inter process communication via NamedPipe

Exceptions
OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::DiagRuntimeExceptionThrown if the license is invalid or expired.

◆ CreateRawOtxDiag()

API_EXPORTS std::shared_ptr<IOtxDiag> OpenTestSystem::Otx::DiagManager::OtxDiagApi::OtxDiagFactory::CreateRawOtxDiag ( OpenTestSystem::Otx::DiagManager::Common::ICommandProcessor *  commandProcessor)

Creates a DiagManager instance inside the same process

Exceptions
OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::DiagRuntimeExceptionThrown if the license is invalid or expired.

Example

runtimeManager = RuntimeManagerFactory::CreateRawRuntimeManager(OpenTestSystem::Otx::Runtime::DiagUtil::CreateRawDiagManager());

◆ CreateSocketOtxDiag()

API_EXPORTS std::shared_ptr<IOtxDiag> OpenTestSystem::Otx::DiagManager::OtxDiagApi::OtxDiagFactory::CreateSocketOtxDiag ( unsigned short  port)

Creates a DiagManager instance inside a separate process with inter process communication via Sockets

Parameters
portPort number of the DiagManager server e.g. "8888"
Exceptions
OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::DiagRuntimeExceptionThrown if the license is invalid or expired.

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