Persistence: Implement dumping of binary content
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<DeveloperDocu>This is the Persistence class</DeveloperDocu>
|
||||
<UserDocu>This is a persistence class</UserDocu>
|
||||
</Documentation>
|
||||
<Attribute Name="Content" ReadOnly="false">
|
||||
<Attribute Name="Content" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Content of the object in XML representation</UserDocu>
|
||||
</Documentation>
|
||||
@@ -26,5 +26,22 @@
|
||||
</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>
|
||||
</GenerateModel>
|
||||
|
||||
Reference in New Issue
Block a user