⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmlfunction.cpp

📁 利用C
💻 CPP
字号:
// Copyright (C) 2006 Johan Jansson and Anders Logg.// Licensed under the GNU LGPL Version 2.1.//// First added:  2006-02-15// Last changed: 2006-05-23#include <dolfin/log/dolfin_log.h>#include <dolfin/function/Function.h>#include "XMLFunction.h"using namespace dolfin;//-----------------------------------------------------------------------------XMLFunction::XMLFunction(Function& f) : XMLObject(), f(f){  state = OUTSIDE;}//-----------------------------------------------------------------------------void XMLFunction::startElement(const xmlChar* name, const xmlChar** attrs){  switch ( state )  {  case OUTSIDE:        if ( xmlStrcasecmp(name, (xmlChar *) "function") == 0 )    {      readFunction(name,attrs);      state = INSIDE_FUNCTION;    }        break;      default:    ;  }}//-----------------------------------------------------------------------------void XMLFunction::endElement(const xmlChar* name){  switch ( state )  {  case INSIDE_FUNCTION:        if ( xmlStrcasecmp(name, (xmlChar *) "function") == 0 )    {      state = DONE;    }        break;      default:    ;  }}//-----------------------------------------------------------------------------void XMLFunction::readFunction(const xmlChar* name, const xmlChar** attrs){  // Nothing to do here, since we are cheating, see XMLFile.cpp}//-----------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -