Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIx for issue #360 : make switching on/off checking of transactions in Session -...
[modules/shaper.git]
/
src
/
Config
/
Config_WidgetReader.h
diff --git
a/src/Config/Config_WidgetReader.h
b/src/Config/Config_WidgetReader.h
index 58fd904b062024a8658865e7b75d67f0e5748f3e..783f2aa45739472641ee554d029dd9324a38a1fc 100644
(file)
--- 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
*
/*
* Config_WidgetReader.h
*
@@
-8,27
+10,35
@@
#ifndef CONFIG_WIDGETREADER_H_
#define CONFIG_WIDGETREADER_H_
#ifndef CONFIG_WIDGETREADER_H_
#define CONFIG_WIDGETREADER_H_
-#include <Config.h>
+#include <Config
_def
.h>
#include <Config_XMLReader.h>
#include <map>
#include <string>
#include <Config_XMLReader.h>
#include <map>
#include <string>
-
-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:
+ C
ONFIG_EXPORT C
onfig_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);
void processNode(xmlNodePtr theNode);
bool processChildren(xmlNodePtr theNode);
+ std::string dumpNode(xmlNodePtr theNode);
+ void resolveSourceNodes(xmlNodePtr theNode);
-private:
+
private:
std::map<std::string, std::string> myWidgetCache;
std::map<std::string, std::string> myWidgetCache;
+ std::map<std::string, std::string> myDescriptionCache;
};
};