00001 #ifndef _IT_BUS_PDK_SIMPLE_WRITER_H_
00002 #define _IT_BUS_PDK_SIMPLE_WRITER_H_
00003
00004
00005
00006
00007 #include <it_bus/complex_type_writer.h>
00008
00009 namespace IT_Bus
00010 {
00011 class IT_AFC_API SimpleWriter : public ComplexTypeWriter
00012 {
00013 public:
00014
00015 SimpleWriter(
00016 const String& exception_message = sm_default_message
00017 );
00018
00019 virtual ~SimpleWriter();
00020
00021 virtual void
00022 write_sequence(
00023 const QName & name,
00024 const SequenceComplexType & data
00025 ) throw((SerializationException));
00026
00027 virtual void
00028 write_all(
00029 const QName & name,
00030 const AllComplexType & data
00031 ) throw((SerializationException));
00032
00033 virtual void
00034 write_choice(
00035 const QName & name,
00036 const ChoiceComplexType & data
00037 ) throw((SerializationException));
00038
00039 virtual void
00040 write_simple_content(
00041 const QName & name,
00042 const SimpleContentComplexType & data
00043 ) throw((SerializationException));
00044
00045 virtual void
00046 write_element_list(
00047 const QName & name,
00048 const ElementList& list
00049 ) throw((SerializationException));
00050
00051 virtual void
00052 write_type_list(
00053 const QName & name,
00054 const TypeList& list
00055 ) throw((SerializationException));
00056
00057 virtual void
00058 write_soap_enc_array(
00059 const QName & name,
00060 const SoapEncArray& list
00061 ) throw((SerializationException));
00062
00063 virtual void
00064 write_complex_content(
00065 const QName & name,
00066 const ComplexContentComplexType& data
00067 ) throw((SerializationException));
00068
00069 virtual void
00070 write_any_holder(
00071 const QName& name,
00072 const AnyHolder& nillable
00073 ) throw((SerializationException));
00074
00075 virtual void
00076 write_any(
00077 const QName& name,
00078 const Any& any
00079 ) throw((SerializationException));
00080
00081 virtual void
00082 write_any_list(
00083 const QName& name,
00084 const TypeList& data
00085 ) throw((SerializationException));
00086
00087 virtual void
00088 write_attribute_map(
00089 const IT_Bus::QNameHashMap<IT_Bus::String> & map
00090 ) throw((SerializationException));
00091
00092 virtual bool
00093 is_derived_write() const;
00094
00095 private:
00096 static const String sm_default_message;
00097 String m_message;
00098 };
00099 }
00100
00101 #endif