X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_WidgetReader.h;h=a95d8b805b154302decb362ca6c23d1111e5d2d5;hb=22df2f3d52b661c4cffef91085300cffc02dfa65;hp=ab60f4278d7dd63fe6163c9d4a2903445f8ab82a;hpb=38afbd899a8645c83e17f2c24a17a2b7414911b4;p=modules%2Fshaper.git diff --git a/src/Config/Config_WidgetReader.h b/src/Config/Config_WidgetReader.h index ab60f4278..a95d8b805 100644 --- a/src/Config/Config_WidgetReader.h +++ b/src/Config/Config_WidgetReader.h @@ -16,18 +16,35 @@ #include #include +/*! + * \class Config_WidgetReader + * \ingroup Config + * \brief Class that dumps xml definitions of widgets for + * further processing in the WidgetFactory + */ class Config_WidgetReader : public Config_XMLReader { 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); + /*! + * Constructor + * \param theXmlFile - full path to the xml file which will be processed by the reader + */ + CONFIG_EXPORT Config_WidgetReader(const std::string& theXmlFile); + CONFIG_EXPORT virtual ~Config_WidgetReader(); + + /// Extract feature's widget configuration from local cache, stored on node processing + CONFIG_EXPORT std::string featureWidgetCfg(const std::string& theFeatureName); + /// Extract feature's description from local cache, stored on node processing + CONFIG_EXPORT std::string featureDescription(const std::string& theFeatureName); protected: + /// Overloaded method. Defines how to process each node void processNode(xmlNodePtr theNode); + /// Overloaded method. Defines if the given node should be parsed recursively bool processChildren(xmlNodePtr theNode); + /// Extracts xml definition of the given node and it's children std::string dumpNode(xmlNodePtr theNode); + /// Replace all "source" nodes with their content (used before dumping nodes) void resolveSourceNodes(xmlNodePtr theNode); private: