1 #ifndef MINIMALISTIC_STUB_HXX
2 #define MINIMALISTIC_STUB_HXX
7 header is used by the client library and the server
10 // todo: why do we have to include the boost headers first?
11 // do we have to know which archive format we will use?
13 #include <boost/archive/binary_oarchive.hpp>
14 #include <boost/archive/binary_iarchive.hpp>
15 #include <boost/archive/xml_oarchive.hpp>
16 #include <boost/archive/xml_iarchive.hpp>
17 #include <boost/serialization/serialization.hpp>
18 #include <boost/serialization/string.hpp>
21 #include <t2n_exception.hxx>
22 #include <command.hxx>
25 #define LIBT2N_EXPORT __attribute((gccxml("libt2n")))
30 class cmd_group_example : public libt2n::command
33 friend class boost::serialization::access;
34 template<class Archive>
35 void serialize(Archive & ar, const unsigned int version)
37 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(libt2n::command);
42 class testfunc_res : public libt2n::result
47 friend class boost::serialization::access;
48 template<class Archive>
49 void serialize(Archive & ar, const unsigned int version)
51 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(libt2n::result);
52 ar & BOOST_SERIALIZATION_NVP(res);
59 testfunc_res(const std::string& str)
64 std::string get_data()
71 class testfunc_cmd : public cmd_group_example
76 friend class boost::serialization::access;
77 template<class Archive>
78 void serialize(Archive & ar, const unsigned int version)
80 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(cmd_group_example);
81 ar & BOOST_SERIALIZATION_NVP(param);
88 testfunc_cmd(const std::string& str)
93 libt2n::result* operator()();
97 extended_type_info_test();