~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/io/XMLMesh.h

  • Committer: Anders Logg
  • Date: 2008-05-21 22:42:48 UTC
  • mfrom: (2668.6.1 trunk)
  • mto: (2668.8.3 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: logg@simula.no-20080521224248-7baydkw3uy323fur
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
// Licensed under the GNU LGPL Version 2.1.
3
3
//
4
4
// First added:  2003-10-21
5
 
// Last changed: 2008-05-20
 
5
// Last changed: 2008-05-21
6
6
 
7
7
#ifndef __NEW_XML_MESH_H
8
8
#define __NEW_XML_MESH_H
33
33
    
34
34
    enum ParserState {OUTSIDE,
35
35
                      INSIDE_MESH, INSIDE_VERTICES, INSIDE_CELLS,
36
 
                      INSIDE_DATA, INSIDE_MESH_FUNCTION,
 
36
                      INSIDE_DATA, INSIDE_MESH_FUNCTION, INSIDE_ARRAY,
37
37
                      DONE};
38
38
    
39
39
    void readMesh        (const xmlChar* name, const xmlChar** attrs);
44
44
    void readTriangle    (const xmlChar* name, const xmlChar** attrs);
45
45
    void readTetrahedron (const xmlChar* name, const xmlChar** attrs);
46
46
    void readMeshFunction(const xmlChar* name, const xmlChar** attrs);
47
 
    void readEntity      (const xmlChar* name, const xmlChar** attrs);
 
47
    void readArray       (const xmlChar* name, const xmlChar** attrs);
 
48
    void readMeshEntity  (const xmlChar* name, const xmlChar** attrs);
 
49
    void readArrayElement(const xmlChar* name, const xmlChar** attrs);
48
50
    
49
51
    void closeMesh();
50
52
 
52
54
    ParserState state;
53
55
    MeshEditor editor;
54
56
    MeshFunction<uint>* f;
 
57
    Array<uint>* a;
55
58
    
56
59
  };
57
60