Debian Codegraph @

src/App/StringID.pyi

raw
1 from Base.Metadata import export, constmethod, class_declarations
2 from Base.BaseClass import BaseClass
3 from typing import Any, Final, List
4
5
6 @export(
7 Include="App/StringHasher.h",
8 Reference=True,
9 )
10 @class_declarations("""private:
11 friend class StringID;
12 int _index = 0;
13 """
14 )
15 class StringID(BaseClass):
16 """
17 This is the StringID class
18
19 Author: Zheng, Lei ([email protected])
20 Licence: LGPL
21 """
22
23 @constmethod
24 def isSame(self, other: "StringID") -> bool:
25 """
26 Check if two StringIDs are the same
27 """
28 ...
29
30 Value: Final[int] = 0
31 """Return the integer value of this ID"""
32
33 Related: Final[List[Any]] = []
34 """Return the related string IDs"""
35
36 Data: Final[str] = ""
37 """Return the data associated with this ID"""
38
39 IsBinary: Final[bool] = False
40 """Check if the data is binary,"""
41
42 IsHashed: Final[bool] = False
43 """Check if the data is hash, if so 'Data' returns a base64 encoded string of the raw hash"""
44
45 Index: int = 0
46 """Geometry index. Only meaningful for geometry element name"""