OTX-Runtime for C++
|
|
Factory class for creating the DiagOtxApi More...
#include <OtxDiagFactory.h>
Public Member Functions | |
API_EXPORTS std::shared_ptr< IOtxDiag > | CreateOtxDiag (std::shared_ptr< OpenTestSystem::Otx::DiagManager::Client::Client > client) |
Creates a DiagManager instance using an existing client instance More... | |
API_EXPORTS std::shared_ptr< IOtxDiag > | CreatePipeOtxDiag (const std::string &pipeName) |
Creates a DiagManager instance inside a separate process with inter process communication via NamedPipe More... | |
API_EXPORTS std::shared_ptr< IOtxDiag > | CreateRawOtxDiag (OpenTestSystem::Otx::DiagManager::Common::ICommandProcessor *commandProcessor) |
Creates a DiagManager instance inside the same process More... | |
API_EXPORTS std::shared_ptr< IOtxDiag > | CreateSocketOtxDiag (unsigned short port) |
Creates a DiagManager instance inside a separate process with inter process communication via Sockets More... | |
Factory class for creating the DiagOtxApi
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
client | Client for which a DiagManager is to be created |
OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::DiagRuntimeException | Thrown if the license is invalid or expired. |
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
OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::DiagRuntimeException | Thrown if the license is invalid or expired. |
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
OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::DiagRuntimeException | Thrown if the license is invalid or expired. |
Example
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
port | Port number of the DiagManager server e.g. "8888" |
OpenTestSystem::Otx::DiagManager::OtxDiagApi::DataTypes::DiagRuntimeException | Thrown if the license is invalid or expired. |