Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

XMLVector.h

Go to the documentation of this file.
00001 // Copyright (C) 2002 Johan Hoffman and Anders Logg.
00002 // Licensed under the GNU GPL Version 2.
00003 
00004 #ifndef __XML_VECTOR_H
00005 #define __XML_VECTOR_H
00006 
00007 #include "XMLObject.h"
00008 
00009 namespace dolfin {
00010 
00011   class Vector;
00012   
00013   class XMLVector : public XMLObject {
00014   public:
00015 
00016          XMLVector(Vector& vector);
00017 
00018          void startElement (const xmlChar *name, const xmlChar **attrs);
00019          void endElement   (const xmlChar *name);
00020          
00021   private:
00022          
00023          enum ParserState { OUTSIDE, INSIDE_VECTOR, DONE };
00024          
00025          void readVector  (const xmlChar *name, const xmlChar **attrs);
00026          void readElement (const xmlChar *name, const xmlChar **attrs);
00027          
00028          Vector& x;
00029          ParserState state;
00030          
00031   };
00032   
00033 }
00034 
00035 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.