Salome HOME
Xml --> Widget processing added for "value" (spinbox) entities.
[modules/shaper.git] / src / Config / Config_WidgetAPI.h
1 /*
2  * Config_WidgetAPI.h
3  *
4  *  Created on: Apr 1, 2014
5  *      Author: sbh
6  */
7
8 #ifndef CONFIG_WIDGETAPI_H_
9 #define CONFIG_WIDGETAPI_H_
10
11 #include <Config.h>
12
13 #include <cstdarg>
14 #include <string>
15
16 //>> Forward declaration of xmlNodePtr.
17 typedef struct _xmlNode xmlNode;
18 typedef xmlNode *xmlNodePtr;
19 struct _xmlNode;
20 //<<
21
22 //>> Forward declaration of xmlDocPtr.
23 typedef struct _xmlDoc xmlDoc;
24 typedef xmlDoc *xmlDocPtr;
25 struct _xmlDoc;
26 //<<
27
28
29 class CONFIG_EXPORT Config_WidgetAPI
30 {
31 public:
32   Config_WidgetAPI(std::string theRawXml);
33   virtual ~Config_WidgetAPI();
34
35   void reset();
36   bool nextWidget();
37   std::string widgetType();
38   std::string getProperty(const char* thePropName);
39
40 protected:
41   bool isNode(xmlNodePtr theNode, const char* name, ...);
42
43 private:
44   xmlDocPtr myDoc;
45   xmlNodePtr myCurrentNode;
46
47 };
48
49 #endif /* CONFIG_WIDGETAPI_H_ */