summaryrefslogtreecommitdiff
path: root/tests/modules/testmod4/TestMod4.cpp
blob: cd0578e08f58289ecfc7b2020802700571726da4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 )