RobotTestingFramework  2.0.1
Robot Testing Framework
PythonPluginLoader.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 
22 #ifndef ROBOTTESTINGFRAMEWORK_PYTHONPLUGINLOADER_H
23 #define ROBOTTESTINGFRAMEWORK_PYTHONPLUGINLOADER_H
24 
27 
28 #include <string>
29 
30 namespace robottestingframework {
31 namespace plugin {
32 
38 {
39 
40 public:
45 
49  virtual ~PythonPluginLoader();
50 
57  TestCase* open(const std::string filename) override;
58 
63  void close() override;
64 
69  std::string getLastError() override;
70 
71 private:
73 };
74 
75 } // namespace plugin
76 } // namespace robottestingframework
77 
78 #endif // ROBOTTESTINGFRAMEWORK_PYTHONPLUGINLOADER_H
std::string getLastError() override
getLastError gets the last error if any.
The PluginLoader is an abstract class for loading a test case plug-in and gives the direct access to ...
Definition: PluginLoader.h:36
PythonPluginLoader()
PythonPluginLoader constructor.
TestCase * open(const std::string filename) override
open Loads a test case plugin
The PythonPluginLoader loads a Python test case plug-in and gives the direct access to the TestCase...
virtual ~PythonPluginLoader()
PythonPluginLoader destructor.
The base class to implememnt a test case.
Definition: TestCase.h:41
void close() override
close Unloads the plugin and deletes any allocated memory.