Fawkes API  Fawkes Development Version
test_plugin.cpp
1 
2 /***************************************************************************
3  * test_plugin.cpp - QA test plugin
4  *
5  * Generated: Wed Aug 23 17:00:00 2006
6  * Copyright 2006 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #include <core/plugin.h>
25 
26 #include <cstdio>
27 
28 using namespace fawkes;
29 
30 /** Simple test plugin for QA application.
31  */
32 class TestPlugin : public Plugin {
33 
34  public:
35  /** Constructor, prints out info message
36  * @param config configuration instance
37  */
38  TestPlugin(Configuration *config) : Plugin(config)
39  {
40  printf("TestPlugin constructor called\n");
41  }
42 
43  /** Destrcutor, prints out info message
44  */
46  {
47  printf("TestPlugin destructor called\n");
48  }
49 };
50 
51 PLUGIN_DESCRIPTION("Test plugin")
52 EXPORT_PLUGIN(TestPlugin)
Plugin interface class.
Definition: plugin.h:33
Simple test plugin for QA application.
Definition: test_plugin.cpp:32
Fawkes library namespace.
TestPlugin(Configuration *config)
Constructor, prints out info message.
Definition: test_plugin.cpp:38
~TestPlugin()
Destrcutor, prints out info message.
Definition: test_plugin.cpp:45
Interface for configuration handling.
Definition: config.h:67