ADTF  3.18.2
adtf::ucom::testing::ant Namespace Reference

Namespace for all functionality provided since v3.0. More...

Classes

class  cTestRuntime
 A testing runtime definition for own applications. More...
 
class  cExecutorThread
 This is a helper class that executes calls in a thread. More...
 
class  exec_forward
 This template makes will forward the runtime_executor function calls to the RuntimeClass. More...
 
class  runtime_executor
 This template makes sure to create and execute an instance of a runtime in a separate thread. More...
 
class  exec_forward< adtf::system::ant::cADTFSystem >
 

Enumerations

enum  tTestRL : int8_t { RL_Shutdown = IRuntime::RL_Shutdown , RL_System = 1 , RL_Application = 2 , RL_Running = 3 }
 A testing runtime runlevel definition for own applications.
 

Functions

const adtf_util::cFilename find_plugin (const adtf::util::cString &strPluginName)
 find plugin helper. More...
 
const adtf_util::cFilename load_plugin (const adtf::util::cString &strPluginName, int8_t ui8Level, ucom::ant::IRuntime &oRuntime)
 load plugin helper. More...
 
const adtf_util::cFilename load_plugin (const adtf::util::cString &strPluginName, int8_t ui8Level)
 load plugin helper. More...
 
const adtf_util::cFilename load_plugin (const adtf::util::cString &strPluginName)
 load plugin helper. More...
 
void load_service (const adtf_util::cString &strPluginName, const adtf_util::cString &strClassId, const adtf_util::cString &strObjectId, int8_t nPluginLevel, int8_t nServiceLevel)
 load plugin and create a service. More...
 
void load_service (const adtf_util::cString &strPluginName, const adtf_util::cString &strClassId, const adtf_util::cString &strObjectId, int8_t nServiceLevel)
 load plugin and create a service. More...
 
void clean_up ()
 cleans up the current _runtime returns void.
 

Detailed Description

Namespace for all functionality provided since v3.0.

Function Documentation

◆ find_plugin()

const adtf_util::cFilename adtf::ucom::testing::ant::find_plugin ( const adtf::util::cString &  strPluginName)

find plugin helper.

Parameters
strPluginName[in] Path to the plugin. if path is relative it will try to resolve to ITestBench::GetPluginDirs().
Returns
returns the resolved filename if found.

◆ load_plugin() [1/3]

const adtf_util::cFilename adtf::ucom::testing::ant::load_plugin ( const adtf::util::cString &  strPluginName)

load plugin helper.

Parameters
strPluginName[in] Path to the plugin. if path is relative it will try to resolve to ITestBench::GetPluginDirs().
Returns
returns the resolved filename if found.

◆ load_plugin() [2/3]

const adtf_util::cFilename adtf::ucom::testing::ant::load_plugin ( const adtf::util::cString &  strPluginName,
int8_t  ui8Level 
)

load plugin helper.

Parameters
strPluginName[in] Path to the plugin. if path is relative it will try to resolve to ITestBench::GetPluginDirs.
ui8Level[in] level where to register plugin
Returns
returns the resolved filename if found.

◆ load_plugin() [3/3]

const adtf_util::cFilename adtf::ucom::testing::ant::load_plugin ( const adtf::util::cString &  strPluginName,
int8_t  ui8Level,
ucom::ant::IRuntime oRuntime 
)

load plugin helper.

Parameters
strPluginName[in] Path to the plugin. if path is relative it will try to resolve to ITestBench::GetPluginDirs.
ui8Level[in] level where to register plugin
oRuntime[in] runtime where to register plugin
Returns
returns the resolved filename if found.

◆ load_service() [1/2]

void adtf::ucom::testing::ant::load_service ( const adtf_util::cString &  strPluginName,
const adtf_util::cString &  strClassId,
const adtf_util::cString &  strObjectId,
int8_t  nPluginLevel,
int8_t  nServiceLevel 
)

load plugin and create a service.

Parameters
strPluginName[in] Path to the plugin. if path is relative it will try to resolve to ITestBench::GetPluginDirs.
strClassId[in] class identifier to create the service
strObjectId[in] object identifier to register within _runtime.
nPluginLevel[in] to register the plugin
nServiceLevel[in] service level the runtime will unregister the object automatically.
Returns
void.

◆ load_service() [2/2]

void adtf::ucom::testing::ant::load_service ( const adtf_util::cString &  strPluginName,
const adtf_util::cString &  strClassId,
const adtf_util::cString &  strObjectId,
int8_t  nServiceLevel 
)

load plugin and create a service.

The plugin will be registered for RL_Internal.

Parameters
strPluginName[in] Path to the plugin. if path is relative it will try to resolve to ITestBench::GetPluginDirs.
strClassId[in] class identifier to create the service
strObjectId[in] object identifier to register within _runtime.
nServiceLevel[in] service level the runtime will unregister the object automatically.
Returns
void.