RobotTestingFramework  2.0.1
Robot Testing Framework
Public Member Functions | Private Attributes | List of all members
robottestingframework::plugin::LuaPluginLoader Class Reference

The LuaPluginLoader loads an test case plug-in and gives the direct access to the TestCase. More...

#include <robottestingframework/lua/LuaPluginLoader.h>

+ Inheritance diagram for robottestingframework::plugin::LuaPluginLoader:

Public Member Functions

 LuaPluginLoader ()
 LuaPluginLoader constructor. More...
 
 ~LuaPluginLoader () override
 LuaPluginLoader destructor. More...
 
TestCaseopen (const std::string filename) override
 open Loads a test case plugin More...
 
void close () override
 close Unloads the plugin and deletes any allocated memory. More...
 
std::string getLastError () override
 getLastError gets the last error if any. More...
 
- Public Member Functions inherited from robottestingframework::plugin::PluginLoader
 PluginLoader ()=default
 PluginLoader constructor. More...
 
virtual ~PluginLoader ()=default
 PluginLoader destructor. More...
 

Private Attributes

void * implementation
 

Detailed Description

The LuaPluginLoader loads an test case plug-in and gives the direct access to the TestCase.

Definition at line 37 of file LuaPluginLoader.h.

Constructor & Destructor Documentation

◆ LuaPluginLoader()

robottestingframework::plugin::LuaPluginLoader::LuaPluginLoader ( )

LuaPluginLoader constructor.

◆ ~LuaPluginLoader()

robottestingframework::plugin::LuaPluginLoader::~LuaPluginLoader ( )
override

LuaPluginLoader destructor.

Member Function Documentation

◆ close()

void robottestingframework::plugin::LuaPluginLoader::close ( )
overridevirtual

close Unloads the plugin and deletes any allocated memory.

Implements robottestingframework::plugin::PluginLoader.

◆ getLastError()

std::string robottestingframework::plugin::LuaPluginLoader::getLastError ( )
overridevirtual

getLastError gets the last error if any.

Returns
returns the last error string.

Implements robottestingframework::plugin::PluginLoader.

◆ open()

TestCase* robottestingframework::plugin::LuaPluginLoader::open ( const std::string  filename)
overridevirtual

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.

Implements robottestingframework::plugin::PluginLoader.

Member Data Documentation

◆ implementation

void* robottestingframework::plugin::LuaPluginLoader::implementation
private

Definition at line 71 of file LuaPluginLoader.h.


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