00001 #ifndef XMLFixCollTypes_h
00002 #define XMLFixCollTypes_h 1
00003
00004
00005 #include <fstream>
00006 #include <string>
00007 #include <iostream>
00008
00009 class TiXmlNode ;
00010 class TiXmlDocument ;
00011
00012 namespace marlin{
00013
00014
00015
00025 class XMLFixCollTypes {
00026
00027
00028 public:
00029
00030
00031
00032 XMLFixCollTypes( const std::string& fileName ) ;
00033 virtual ~XMLFixCollTypes() ;
00034
00035
00037 void parse(const std::string& filename ) ;
00038
00039 protected:
00040
00041
00043 const char* getAttribute( TiXmlNode* node , const std::string& name ) ;
00044
00045
00047 TiXmlNode* findElement( TiXmlNode* node , const std::string& type,
00048 const std::string& attribute, const std::string& value ) ;
00049
00050
00051 TiXmlDocument* _doc ;
00052
00053 std::string _fileName ;
00054
00055 private:
00056 XMLFixCollTypes() ;
00057
00058 };
00059
00060 }
00061 #endif
00062