Moby
XMLWriter.h
1 /****************************************************************************
2  * Copyright 2007 Evan Drumwright
3  * This library is distributed under the terms of the Apache V2.0
4  * License (obtainable from http://www.apache.org/licenses/LICENSE-2.0).
5  ****************************************************************************/
6 
7 #ifndef _MOBY_XML_WRITER_H
8 #define _MOBY_XML_WRITER_H
9 
10 #include <list>
11 #include <string>
12 #include <Moby/Types.h>
13 
14 namespace Moby {
15 
17 class XMLWriter
18 {
19  public:
20  static void serialize_to_xml(const std::string& filename, const std::list<boost::shared_ptr<const Base> >& objects);
21  static void serialize_to_xml(const std::string& filename, boost::shared_ptr<const Base> object);
22 };
23 
24 } // end namespace
25 
26 #endif
27 
Class for writing Base objects (and their derivatives) to XML.
Definition: XMLWriter.h:17