OpenLexocad  27.1
PropertyDefinition.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <Base/Base.h>
5 
6 #include <string>
7 
8 #include "Core/Variant.h"
9 
10 namespace Core
11 {
12 class PropertyContainer;
13 
14 class LX_CORE_EXPORT PropertyDefinition
15 {
16 public:
19 
20  void setName(const std::string& name, Core::PropertyContainer* pc);
21  void setType(Base::Type t);
22  const std::string& getName() const;
23  Base::Type getType() const;
24  const Core::Variant& getDefaultValue() const;
25 
26 private:
27  std::string _name;
28  Base::Type _type;
29 };
30 
31 } // namespace Core
Definition: PropertyContainer.h:107
Core::PropertyText name
Definition: CoreDocument.h:167
Definition: PropertyDefinition.h:14
Definition: Type.h:52
Definition: Variant.h:87
Definition: Base.h:12