X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_WidgetAPI.h;h=5ab583808c866a281a3d8fe6df0b5b5b13e7a556;hb=18e1dd362d39f72fe4e9437226e5d0f29fb9379d;hp=361407c657bc08d0d9fd1516145935b352888214;hpb=0f62ec06972bfb8828f4b0b835c12a565ecf2692;p=modules%2Fshaper.git diff --git a/src/Config/Config_WidgetAPI.h b/src/Config/Config_WidgetAPI.h index 361407c65..5ab583808 100644 --- a/src/Config/Config_WidgetAPI.h +++ b/src/Config/Config_WidgetAPI.h @@ -1,11 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -/* - * Config_WidgetAPI.h - * - * Created on: Apr 1, 2014 - * Author: sbh - */ +// Copyright (C) 2014-2021 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_WIDGETAPI_H_ #define CONFIG_WIDGETAPI_H_ @@ -67,9 +77,8 @@ class Config_WidgetAPI */ CONFIG_EXPORT bool getBooleanAttribute(const char* theAttributeName, bool theDefault) const; - protected: /// These fields are accessible for ModuleBase_WidgetFactory only - CONFIG_EXPORT Config_WidgetAPI(std::string theRawXml); + CONFIG_EXPORT Config_WidgetAPI(std::string theRawXml, const std::string theAttributePrefix = ""); //! Pass to the next (sibling) node of widget's xml definition. If impossible, returns false CONFIG_EXPORT bool toNextWidget(); //! Pass into the child node of widget's xml definition. If impossible, returns false @@ -81,6 +90,7 @@ class Config_WidgetAPI xmlDocPtr myDoc; //!< Pointer to the root of widget's xml definition xmlNodePtr myCurrentNode; //!< Pointer to the current node in the widget's xml definition std::string myFeatureId; + std::string myAttributePrefix; //!< prefix that must be added to the attribute name friend class ModuleBase_WidgetFactory; };