FreeCAD

Форк
0
/
StringHasherPy.xml 
70 строк · 2.8 Кб
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="StringHasherPy" 
6
        Twin="StringHasher" 
7
        TwinPointer="StringHasher" 
8
        Include="App/StringHasher.h" 
9
        FatherInclude="Base/BaseClassPy.h" 
10
        Namespace="App" 
11
        FatherNamespace="Base"
12
        Constructor="true"
13
        Reference="true">
14
        <Documentation>
15
            <Author Licence="LGPL" Name="Zheng, Lei" EMail="realthunder.dev@gmail.com" />
16
            <DeveloperDocu>This is the StringHasher class</DeveloperDocu>
17
            <UserDocu>This is the StringHasher class</UserDocu>
18
        </Documentation>
19
        <Methode Name="getID">
20
            <Documentation>
21
                <UserDocu>
22
getID(txt|id, base64=False) -> StringID
23

24
If the input is text, return a StringID object that is unique within this hasher. This
25
StringID object is reference counted. The hasher may only save hash ID's that are used.
26

27
If the input is an integer, then the hasher will try to find the StringID object stored
28
with the same integer value. 
29

30
base64: indicate if the input 'txt' is base64 encoded binary data
31
                </UserDocu>
32
            </Documentation>
33
        </Methode>
34
        <Methode Name="isSame" Const="true">
35
            <Documentation>
36
                <UserDocu>Check if two hasher are the same</UserDocu>
37
            </Documentation>
38
        </Methode>
39
        <Attribute Name="Count" ReadOnly="true">
40
            <Documentation>
41
                <UserDocu>Return count of used hashes</UserDocu>
42
            </Documentation>
43
            <Parameter Name="Count" Type="Int" />
44
        </Attribute>
45
        <Attribute Name="Size" ReadOnly="true">
46
            <Documentation>
47
                <UserDocu>Return the size of the hashes</UserDocu>
48
            </Documentation>
49
            <Parameter Name="Size" Type="Int"/>
50
        </Attribute>
51
        <Attribute Name="SaveAll">
52
            <Documentation>
53
                <UserDocu>Whether to save all string hashes regardless of its use count</UserDocu>
54
            </Documentation>
55
            <Parameter Name="SaveAll" Type="Boolean"/>
56
        </Attribute>
57
        <Attribute Name="Threshold">
58
            <Documentation>
59
                <UserDocu>Data length exceed this threshold will be hashed before storing</UserDocu>
60
            </Documentation>
61
            <Parameter Name="Threshold" Type="Int"/>
62
        </Attribute>
63
        <Attribute Name="Table" ReadOnly="true">
64
            <Documentation>
65
                <UserDocu>Return the entire string table as Int->String dictionary</UserDocu>
66
            </Documentation>
67
            <Parameter Name="Table" Type="Dict"/>
68
        </Attribute>
69
    </PythonExport>
70
</GenerateModel>
71

72

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

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

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

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