X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=example-codegen%2Fclient.cpp;fp=example-codegen%2Fclient.cpp;h=0000000000000000000000000000000000000000;hp=1029abeb7fa67ea1c3e4cc269e4260b218a2f4a4;hb=f4dfa6457b4b4f0f37b4aa55384c03ebd530385f;hpb=d0a97d0bbe03472214e379b7a4ace2bdcecfc212 diff --git a/example-codegen/client.cpp b/example-codegen/client.cpp deleted file mode 100644 index 1029abe..0000000 --- a/example-codegen/client.cpp +++ /dev/null @@ -1,39 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2004 by Intra2net AG * - * info@intra2net.com * - * * - ***************************************************************************/ - -#include - -// include generated library headers -#include "default_client.hxx" -#include "other_client.hxx" - -int main(int argc, char** argv) -{ - libt2n::socket_client_connection sc("./socket"); - libt2n::socket_client_connection sc_other("./socket_other"); - cmd_group_default_client cc(sc); - cmd_group_other_client cc_other(sc_other); - - bool throwok=false; - try - { - cc.testfunc("throw"); - }catch(libt2n::t2n_runtime_error &e){ - throwok=(std::string(e.what())=="throw me around"); - } - - Foo foo={10,10}; - - return ( throwok - && ( cc.testfunc("hello") == "hello, testfunc() was here" ) - && ( cc.testfunc_ref("hello") == "hello, testfunc() was here" ) - && ( cc.t2(10) == 10 ) - && ( cc_other.t3(10, 20, "hello", std::pair(10,20)) ) - && ( cc_other.t3(10) == 10 ) - && ( cc_other.t3(std::vector(1,10)) ) - && ( cc_other.t3(foo) ) ) - ? EXIT_SUCCESS : EXIT_FAILURE; -}