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

QtXMLController.cxx

Go to the documentation of this file.
00001 
00011 #include "QtXMLController.h"
00012 
00013 #include "QtXmlDocument.h"
00014 
00015 #include <qfile.h>
00016 
00017 using std::string;
00018 
00019 QtXMLController * QtXMLController::s_instance = 0;
00020 
00021 QtXMLController::QtXMLController ( )
00022 {
00023 }
00024 
00025 QtXMLController * QtXMLController::instance ( )
00026 {
00027   if ( s_instance == 0 ) {
00028     s_instance = new QtXMLController ();
00029   }
00030   return s_instance;
00031 }
00032 
00033 bool
00034 QtXMLController::
00035 fileExists ( const std::string & filename ) const
00036 {
00037   QFile file ( filename.c_str() );
00038 
00039   return file.exists ();
00040 }
00041 
00042 void
00043 QtXMLController::
00044 newDocument ( const std::string & name )
00045 {
00046 //   if ( m_xml_doc != 0 ) delete m_xml_doc;
00047   m_xml_doc = new QtXmlDocument ( name );
00048 }

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3