OpenLexocad  27.0
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 
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
#define CORE_EXPORT
Definition: core_defines2.h:10
Definition: PropertyContainer.h:101
Core::PropertyText name
Definition: CoreDocument.h:143
Definition: PropertyDefinition.h:14
Definition: Type.h:56
Definition: Variant.h:90
Definition: Base.h:19