OTX-Runtime for C++  
OpenTestSystem::Otx::Runtime::Api::Custom::IContextVariableImplementation Class Referenceabstract

Allows users to implement their own ContextVariables. More...

#include <IContextVariableImplementation.h>

Inheritance diagram for OpenTestSystem::Otx::Runtime::Api::Custom::IContextVariableImplementation:
Inheritance graph

Public Member Functions

virtual std::shared_ptr< ObjectGetValue (std::shared_ptr< IRuntimeContext > runtimeContext, std::shared_ptr< IContextVariable > variable, std::shared_ptr< Object > initMappingValue)=0
 Invoked each time the OTX runtime reads the value of a ContextVariable from the environment. More...
 

Detailed Description

Allows users to implement their own ContextVariables.

Member Function Documentation

◆ GetValue()

virtual std::shared_ptr<Object> OpenTestSystem::Otx::Runtime::Api::Custom::IContextVariableImplementation::GetValue ( std::shared_ptr< IRuntimeContext runtimeContext,
std::shared_ptr< IContextVariable variable,
std::shared_ptr< Object initMappingValue 
)
pure virtual

Invoked each time the OTX runtime reads the value of a ContextVariable from the environment.

Parameters
runtimeContextThe related runtime context.
variableThe related context variable.
initMappingValueInit value in OTX-Mapping file, see Environment Presets.


Returns
Value of the context variable which will be returned to the OTX-Runtime.

Implemented in OpenTestSystem::Otx::Runtime::Api::Custom::ContextVariableImplementation.


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