diff options
Diffstat (limited to 'tests/modules/libcommon/Common.cpp')
-rwxr-xr-x | tests/modules/libcommon/Common.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/modules/libcommon/Common.cpp b/tests/modules/libcommon/Common.cpp new file mode 100755 index 0000000..82a4ae1 --- /dev/null +++ b/tests/modules/libcommon/Common.cpp @@ -0,0 +1,27 @@ +#include "Common.hpp" + +#include <iostream> +#include <string> + +using namespace std; + +Common::Common( ) + : m_name( "noname" ) +{ + cout << "Created common object" << endl; +} + +Common::~Common( ) +{ + cout << "Destroyed common object" << endl; +} + +void Common::setName( string name ) +{ + m_name = name; +} + +void Common::print( string s ) +{ + cout << m_name << ": " << s << endl; +} |