1
// Copyright (C) 2007 Anders Logg.
2
// Licensed under the GNU LGPL Version 2.1.
4
// First added: 2007-04-13
5
// Last changed: 2007-04-13
7
#include <dolfin/dolfin_log.h>
8
#include <dolfin/XMLDofMap.h>
10
using namespace dolfin;
12
//-----------------------------------------------------------------------------
13
XMLDofMap::XMLDofMap(std::string& signature)
14
: XMLObject(), signature(signature)
18
//-----------------------------------------------------------------------------
19
void XMLDofMap::startElement(const xmlChar* name, const xmlChar** attrs)
25
if ( xmlStrcasecmp(name, (xmlChar *) "dofmap") == 0 )
27
readDofMap(name, attrs);
28
state = INSIDE_DOF_MAP;
37
//-----------------------------------------------------------------------------
38
void XMLDofMap::endElement(const xmlChar* name)
44
if ( xmlStrcasecmp(name, (xmlChar *) "dofmap") == 0 )
55
//-----------------------------------------------------------------------------
56
void XMLDofMap::readDofMap(const xmlChar* name,
57
const xmlChar** attrs)
60
signature = parseString(name, attrs, "signature");
62
//-----------------------------------------------------------------------------