X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_WidgetReader.h;h=783f2aa45739472641ee554d029dd9324a38a1fc;hb=60e95a5502a6940c6c27ce5d561b3c684b0b0a4f;hp=cfc1519a56b62fcc46eafeaeb39e489d3fba599d;hpb=a764a876ed5d1480b2a76f4e12307985bcf96c16;p=modules%2Fshaper.git diff --git a/src/Config/Config_WidgetReader.h b/src/Config/Config_WidgetReader.h index cfc1519a5..783f2aa45 100644 --- a/src/Config/Config_WidgetReader.h +++ b/src/Config/Config_WidgetReader.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + /* * Config_WidgetReader.h * @@ -8,28 +10,33 @@ #ifndef CONFIG_WIDGETREADER_H_ #define CONFIG_WIDGETREADER_H_ -#include +#include #include #include #include - -class Config_WidgetReader: public Config_XMLReader +/*! + * \class Config_WidgetReader + * \brief Class that dumps xml definitions of widgets for + * further processing in the WidgetFactory + */ +class Config_WidgetReader : public Config_XMLReader { -public: + public: CONFIG_EXPORT Config_WidgetReader(const std::string& theXmlFile); CONFIG_EXPORT virtual ~Config_WidgetReader(); CONFIG_EXPORT std::string featureWidgetCfg(const std::string& theFeatureName); CONFIG_EXPORT std::string featureDescription(const std::string& theFeatureName); -protected: + protected: void processNode(xmlNodePtr theNode); bool processChildren(xmlNodePtr theNode); std::string dumpNode(xmlNodePtr theNode); + void resolveSourceNodes(xmlNodePtr theNode); -private: + private: std::map myWidgetCache; std::map myDescriptionCache;