Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Substitute.h

Go to the documentation of this file.
00001 // $Header: /nfs/slac/g/glast/ground/cvs/xmlUtil/xmlUtil/Substitute.h,v 1.3 2002/04/05 18:28:25 jrb Exp $
00002 #ifndef XMLUTIL_SUBSTITUTE_H 
00003 #define XMLUTIL_SUBSTITUTE_H
00004 
00005 #include <dom/DOM_Document.hpp>
00006 #include <dom/DOMString.hpp>
00007 #include <dom/DOM_TreeWalker.hpp>
00008 #include <string>
00009 
00010 
00011 namespace xmlUtil {
00020   class Substitute {
00021   public: 
00022 
00032     Substitute::Substitute(DOM_Document doc, std::string suffix =
00033                            std::string("REF")); 
00034 
00041     int execute(DOM_Element treeTop);
00042 
00044     ~Substitute() {};
00045 
00046   private:
00047     DOM_Document m_doc;    
00048     int          m_count;  
00049     std::string  m_suffix; 
00050     int          m_suffixLen; 
00051     int          m_notFound; 
00054     void  sub(DOM_Element elt);
00055   };
00056 
00057 }
00058 #endif

Generated on Wed Oct 16 14:02:48 2002 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001