OTX-Runtime for C++  
OpenTestSystem::Otx::Runtime::Api::RuntimeManagerFactory Class Reference

Factory class for creating runtime managers, see IRuntimeManager More...

#include <RuntimeManagerFactory.h>

Static Public Member Functions

static std::shared_ptr< IRuntimeManagerCreatePipeRuntimeManager (const std::string &otxRunnerPipeName)
 Creates PipeRuntimeManager without DiagManager. More...
 
static std::shared_ptr< IRuntimeManagerCreatePipeRuntimeManager (const std::string &otxRunnerPipeName, const std::string &diagManagerPipeName)
 Creates PipeRuntimeManager with Pipe DiagManager. More...
 
static std::shared_ptr< IRuntimeManagerCreateRawRuntimeManager ()
 Creates RawRuntimeManager without DiagManager. More...
 
static std::shared_ptr< IRuntimeManagerCreateRawRuntimeManager (const std::string &diagManagerPipeName)
 Creates RawRuntimeManager with Pipe DiagManager. More...
 
static std::shared_ptr< IRuntimeManagerCreateRawRuntimeManager (std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::IOtxDiag > otxDiag)
 Creates RawRuntimeManager with Raw DiagManager. More...
 
static std::shared_ptr< IRuntimeManagerCreateRawRuntimeManager (unsigned short diagManagerPort)
 Creates RawRuntimeManager with Socket DiagManager. More...
 
static std::shared_ptr< IRuntimeManagerCreateSocketRuntimeManager (unsigned short otxRunnerPort)
 Creates SocketRuntimeManager without DiagManager. More...
 
static std::shared_ptr< IRuntimeManagerCreateSocketRuntimeManager (unsigned short otxRunnerPort, unsigned short diagManagerPort)
 Creates SocketRuntimeManager with Socket DiagManager. More...
 

Detailed Description

Factory class for creating runtime managers, see IRuntimeManager

Member Function Documentation

◆ CreatePipeRuntimeManager() [1/2]

static std::shared_ptr<IRuntimeManager> OpenTestSystem::Otx::Runtime::Api::RuntimeManagerFactory::CreatePipeRuntimeManager ( const std::string &  otxRunnerPipeName)
static

Creates PipeRuntimeManager without DiagManager.

Parameters
otxRunnerPipeNamePipe name which the OtxRunner listens on.
Returns
A PipeRuntimeManager.
Exceptions
OpenTestSystem::Otx::Runtime::Api::Exceptions::InvalidLicenseExceptionThrown when a license of runtimeManager Api is not valid or expired.

Examples

shared_ptr<IRuntimeManager> pipeRt = RuntimeManagerFactory::CreatePipeRuntimeManager("Emotive");
static std::shared_ptr< IRuntimeManager > CreatePipeRuntimeManager(const std::string &otxRunnerPipeName, const std::string &diagManagerPipeName)
Creates PipeRuntimeManager with Pipe DiagManager.

◆ CreatePipeRuntimeManager() [2/2]

static std::shared_ptr<IRuntimeManager> OpenTestSystem::Otx::Runtime::Api::RuntimeManagerFactory::CreatePipeRuntimeManager ( const std::string &  otxRunnerPipeName,
const std::string &  diagManagerPipeName 
)
static

Creates PipeRuntimeManager with Pipe DiagManager.

Parameters
otxRunnerPipeNamePipe name which the OtxRunner listens on.
diagManagerPipeNamePipe name which the DiagManager listens on.
Returns
A PipeRuntimeManager.
Exceptions
OpenTestSystem::Otx::Runtime::Api::Exceptions::InvalidLicenseExceptionThrown when a license of runtimeManager Api is not valid or expired.

Examples

shared_ptr<IRuntimeManager> pipeRt = RuntimeManagerFactory::CreatePipeRuntimeManager("Emotive", "DiagManager");

◆ CreateRawRuntimeManager() [1/4]

static std::shared_ptr<IRuntimeManager> OpenTestSystem::Otx::Runtime::Api::RuntimeManagerFactory::CreateRawRuntimeManager ( )
static

Creates RawRuntimeManager without DiagManager.

Returns
A RawRuntimeManager.
Exceptions
OpenTestSystem::Otx::Runtime::Api::Exceptions::InvalidLicenseExceptionThrown when a license of runtimeManager Api is not valid or expired.

Examples

shared_ptr<IRuntimeManager> rawRt = RuntimeManagerFactory::CreateRawRuntimeManager();
static std::shared_ptr< IRuntimeManager > CreateRawRuntimeManager()
Creates RawRuntimeManager without DiagManager.

◆ CreateRawRuntimeManager() [2/4]

static std::shared_ptr<IRuntimeManager> OpenTestSystem::Otx::Runtime::Api::RuntimeManagerFactory::CreateRawRuntimeManager ( const std::string &  diagManagerPipeName)
static

Creates RawRuntimeManager with Pipe DiagManager.

Parameters
diagManagerPipeNamePipe name which the DiagManager listens on.
Returns
A RawRuntimeManager.
Exceptions
OpenTestSystem::Otx::Runtime::Api::Exceptions::InvalidLicenseExceptionThrown when a license of runtimeManager Api is not valid or expired.

Examples

shared_ptr<IRuntimeManager> rawRt = RuntimeManagerFactory::CreateRawRuntimeManager("DiagManager");

◆ CreateRawRuntimeManager() [3/4]

static std::shared_ptr<IRuntimeManager> OpenTestSystem::Otx::Runtime::Api::RuntimeManagerFactory::CreateRawRuntimeManager ( std::shared_ptr< OpenTestSystem::Otx::DiagManager::OtxDiagApi::IOtxDiag otxDiag)
static

Creates RawRuntimeManager with Raw DiagManager.

Parameters
otxDiagOtxDiag is a raw OtxDiag.
Returns
A RawRuntimeManager.
Exceptions
OpenTestSystem::Otx::Runtime::Api::Exceptions::InvalidLicenseExceptionThrown when a license of runtimeManager Api is not valid or expired.

Examples

1 #include "RuntimeManagerFactory.h"
3 #include "ICommandProcessor.h"
5 #include "IDiagManager.h"
6 #include "IDiagConfiguration.h"
7 #include "OtxDiagFactory.h"
9 #include <memory>
10 using namespace std;
11 void main()
12 {
13  OtxDiagFactory factory;
14  OpenTestSystem::Otx::DiagManager::Common::ICommandProcessor *commandProcessor;
15  //Creates CommandProcessor here.
16  shared_ptr<IRuntimeManager> rt = RuntimeManagerFactory::CreateRawRuntimeManager(commandProcessor);
17 }
Factory class for creating the DiagOtxApi
Definition: OtxDiagFactory.h:37
Namespace containing all common methods for the DiagManager
Namespace covering all actions and terms of all diagnostic related OTX extension by an identical meho...
Namespace containing the programming interface for browsing and execution of OTX procedures in own ap...
Definition: ClampState.h:7

◆ CreateRawRuntimeManager() [4/4]

static std::shared_ptr<IRuntimeManager> OpenTestSystem::Otx::Runtime::Api::RuntimeManagerFactory::CreateRawRuntimeManager ( unsigned short  diagManagerPort)
static

Creates RawRuntimeManager with Socket DiagManager.

Parameters
diagManagerPortPort which the DiagManager listens on.
Returns
A RawRuntimeManager.
Exceptions
OpenTestSystem::Otx::Runtime::Api::Exceptions::InvalidLicenseExceptionThrown when a license of runtimeManager Api is not valid or expired.

Examples

shared_ptr<IRuntimeManager> rawRt = RuntimeManagerFactory::CreateRawRuntimeManager(1000);

◆ CreateSocketRuntimeManager() [1/2]

static std::shared_ptr<IRuntimeManager> OpenTestSystem::Otx::Runtime::Api::RuntimeManagerFactory::CreateSocketRuntimeManager ( unsigned short  otxRunnerPort)
static

Creates SocketRuntimeManager without DiagManager.

Parameters
otxRunnerPortPort which the OtxRunner listens on, or 0 to specify any available port.
Returns
A SocketRuntimeManager.
Exceptions
OpenTestSystem::Otx::Runtime::Api::Exceptions::InvalidLicenseExceptionThrown when a license of runtimeManager Api is not valid or expired.

Examples

shared_ptr<IRuntimeManager> socketRt = RuntimeManagerFactory::CreateSocketRuntimeManager(1000);
static std::shared_ptr< IRuntimeManager > CreateSocketRuntimeManager(unsigned short otxRunnerPort, unsigned short diagManagerPort)
Creates SocketRuntimeManager with Socket DiagManager.

◆ CreateSocketRuntimeManager() [2/2]

static std::shared_ptr<IRuntimeManager> OpenTestSystem::Otx::Runtime::Api::RuntimeManagerFactory::CreateSocketRuntimeManager ( unsigned short  otxRunnerPort,
unsigned short  diagManagerPort 
)
static

Creates SocketRuntimeManager with Socket DiagManager.

Parameters
otxRunnerPortPort which the OtxRunner listens on, or 0 to specify any available port.
diagManagerPortPort which the DiagManager listens on.
Returns
A SocketRuntimeManager.
Exceptions
OpenTestSystem::Otx::Runtime::Api::Exceptions::InvalidLicenseExceptionThrown when a license of runtimeManager Api is not valid or expired.

Examples

shared_ptr<IRuntimeManager> socketRt = RuntimeManagerFactory::CreateSocketRuntimeManager(1000, 1001);

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