OpenLexocad  27.1
PropertyMD5.h
Go to the documentation of this file.
1 // //
3 // LEXOCAD API //
4 // //
5 // ©2005-2016 Cadwork Informatik. All rights reserved. //
6 // //
7 // ONLY INCLUDE OTHER INTERFACES! //
8 // Lexocad provides API Classes for public use and //
9 // Implementation Classes for private use. //
10 // //
11 // - Do ONLY include and use the LEXOCAD API in this header. //
12 // - Do not change existing interfaces. //
13 // - Document your code! //
14 // //
15 // - All types from Base, Core, Geom, Topo are allowed here. //
16 // - In the Gui modules the use of Qt types is allowed. //
17 // //
19 
20 #pragma once
21 
22 #include <Base/md5.h>
23 
24 #include <list>
25 
26 #include "Core/Property.h"
27 #include "Core/Variant.h"
28 
29 
30 namespace Core
31 {
32 class Geometry;
33 class Element;
34 class Object;
35 
36 class LX_CORE_EXPORT PropertyMD5 : public Core::Property
37 {
39 
40 public:
41  PropertyMD5(void);
42  virtual ~PropertyMD5(void);
43 
44  void setValue(const MD5& md5);
45 
46  bool setValueFromVariant(const Core::Variant& value);
47  void copyValue(Core::Property* p);
48 
49  const MD5& getValue() const;
50 
51  Core::Variant getVariant(void) const;
52 
53  virtual void save(Base::AbstractWriter& writer, Base::PersistenceVersion& save_version);
54  virtual void restore(Base::AbstractXMLReader& reader, Base::PersistenceVersion& version);
55  virtual bool isEqual(const Property*) const;
56  virtual Core::Property* copy(void) const override;
57  virtual void paste(const Core::Property& from) override;
58 
59 protected:
61 };
62 
63 
64 DECLARE_PROPERTY_FACTORY(PropertyMD5_Factory, Core::PropertyMD5);
65 
66 } // namespace Core
Definition: Persistence.h:14
Definition: md5.h:69
Definition: PropertyMD5.h:36
LX_CORE_EXPORT Version & version
Definition: Variant.h:87
Definition: AbstractXMLReader.h:7
Definition: Base.h:12
Definition: Writer.h:16
Definition: Property.h:77
MD5 _md5
Definition: PropertyMD5.h:60
TYPESYSTEM_HEADER()
DECLARE_PROPERTY_FACTORY(PropertyAxis1_Factory, Core::PropertyAxis1)