OpenLexocad  27.1
PropertySetManager.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 
5 namespace Core
6 {
7 class Property;
8 class PropertyContainer;
9 
10 class LX_CORE_EXPORT PropertySetManager
11 {
12 public:
13  static bool addToContainer(const std::vector<PropertyContainer*>& containers, const QString& xmlname);
14 
15 private:
16  static PropertySetManager* _instance;
17  std::vector<PropertyContainer*> _containers;
18 
21 
22  void _clear();
23  bool _addPropertyToContainer(Core::Property* prop, std::string& pName, PropertyContainer* pc);
24 
25  bool _load(const QString fname);
26 
27  bool _processAllowedContainers(const QDomElement elem);
28 
29  void _processProperty(const QDomElement elem, QString& name, QString& type);
30 
31  void _processPropertyText(const QDomElement elem, const QString name);
32  void _processPropertyEnum(const QDomElement elem, const QString name);
33 };
34 
35 } // namespace Core
Definition: PropertyContainer.h:107
Core::PropertyText name
Definition: CoreDocument.h:167
Definition: PropertySetManager.h:10
Definition: Base.h:12
Definition: Property.h:77