示例#1
0
 def descriptor(cls) -> ClusterObjects.ClusterObjectDescriptor:
     return ClusterObjects.ClusterObjectDescriptor(Fields=[
         ClusterObjects.ClusterObjectFieldDescriptor(
             Label="X", Tag=0, Type=uint, IsArray=True),
         ClusterObjects.ClusterObjectFieldDescriptor(
             Label="Y", Tag=1, Type=int),
     ])
 def descriptor(cls) -> ClusterObjects.ClusterObjectDescriptor:
     return ClusterObjects.ClusterObjectDescriptor(
         Fields=[
             ClusterObjects.ClusterObjectFieldDescriptor(
                 Label="X", Tag=0, Type=typing.List[uint]),
             ClusterObjects.ClusterObjectFieldDescriptor(
                 Label="Y", Tag=1, Type=int),
         ])
示例#3
0
 def descriptor(cls) -> ClusterObjects.ClusterObjectDescriptor:
     return ClusterObjects.ClusterObjectDescriptor(Fields=[
         ClusterObjects.ClusterObjectFieldDescriptor(
             Label="X", Tag=0, Type=str),
         ClusterObjects.ClusterObjectFieldDescriptor(
             Label="Y", Tag=1, Type=TestClusterObjects.C),
         ClusterObjects.ClusterObjectFieldDescriptor(
             Label="Z", Tag=2, Type=bytes),
     ])
 def descriptor(cls) -> ClusterObjects.ClusterObjectDescriptor:
     return ClusterObjects.ClusterObjectDescriptor(
         Fields=[
             ClusterObjects.ClusterObjectFieldDescriptor(
                 Label="X", Tag=0, Type=typing.List[str]),
             ClusterObjects.ClusterObjectFieldDescriptor(
                 Label="Y", Tag=1, Type=typing.List[TestClusterObjects.C]),
             ClusterObjects.ClusterObjectFieldDescriptor(
                 Label="Z", Tag=2, Type=typing.List[TestClusterObjects.StructWithArray]),
             # Recursive!
             ClusterObjects.ClusterObjectFieldDescriptor(
                 Label="W", Tag=3, Type=typing.List[TestClusterObjects.StructWithArrayOfStructWithArray]),
         ])
示例#5
0
 def descriptor(cls) -> ClusterObjects.ClusterObjectDescriptor:
     return ClusterObjects.ClusterObjectDescriptor(Fields=[
         ClusterObjects.ClusterObjectFieldDescriptor(
             Label="X", Tag=0, Type=str, IsArray=True),
         ClusterObjects.ClusterObjectFieldDescriptor(
             Label="Y", Tag=1, Type=TestClusterObjects.C, IsArray=True),
         ClusterObjects.ClusterObjectFieldDescriptor(
             Label="Z",
             Tag=2,
             Type=TestClusterObjects.StructWithArray,
             IsArray=True),
         # Recursive!
         ClusterObjects.ClusterObjectFieldDescriptor(
             Label="W",
             Tag=3,
             Type=TestClusterObjects.StructWithArrayOfStructWithArray,
             IsArray=True),
     ])
 def attribute_type(cls) -> ClusterObjects.ClusterObjectFieldDescriptor:
     return ClusterObjects.ClusterObjectFieldDescriptor(Type=typing.List[int])
 def attribute_type(cls) -> ClusterObjects.ClusterObjectFieldDescriptor:
     return ClusterObjects.ClusterObjectFieldDescriptor(Type=TestClusterObjects.C)
示例#8
0
 def attribute_type(cls) -> ClusterObjects.ClusterObjectFieldDescriptor:
     return ClusterObjects.ClusterObjectFieldDescriptor(Type=int,
                                                        IsArray=True)