X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_WidgetReader.h;h=783f2aa45739472641ee554d029dd9324a38a1fc;hb=60e95a5502a6940c6c27ce5d561b3c684b0b0a4f;hp=58fd904b062024a8658865e7b75d67f0e5748f3e;hpb=401394b2e312e5c4ecd6a410b90eb2c159a675bf;p=modules%2Fshaper.git diff --git a/src/Config/Config_WidgetReader.h b/src/Config/Config_WidgetReader.h index 58fd904b0..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,27 +10,35 @@ #ifndef CONFIG_WIDGETREADER_H_ #define CONFIG_WIDGETREADER_H_ -#include +#include #include #include #include - -class CONFIG_EXPORT 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: - Config_WidgetReader(const std::string& theXmlFile); - virtual ~Config_WidgetReader(); + public: + CONFIG_EXPORT Config_WidgetReader(const std::string& theXmlFile); + CONFIG_EXPORT virtual ~Config_WidgetReader(); - std::string featureWidgetCfg(std::string theFeatureName); + 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; };