X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FConfig%2FConfig_XMLReader.h;h=53b07024f1b9dac0ed5864c83061276863665a29;hb=fb5791f033b0e2f0f79693b82464332316ce19b0;hp=6cfefc62d854f96122b361d48e47a42b9a048212;hpb=9656b3b76203fe83434376f41afbdc4c7b0b84b3;p=modules%2Fshaper.git diff --git a/src/Config/Config_XMLReader.h b/src/Config/Config_XMLReader.h index 6cfefc62d..53b07024f 100644 --- a/src/Config/Config_XMLReader.h +++ b/src/Config/Config_XMLReader.h @@ -1,11 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -/* - * Config_XMLReader.h - * - * Created on: Mar 14, 2014 - * Author: sbh - */ +// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com +// #ifndef CONFIG_XMLREADER_H_ #define CONFIG_XMLREADER_H_ @@ -43,6 +54,11 @@ class Config_XMLReader */ CONFIG_EXPORT Config_XMLReader(const std::string& theXmlFile); CONFIG_EXPORT virtual ~Config_XMLReader(); + /*! + * Returns a path to the plugins.xml file (created from ROOT_DIR environment variable) + * \return string value + */ + CONFIG_EXPORT static std::string pluginConfigFile(); /*! * Read all nodes in associated xml file, * recursively if processChildren(xmlNode) is true for the xmlNode. @@ -55,11 +71,12 @@ class Config_XMLReader */ CONFIG_EXPORT xmlNodePtr findRoot(); + CONFIG_EXPORT const char* encoding() const; + protected: /*! * \brief Allows to customize reader's behavior for a node. Virtual. - * The default implementation process "source", "validator" and - * "selection_filter" nodes. + * The default implementation process "source" and "validator" nodes. */ virtual void processNode(xmlNodePtr aNode); @@ -92,7 +109,9 @@ class Config_XMLReader std::string restoreAttribute(xmlNodePtr theNode, const char* theNodeAttribute); /// Restores an attribute from internal map. std::string restoreAttribute(const char* theNodeName, const char* theNodeAttribute); + /// Cleanups attribute from cache bool cleanupAttribute(xmlNodePtr theNode, const char* theNodeAttribute); + /// Cleanups attribute from cache bool cleanupAttribute(const char* theNodeName, const char* theNodeAttribute); protected: