00001 /* -*- mode: c++ -*- 00002 * 00003 * HippoPlot QtXMLController class interface 00004 * 00005 * Copyright (C) 2002 The Board of Trustees of The Leland Stanford 00006 * Junior University. All Rights Reserved. 00007 * 00008 * $Id: QtXMLController.h,v 1.53 2003/06/24 23:24:27 pfkeb Exp $ 00009 * 00010 * 00011 */ 00012 00013 #ifndef _QtXMLController_H_ 00014 #define _QtXMLController_H_ 00015 00016 #include "qt/libqthippo.h" 00017 00018 00019 #ifdef _MSC_VER 00020 #include "msdevstudio/MSconfig.h" 00021 #include "datasrcs/NTuple.h" 00022 #include <qdom.h> 00023 #endif 00024 00025 #include "xml/XmlController.h" 00026 00027 class QDomDocument; 00028 class QDomElement; 00029 00036 class MDL_QTHIPPOPLOT_API QtXMLController : public XmlController 00037 { 00038 00039 private: 00040 00042 static QtXMLController * s_instance; 00043 00045 QtXMLController ( const QtXMLController & ); 00046 00047 protected: 00048 00051 QtXMLController(); 00052 00053 virtual bool fileExists ( const std::string & filename ) const; 00054 virtual void newDocument ( const std::string & name ); 00055 00056 public: 00057 00059 static QtXMLController * instance (); 00060 00061 }; 00062 00063 #endif // _QtXMLController_H_