00001 #ifndef _IT_BUS_TO_STRING_H_
00002 #define _IT_BUS_TO_STRING_H_
00003
00004
00005
00006
00007
00008
00009
00010 #include <it_bus/types.h>
00011 #include <it_bus/qname.h>
00012
00013 namespace IT_Bus
00014 {
00015 class AnyType;
00016
00017 extern const IT_BUS_XML_API QName default_to_string_element_name;
00018
00025 String IT_BUS_XML_API
00026 to_string(
00027 const AnyType& data,
00028 const QName& element_name = default_to_string_element_name
00029 ) IT_THROW_DECL((IT_Bus::Exception));
00030
00037 void IT_BUS_XML_API
00038 to_file(
00039 const String& file_name,
00040 const AnyType& data,
00041 const QName& element_name = default_to_string_element_name
00042 ) IT_THROW_DECL((IT_Bus::Exception));
00043 }
00044
00045
00046 #ifndef IT_IOSTREAMS_FREE
00047
00048 inline IT_ostream&
00049 operator<<(
00050 IT_ostream& os,
00051 const IT_Bus::AnyType& data
00052 )
00053 {
00054 return os << IT_Bus::to_string(data);
00055 }
00056
00057 #endif
00059 #endif