RobotTestingFramework  2.0.1
Robot Testing Framework
Public Member Functions | List of all members
robottestingframework::plugin::PluginLoader Class Referenceabstract

The PluginLoader is an abstract class for loading a test case plug-in and gives the direct access to the TestCase. More...

#include <robottestingframework/PluginLoader.h>

+ Inheritance diagram for robottestingframework::plugin::PluginLoader:

Public Member Functions

 PluginLoader ()=default
 PluginLoader constructor. More...
 
virtual ~PluginLoader ()=default
 PluginLoader destructor. More...
 
virtual TestCaseopen (const std::string filename)=0
 open Loads a test case plugin More...
 
virtual void close ()=0
 close Unloads the plugin and deletes any allocated memory. More...
 
virtual std::string getLastError ()=0
 getLastError gets the last error if any. More...
 

Detailed Description

The PluginLoader is an abstract class for loading a test case plug-in and gives the direct access to the TestCase.

The PluginLoader class needs to be implemented by a plugin-specific loader.

Definition at line 36 of file PluginLoader.h.

Constructor & Destructor Documentation

◆ PluginLoader()

robottestingframework::plugin::PluginLoader::PluginLoader ( )
default

PluginLoader constructor.

◆ ~PluginLoader()

virtual robottestingframework::plugin::PluginLoader::~PluginLoader ( )
virtualdefault

PluginLoader destructor.

Member Function Documentation

◆ close()

virtual void robottestingframework::plugin::PluginLoader::close ( )
pure virtual

◆ getLastError()

virtual std::string robottestingframework::plugin::PluginLoader::getLastError ( )
pure virtual

◆ open()

virtual TestCase* robottestingframework::plugin::PluginLoader::open ( const std::string  filename)
pure virtual

open Loads a test case plugin

Parameters
filenamethe plugin filename
Returns
A pointer to the test case loaded from the plugin or a null pointer in case of failure.

Implemented in robottestingframework::plugin::DllPluginLoader, robottestingframework::plugin::PythonPluginLoader, robottestingframework::plugin::RubyPluginLoader, and robottestingframework::plugin::LuaPluginLoader.


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