contrib/brl/bbas/bxml/bxml_write.h
Go to the documentation of this file.
00001 // This is brl/bbas/bxml/bxml_write.h
00002 #ifndef bxml_write_h_
00003 #define bxml_write_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //:
00008 // \file
00009 // \brief functions to write XML documents
00010 // \author Matt Leotta (Brown)
00011 // \date   October 5, 2006
00012 //
00013 // \verbatim
00014 //  Modifications
00015 //   <none yet>
00016 // \endverbatim
00017 
00018 #include "bxml_document.h"
00019 #include <vcl_iostream.h>
00020 
00021 //: Write the entire contents of \p filepath into an XML document class
00022 void bxml_write(const vcl_string& filepath, const bxml_document& doc);
00023 
00024 
00025 //: Write the entire data stream \p is into an XML document class
00026 void bxml_write(vcl_ostream& os, const bxml_document& doc);
00027 
00028 
00029 //: Write the document declaration (header)
00030 void bxml_write_declaration(vcl_ostream& os, const bxml_document& doc);
00031 
00032 //: Write the data (element or text)
00033 void bxml_write_data(vcl_ostream& os, const bxml_data_sptr& data);
00034 
00035 //: Write the XML element
00036 void bxml_write_element(vcl_ostream& os, const bxml_element& element);
00037 
00038 
00039 #endif // bxml_write_h_