48 lines
2.1 KiB
XML
48 lines
2.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
|
<PythonExport
|
|
Father="BaseClassPy"
|
|
Name="PersistencePy"
|
|
Twin="Persistence"
|
|
TwinPointer="Persistence"
|
|
Include="Base/Persistence.h"
|
|
FatherInclude="Base/BaseClassPy.h"
|
|
Namespace="Base"
|
|
FatherNamespace="Base">
|
|
<Documentation>
|
|
<Author Licence="LGPL" Name="Juergen Riegel" EMail="FreeCAD@juergen-riegel.net" />
|
|
<DeveloperDocu>This is the Persistence class</DeveloperDocu>
|
|
<UserDocu>This is a persistence class</UserDocu>
|
|
</Documentation>
|
|
<Attribute Name="Content" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Content of the object in XML representation</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Content" Type="String" />
|
|
</Attribute>
|
|
<Attribute Name="MemSize" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Memory size of the object in byte</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="MemSize" Type="Int"/>
|
|
</Attribute>
|
|
<Methode Name="dumpContent" Keyword="true" Const="true">
|
|
<Documentation>
|
|
<UserDocu>Dumps the content of the object, both the XML representation as well as the additional datafiles
|
|
required, into a byte representation. It will be returned as byte array.
|
|
dumpContent() -- returns a byte array with full content
|
|
dumpContent(Compression=1-9) -- Sets the data compression from 0 (no) to 9 (max)
|
|
</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="restoreContent">
|
|
<Documentation>
|
|
<UserDocu>Restore the content of the object from a byte representation as stored by \"dumpContent\".
|
|
It could be restored from any python object implementing the buffer protocol.
|
|
restoreContent(buffer) -- restores from the given byte array
|
|
</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
</PythonExport>
|
|
</GenerateModel>
|