FreeCAD

Форк
0
/
PersistencePy.xml 
54 строки · 2.1 Кб
1
<?xml version="1.0" encoding="UTF-8"?>
2
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
3
  <PythonExport
4
      Father="BaseClassPy"
5
      Name="PersistencePy"
6
      Twin="Persistence"
7
      TwinPointer="Persistence"
8
      Include="Base/Persistence.h"
9
      FatherInclude="Base/BaseClassPy.h"
10
      Namespace="Base"
11
      FatherNamespace="Base">
12
    <Documentation>
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.
16

17
Class to dump and restore the content of an object.</UserDocu>
18
    </Documentation>
19
    <Attribute Name="Content" ReadOnly="true">
20
      <Documentation>
21
        <UserDocu>Content of the object in XML representation.</UserDocu>
22
      </Documentation>
23
      <Parameter Name="Content" Type="String" />
24
    </Attribute>
25
    <Attribute Name="MemSize" ReadOnly="true">
26
      <Documentation>
27
        <UserDocu>Memory size of the object in bytes.</UserDocu>
28
      </Documentation>
29
      <Parameter Name="MemSize" Type="Int"/>
30
    </Attribute>
31
    <Methode Name="dumpContent" Keyword="true" Const="true">
32
            <Documentation>
33
                <UserDocu>dumpContent(Compression=3) -> bytearray
34

35
Dumps the content of the object, both the XML representation and the additional
36
data files required, into a byte representation.
37

38
Compression : int
39
    Set the data compression level in the range [0,9]. Set to 0 for no compression.</UserDocu>
40
            </Documentation>
41
    </Methode>
42
    <Methode Name="restoreContent">
43
            <Documentation>
44
                <UserDocu>restoreContent(obj) -> None
45

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.
48

49
obj : buffer
50
    Object with buffer protocol support.</UserDocu>
51
            </Documentation>
52
    </Methode>
53
  </PythonExport>
54
</GenerateModel>
55

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.