Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

XmlDocument.h

Go to the documentation of this file.
00001 /* -*- mode: c++ -*-
00002  * 
00003  * HippoPlot XmlDocument class interface
00004  *
00005  * Copyright (C) 2002, 2003  The Board of Trustees of The Leland
00006  * Stanford Junior University.  All Rights Reserved.
00007  *
00008  * $Id: XmlDocument.h,v 1.13 2004/06/27 22:09:06 pfkeb Exp $
00009  *
00010  */
00011 
00012 #ifndef _XmlDocument_H_
00013 #define _XmlDocument_H_
00014 
00015 #include "pattern/libhippo.h"
00016 
00017 #include <string>
00018 
00019 class XmlElement;
00020 class XmlTextNode;
00021 
00028 class MDL_HIPPOPLOT_API XmlDocument
00029 {
00030 
00031 public:
00033   enum Status { Success, OpenError, ParseError, WriteError };
00034 
00035 private:
00036 
00038   XmlDocument ( const XmlDocument & );
00039 
00040 protected:
00041 
00043   XmlDocument ();
00044 
00045 public:
00046 
00048   virtual ~XmlDocument();
00049 
00051   virtual XmlElement * documentElement ( ) const = 0;
00052 
00056   virtual XmlElement * createElement ( const std::string & tagName ) = 0;
00057 
00059   virtual XmlTextNode * createTextNode ( const std::string & tag ) = 0;
00060 
00062   virtual void appendChild ( XmlElement & ) = 0;
00063 
00066   virtual Status saveToFile ( const std::string & filename ) = 0;
00067 
00077   virtual Status setContent ( const std::string & filename ) = 0;
00078 
00079 };
00080 
00081 #endif // _XmlDocument_H_

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3