RobotTestingFramework 2.0.1
Robot Testing Framework
Loading...
Searching...
No Matches
PluginLoader.h
Go to the documentation of this file.
1/*
2 * Robot Testing Framework
3 *
4 * Copyright (C) 2015-2019 Istituto Italiano di Tecnologia (IIT)
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#ifndef ROBOTTESTINGFRAMEWORK_PLUGINLOADER_H
22#define ROBOTTESTINGFRAMEWORK_PLUGINLOADER_H
23
25
26#include <string>
27
28namespace robottestingframework {
29namespace plugin {
30
37{
38public:
42 PluginLoader() = default;
43
47 virtual ~PluginLoader() = default;
48
55 virtual TestCase* open(const std::string filename) = 0;
56
61 virtual void close() = 0;
62
67 virtual std::string getLastError() = 0;
68};
69
70} // namespace plugin
71} // namespace robottestingframework
72
73#endif // ROBOTTESTINGFRAMEWORK_PLUGINLOADER_H
The base class to implememnt a test case.
Definition TestCase.h:42
The PluginLoader is an abstract class for loading a test case plug-in and gives the direct access to ...
virtual std::string getLastError()=0
getLastError gets the last error if any.
virtual void close()=0
close Unloads the plugin and deletes any allocated memory.
PluginLoader()=default
PluginLoader constructor.
virtual TestCase * open(const std::string filename)=0
open Loads a test case plugin
virtual ~PluginLoader()=default
PluginLoader destructor.