Loading...
Searching...
No Matches
LuaPluginLoader.h
Go to the documentation of this file.
/*
* Robot Testing Framework
*
* Copyright (C) 2015-2019 Istituto Italiano di Tecnologia (IIT)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ROBOTTESTINGFRAMEWORK_LUAPLUGINLOADER_H
#define ROBOTTESTINGFRAMEWORK_LUAPLUGINLOADER_H
#include <robottestingframework/PluginLoader.h>
#include <robottestingframework/TestCase.h>
#include <string>
namespace robottestingframework {
namespace plugin {
class LuaPluginLoader : public PluginLoader
{
public:
LuaPluginLoader();
~LuaPluginLoader() override;
TestCase* open(const std::string filename) override;
void close() override;
std::string getLastError() override;
private:
void* implementation;
};
} // namespace robottestingframework
} // namespace plugin
#endif // ROBOTTESTINGFRAMEWORK_LUAPLUGINLOADER_H
PluginLoader.h
TestCase.h
robottestingframework::TestCase
The base class to implememnt a test case.
Definition TestCase.h:42
robottestingframework::plugin::LuaPluginLoader
The LuaPluginLoader loads an test case plug-in and gives the direct access to the TestCase.
Definition LuaPluginLoader.h:38
robottestingframework::plugin::LuaPluginLoader::LuaPluginLoader
LuaPluginLoader()
LuaPluginLoader constructor.
robottestingframework::plugin::LuaPluginLoader::~LuaPluginLoader
~LuaPluginLoader() override
LuaPluginLoader destructor.
robottestingframework::plugin::LuaPluginLoader::getLastError
std::string getLastError() override
getLastError gets the last error if any.
robottestingframework::plugin::LuaPluginLoader::implementation
void * implementation
Definition LuaPluginLoader.h:71
robottestingframework::plugin::LuaPluginLoader::open
TestCase * open(const std::string filename) override
open Loads a test case plugin
robottestingframework::plugin::LuaPluginLoader::close
void close() override
close Unloads the plugin and deletes any allocated memory.
robottestingframework::plugin::PluginLoader
The PluginLoader is an abstract class for loading a test case plug-in and gives the direct access to ...
Definition PluginLoader.h:37
robottestingframework
Definition Arguments.h:25