summaryrefslogtreecommitdiff
path: root/tests/modules/testmod4/TestMod4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/testmod4/TestMod4.cpp')
-rwxr-xr-xtests/modules/testmod4/TestMod4.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/modules/testmod4/TestMod4.cpp b/tests/modules/testmod4/TestMod4.cpp
new file mode 100755
index 0000000..cd0578e
--- /dev/null
+++ b/tests/modules/testmod4/TestMod4.cpp
@@ -0,0 +1,34 @@
+#include "TestMod4.hpp"
+#include "Common.hpp"
+
+#include <iostream>
+
+#include <vector>
+#include <string>
+
+using namespace std;
+
+Derived::Derived( )
+{
+}
+
+Derived::~Derived( )
+{
+}
+
+void Derived::hello( )
+{
+ Common::instance( ).print( "hello world from module" );
+}
+
+static void initModule( )
+{
+ Common::instance( ).print( "Module 4 initModule called" );
+}
+
+static void destroyModule( )
+{
+ Common::instance( ).print( "Module 4 destroyModule called" );
+}
+
+REGISTER_MODULE( "testmod4", &initModule, &destroyModule, Base, Derived )