~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/io/XMLFiniteElement.h

  • Committer: Johannes Ring
  • Date: 2008-03-05 22:43:06 UTC
  • Revision ID: johannr@simula.no-20080305224306-2npsdyhfdpl2esji
The BIG commit!

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (C) 2007 Anders Logg.
 
2
// Licensed under the GNU LGPL Version 2.1.
 
3
//
 
4
// First added:  2007-04-13
 
5
// Last changed: 2007-04-13
 
6
 
 
7
#ifndef __XML_FINITE_ELEMENT_H
 
8
#define __XML_FINITE_ELEMENT_H
 
9
 
 
10
#include "XMLObject.h"
 
11
 
 
12
namespace dolfin
 
13
{
 
14
 
 
15
  class XMLFiniteElement: public XMLObject
 
16
  {
 
17
  public:
 
18
 
 
19
    XMLFiniteElement(std::string& signature);
 
20
    
 
21
    void startElement(const xmlChar* name, const xmlChar** attrs);
 
22
    void endElement  (const xmlChar* name);
 
23
    
 
24
  private:
 
25
    
 
26
    enum ParserState { OUTSIDE, INSIDE_FINITE_ELEMENT, DONE };
 
27
    
 
28
    void readFiniteElement(const xmlChar* name, const xmlChar** attrs);
 
29
    
 
30
    std::string& signature;
 
31
    ParserState state;
 
32
    
 
33
  };
 
34
  
 
35
}
 
36
 
 
37
#endif