#include <so_sysconf_2/h/coop_handler.hpp>
#include <so_sysconf_2/h/coop_factory.hpp>
namespace sample_dll1
{
class test_handler_t :
public so_sysconf_2::coop_handler_t
{
typedef so_sysconf_2::coop_handler_t base_type_t;
public :
test_handler_t(
const char * coop_name );
virtual ~test_handler_t();
virtual bool
reg(
const std::string & cfg_file,
std::string & error_msg )
{
error_msg = "not implemented";
return false;
}
virtual void
dereg()
{
}
};
test_handler_t::test_handler_t(
const char * coop_name )
:
base_type_t(
"sample_dll1",
coop_name )
{
}
test_handler_t::~test_handler_t()
{
}
test_handler_t g_coop_1( "coop_1" );
test_handler_t g_coop_2( "coop_2" );
test_handler_t g_coop_3( "coop_3" );
class test_factory_t :
public so_sysconf_2::coop_factory_t
{
typedef so_sysconf_2::coop_factory_t base_type_t;
public :
test_factory_t(
const std::string & factory_name )
:
base_type_t(
"sample_dll1",
factory_name )
{}
virtual ~test_factory_t()
{}
virtual bool
reg(
const std::string & coop_name,
const std::string & cfg_file,
std::string & error_msg )
{
error_msg = "not implemented";
return false;
}
};
test_factory_t g_factory_1( "factory_1" );
test_factory_t g_factory_2( "factory_2" );
}