QtXMLController.cxx
Go to the documentation of this file.
1 
11 #include "QtXMLController.h"
12 
13 #include "QtXmlDocument.h"
14 
15 #include <qfile.h>
16 
17 using std::string;
18 
19 namespace hippodraw {
20 
21 QtXMLController * QtXMLController::s_instance = 0;
22 
24 {
25 }
26 
28 {
29  if ( s_instance == 0 ) {
30  s_instance = new QtXMLController ();
31  }
32  return s_instance;
33 }
34 
35 bool
37 fileExists ( const std::string & filename ) const
38 {
39  QFile file ( filename.c_str() );
40 
41  return file.exists ();
42 }
43 
44 void
46 newDocument ( const std::string & name )
47 {
48 // if ( m_xml_doc != 0 ) delete m_xml_doc;
49  m_xml_doc = new QtXmlDocument ( name );
50 }
51 
52 } // namespace hippodraw
53 

Generated for HippoDraw Class Library by doxygen