OpenLexocad  28.0
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 <Core/Property.h>
23 
24 
25 namespace Core
26 {
27 
28 class LX_CORE_EXPORT PropertyMD5 : public Core::Property
29 {
31 
32 public:
33  void setValue(const MD5& md5);
34 
35  bool setValueFromVariant(const Core::Variant& value);
37 
38  const MD5& getValue() const;
39 
41 
42  virtual void save(Base::AbstractWriter& writer, Base::PersistenceVersion& save_version);
44  virtual bool isEqual(const Property*) const;
45  virtual Core::Property* copy(void) const override;
46  virtual void paste(const Core::Property& from) override;
47 
48 protected:
50 };
51 
52 
54 
55 } // namespace Core
Property.h
Core::PropertyMD5::isEqual
virtual bool isEqual(const Property *) const
compare properties
Core::PropertyMD5::copy
virtual Core::Property * copy(void) const override
Returns a new copy of the property (mainly for Undo/Redo and transactions). The copy has no container...
Core::PropertyMD5::copyValue
void copyValue(Core::Property *p)
Core::PropertyMD5::setValueFromVariant
bool setValueFromVariant(const Core::Variant &value)
Base::PersistenceVersion
Definition: Persistence.h:13
Core::PropertyMD5::setValue
void setValue(const MD5 &md5)
Core
Definition: Base.h:5
Core::Variant
Definition: Variant.h:78
MD5
Definition: md5.h:70
Base::AbstractWriter
Definition: Writer.h:13
Core::PropertyMD5::paste
virtual void paste(const Core::Property &from) override
Paste the value from the property (mainly for Undo/Redo and transactions)
Core::PropertyMD5::getVariant
Core::Variant getVariant(void) const
Base::AbstractXMLReader
Definition: AbstractXMLReader.h:7
Core::PropertyMD5::restore
virtual void restore(Base::AbstractXMLReader &reader, Base::PersistenceVersion &version)
This method is used to restore properties from an XML document.
Core::PropertyMD5::save
virtual void save(Base::AbstractWriter &writer, Base::PersistenceVersion &save_version)
This method is used to save properties or very small amounts of data to an XML document.
Core::PropertyMD5::getValue
const MD5 & getValue() const
Core::version
LX_CORE_EXPORT Version & version
Core::Property
Definition: Property.h:72
Core::PropertyMD5
Definition: PropertyMD5.h:29
Core::PropertyMD5::_md5
MD5 _md5
Definition: PropertyMD5.h:49
TYPESYSTEM_HEADER
#define TYPESYSTEM_HEADER()
define for subclassing Base::BaseClass
Definition: Base.h:12
Core::DECLARE_PROPERTY_FACTORY
DECLARE_PROPERTY_FACTORY(PropertyAxis1_Factory, Core::PropertyAxis1)