Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

LCD_DocManager.hh

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------------
00002 // $Id: LCD_DocManager.hh,v 1.9 2004/02/03 12:45:21 uid561 Exp $
00003 // ----------------------------------------------------------------------------
00004 //
00005 // Header file for class LCD_DocManager
00006 
00007 #ifndef LCD_DOCMANAGER_H
00008 #define LCD_DOCMANAGER_H
00009 
00010 //#include <string.h>
00011 #include <list>
00012 #include <vector>
00013 
00014 #include "LCD_DocumentImpl.hh"
00015 
00016 // There is only one LCD_DocManager, which does overall bookkeeping
00017 // for LCD_Documents.  All methods are static.
00018 
00019 class LCD_DocManager {
00020 public:
00021 
00022   static LCD_Document *makeDocument(const std::string& XMLfilespec);
00023 
00024   // Return value is a status
00025   static int deleteDocument(LCD_Document *doc);
00026 
00027   // Not clear which kind of container data structure is optimal for
00028   // list of docs.
00029   static std::vector<LCD_Document*>
00030   *getLCD_Documents(XERCES_CPP_NAMESPACE::DOMString docTypeName
00031                      = XERCES_CPP_NAMESPACE::DOMString("*")
00032                     );
00033 
00034   static XERCES_CPP_NAMESPACE::DOM_Element
00035   getElement(XERCES_CPP_NAMESPACE::DOMString id,
00036              XERCES_CPP_NAMESPACE::DOMString elementName = XERCES_CPP_NAMESPACE::DOMString("*"),
00037              XERCES_CPP_NAMESPACE::DOMString docTypeName = XERCES_CPP_NAMESPACE::DOMString("*"));
00038 
00039   // Given a DOM_Document, find corresponding LCD_Document if any
00040   static LCD_Document *getLCDDoc(XERCES_CPP_NAMESPACE::DOM_Document domDoc);
00041 
00042 private:
00043 
00044   static  std::list<LCD_DocumentImpl*>     *active;
00045   //  string                       myName;
00046 
00047   // Following starts out false (0)
00048   static bool                         initDone;
00049 };
00050 #endif

Generated on Thu Oct 7 18:44:46 2004 for LCDG4 by doxygen 1.3.4