1
<?xml version="1.0" encoding="UTF-8"?>
2
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
7
TwinPointer="Persistence"
8
Include="Base/Persistence.h"
9
FatherInclude="Base/BaseClassPy.h"
11
FatherNamespace="Base">
13
<Author Licence="LGPL" Name="Juergen Riegel" EMail="FreeCAD@juergen-riegel.net" />
14
<DeveloperDocu>This is the Persistence class</DeveloperDocu>
15
<UserDocu>Base.Persistence class.
17
Class to dump and restore the content of an object.</UserDocu>
19
<Attribute Name="Content" ReadOnly="true">
21
<UserDocu>Content of the object in XML representation.</UserDocu>
23
<Parameter Name="Content" Type="String" />
25
<Attribute Name="MemSize" ReadOnly="true">
27
<UserDocu>Memory size of the object in bytes.</UserDocu>
29
<Parameter Name="MemSize" Type="Int"/>
31
<Methode Name="dumpContent" Keyword="true" Const="true">
33
<UserDocu>dumpContent(Compression=3) -> bytearray
35
Dumps the content of the object, both the XML representation and the additional
36
data files required, into a byte representation.
39
Set the data compression level in the range [0,9]. Set to 0 for no compression.</UserDocu>
42
<Methode Name="restoreContent">
44
<UserDocu>restoreContent(obj) -> None
46
Restore the content of the object from a byte representation as stored by `dumpContent`.
47
It could be restored from any Python object implementing the buffer protocol.
50
Object with buffer protocol support.</UserDocu>