PluginLoader.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_PLUGINLOADER_H
#define ROBOTTESTINGFRAMEWORK_PLUGINLOADER_H
#include <robottestingframework/TestCase.h>
#include <string>
namespace robottestingframework {
namespace plugin {
class PluginLoader
{
public:
PluginLoader() = default;
virtual ~PluginLoader() = default;
virtual TestCase* open(const std::string filename) = 0;
virtual void close() = 0;
virtual std::string getLastError() = 0;
};
} // namespace plugin
} // namespace robottestingframework
#endif // ROBOTTESTINGFRAMEWORK_PLUGINLOADER_H
TestCase.h
robottestingframework::TestCase
The base class to implememnt a test case.
Definition: TestCase.h:42
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::plugin::PluginLoader::getLastError
virtual std::string getLastError()=0
getLastError gets the last error if any.
robottestingframework::plugin::PluginLoader::close
virtual void close()=0
close Unloads the plugin and deletes any allocated memory.
robottestingframework::plugin::PluginLoader::open
virtual TestCase * open(const std::string filename)=0
open Loads a test case plugin
robottestingframework::plugin::PluginLoader::PluginLoader
PluginLoader()=default
PluginLoader constructor.
robottestingframework::plugin::PluginLoader::~PluginLoader
virtual ~PluginLoader()=default
PluginLoader destructor.
robottestingframework
Definition: Arguments.h:25