1 #include "minimalistic-client-stub.hxx"
2 #include "minimalistic-stub.hxx"
5 libt2n::result* testfunc_cmd::operator()()
10 std::string cmd_group_example_client::testfunc(const std::string& str)
12 libt2n::result_container rc;
13 send_command(new testfunc_cmd(str),rc);
15 testfunc_res* res=dynamic_cast<testfunc_res*>(rc.get_result());
17 // TODO: another exception and details
18 throw libt2n::t2n_communication_error("result object of wrong type");
19 return res->get_data();
22 // include in this compilation unit to ensure the compilation unit is used
24 // http://www.google.de/search?q=g%2B%2B+static+initializer+in+static+library
25 #include "minimalistic-stub.cpp"