![]() |
00001 // Copyright (C) 2004 Johan Hoffman and Anders Logg. 00002 // Licensed under the GNU GPL Version 2. 00003 00004 #ifndef __XML_PARAMETER_LIST_H 00005 #define __XML_PARAMETER_LIST_H 00006 00007 #include <dolfin/XMLObject.h> 00008 00009 namespace dolfin { 00010 00011 class ParameterList; 00012 00013 class XMLParameterList : public XMLObject { 00014 public: 00015 00016 XMLParameterList(ParameterList& parameters); 00017 00018 void startElement (const xmlChar *name, const xmlChar **attrs); 00019 void endElement (const xmlChar *name); 00020 00021 void reading(std::string filename); 00022 void done(); 00023 00024 private: 00025 00026 enum ParserState { OUTSIDE, INSIDE_PARAMETERS, DONE }; 00027 00028 void readParameter(const xmlChar *name, const xmlChar **attrs); 00029 00030 ParameterList& parameters; 00031 ParserState state; 00032 00033 }; 00034 00035 } 00036 00037 #endif
Documentation automatically generated with Doxygen on 10 Sep 2004.