libmoost
|
00001 /* vim:set ts=3 sw=3 sts=3 et: */ 00028 #include <boost/lexical_cast.hpp> 00029 00030 #include "test_class_2.h" 00031 00032 namespace { so_load_watcher lw("test_module2"); } 00033 00034 int my_test_class1::inst = 1; 00035 int my_test_class2::inst = 1; 00036 00037 my_test_class1::my_test_class1() 00038 : m_inst(boost::lexical_cast<std::string>(inst++)) 00039 { 00040 pdl_test_event("ctor test_module2:my_test_class1 " + m_inst); 00041 } 00042 00043 my_test_class1::~my_test_class1() 00044 { 00045 pdl_test_event("dtor test_module2:my_test_class1 " + m_inst); 00046 } 00047 00048 int my_test_class1::do_it() 00049 { 00050 return 3; 00051 } 00052 00053 my_test_class2::my_test_class2() 00054 : m_inst(boost::lexical_cast<std::string>(inst++)), m_ctr(0) 00055 { 00056 pdl_test_event("ctor test_module2:my_test_class2 " + m_inst); 00057 } 00058 00059 my_test_class2::~my_test_class2() 00060 { 00061 pdl_test_event("dtor test_module2:my_test_class2 " + m_inst); 00062 } 00063 00064 int my_test_class2::do_it() 00065 { 00066 return 4 + 10*m_ctr++; 00067 } 00068 00069 PDL_EXPORT_DYNAMIC_CLASS(my_test_class1) 00070 PDL_EXPORT_DYNAMIC_CLASS(my_test_class2)