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