1 #ifndef DDACEXMLREADER_H 2 #define DDACEXMLREADER_H 3 4 5 #include "DDaceXMLHandler.h" 6 7 /** 8 * 9 * DDaceXMLReader is the class for interfacing to the XML readers. 10 * The constructor takes one parameter: the name of the XML file to read 11 */ 12 class DDaceXMLReader { public: DDaceXMLReader(const std::string& filename); 13 createObject()14 DDace createObject() {return handler_.createObject();} getVarNames()15 std::vector<std::string> getVarNames() const {return handler_.getVarNames();} getOutputNames()16 std::vector<std::string> getOutputNames() const 17 {return handler_.getOutputNames();} getArchiveFilename()18 std::string getArchiveFilename()const 19 {return handler_.getArchiveFilename();} 20 21 protected: 22 void init(const std::string& filename); 23 24 DDaceXMLHandler handler_; 25 }; 26 27 #endif 28 29