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

XMLMatrix.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_MATRIX_H
00005 #define __XML_MATRIX_H
00006 
00007 #include "XMLObject.h"
00008 
00009 namespace dolfin {
00010 
00011   class Matrix;
00012   
00013   class XMLMatrix : public XMLObject {
00014   public:
00015 
00016          XMLMatrix(Matrix& matrix);
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_MATRIX, INSIDE_ROW, DONE };
00024          
00025          void readMatrix  (const xmlChar *name, const xmlChar **attrs);
00026          void readRow     (const xmlChar *name, const xmlChar **attrs);
00027          void readElement (const xmlChar *name, const xmlChar **attrs);
00028          
00029          Matrix& A;
00030          int row;
00031          
00032          ParserState state;
00033          
00034   };
00035   
00036 }
00037 
00038 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.