it_bus/to_string.h

00001 #ifndef _IT_BUS_TO_STRING_H_
00002 #define _IT_BUS_TO_STRING_H_
00003 
00004 // @Copyright 2003 IONA Technologies, Plc. All Rights Reserved.
00005 //
00006 //
00007 // NOTE: you must link with the bus_xml library to use these functions.
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     ) throw((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     ) throw((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 
00058 
00059 #endif 

Generated on Tue Mar 20 15:27:44 2007 for Artix by  doxygen 1.5.1-p1