38 #ifndef MARSHALLERADAPTOR_HPP 39 #define MARSHALLERADAPTOR_HPP 48 template<
class InputStream,
class DeMarshaller,
class marsh::MarshallInterface,
class OutputStream>
55 template<
class marsh::MarshallInterface,
class OutputStream>
65 template<
class HeaderMarshaller,
66 class BodyMarshaller >
69 typedef typename BodyMarshaller::OutputStream OutputStream;
75 : header_marshaller(o_stream), body_marshaller(o_stream), output(o_stream)
78 HeaderMarshaller& header() {
return header_marshaller; }
79 BodyMarshaller& body() {
return body_marshaller; }
80 OutputStream& stream() {
return output; }
83 HeaderMarshaller header_marshaller;
84 BodyMarshaller body_marshaller;
92 template<
class InputStream,
class HeaderDemarshaller,
class BodyDemarshaller>
97 : header_demarshaller(i_stream), body_demarshaller(i_stream), input(i_stream)
100 HeaderDemarshaller& header() {
return header_demarshaller; }
101 BodyDemarshaller& body() {
return body_demarshaller; }
102 InputStream& stream() {
return input; }
105 HeaderDemarshaller header_demarshaller;
106 BodyDemarshaller body_demarshaller;
Contains the required classes for a full demarshalling operation.
Contains the required classes for a full marshalling operation.
MarshallConfiguration(OutputStream &o_stream)
Setup a new marshalling configuration to a specific stream.
Converts one marshaller type to another marshaller.