#include <boost/archive/xml_oarchive.hpp>
#include <boost/archive/xml_iarchive.hpp>
#include <boost/serialization/serialization.hpp>
-#include <boost/serialization/export.hpp>
#include "command_client.hxx"
// TODO: exceptions
oa << cc;
+ std::ostream* ostr;
+ if ((ostr=c.get_logstream(fulldebug))!=NULL)
+ {
+ (*ostr) << "sending command, decoded data: " << std::endl;
+ boost::archive::xml_oarchive xo(*ostr);
+ xo << BOOST_SERIALIZATION_NVP(cc);
+ }
+
c.write(ofs.str());
// TODO: fix timeout
// TODO: exceptions
ia >> res;
+
+ if ((ostr=c.get_logstream(fulldebug))!=NULL)
+ {
+ (*ostr) << "received result, decoded data: " << std::endl;
+ boost::archive::xml_oarchive xo(*ostr);
+ xo << BOOST_SERIALIZATION_NVP(res);
+ }
}
}