Beispiel #1
0
class NestedObject(dataobject.DataObject):
    name = dataobject.TypedAttribute(str, 'stuff')
    rset = dataobject.TypedAttribute(SetObject)
    primary = dataobject.TypedAttribute(PrimaryTypesObject)

    dataobject.DataObject._types['PrimaryTypesObject'] = PrimaryTypesObject
    dataobject.DataObject._types['SetObject'] = SetObject
Beispiel #2
0
class InheritOver(Inherit210, Inherit3):
    inheritover = dataobject.TypedAttribute(str, 'a new one')
    inherit2 = dataobject.TypedAttribute(str, 'over')
    inherit0 = dataobject.TypedAttribute(str, 'over')

    #class InheritOverOver(Inherit210,InheritOver):
    """
Beispiel #3
0
class PrimaryTypesObject(SimpleObject):
    """
    @Brief PrimaryTypesObject inherits attributes from Simple Object
    """
    integer = dataobject.TypedAttribute(int, 5)
    floating = dataobject.TypedAttribute(float, 5.0)
    boolen = dataobject.TypedAttribute(bool, True)
Beispiel #4
0
class DataType1(DataType):
    f = dataobject.TypedAttribute(float)
    s = dataobject.TypedAttribute(str)
Beispiel #5
0
class DictObject(dataobject.DataObject):
    name = dataobject.TypedAttribute(str)
    rdict = dataobject.TypedAttribute(dict)
Beispiel #6
0
class TupleObject(dataobject.DataObject):
    name = dataobject.TypedAttribute(str)
    rtuple = dataobject.TypedAttribute(tuple)
Beispiel #7
0
class SetObject(dataobject.DataObject):
    name = dataobject.TypedAttribute(str)
    rset = dataobject.TypedAttribute(set)
Beispiel #8
0
class Inherit0(dataobject.DataObject):
    inherit0 = dataobject.TypedAttribute(str, '0')
Beispiel #9
0
class BinaryObject(dataobject.DataObject):
    name = dataobject.TypedAttribute(str)
    binary = dataobject.TypedAttribute(str)
Beispiel #10
0
class Inherit3(Inherit2):
    inherit3 = dataobject.TypedAttribute(str, '3')
Beispiel #11
0
class Inherit2(Inherit1):
    inherit2 = dataobject.TypedAttribute(str, '2')
Beispiel #12
0
class Inherit1(Inherit0):
    inherit1 = dataobject.TypedAttribute(str, '1')
Beispiel #13
0
class SimpleObject(dataobject.DataObject):
    """
    @Brief A simple data object to use as a base class
    """
    name = dataobject.TypedAttribute(str, 'blank')
    key = dataobject.TypedAttribute(str, 'xxx')
Beispiel #14
0
class DataType2(DataType):
    i = dataobject.TypedAttribute(int)
    b = dataobject.TypedAttribute(bool)
Beispiel #15
0
class ListObject(dataobject.DataObject):
    name = dataobject.TypedAttribute(str)
    rlist = dataobject.TypedAttribute(list)
Beispiel #16
0
class DataContainer(dataobject.DataObject):
    name = dataobject.TypedAttribute(str)
    dt = dataobject.TypedAttribute(DataType)
Beispiel #17
0
class Identity(dataobject.DataObject):
    name = dataobject.TypedAttribute(str)
    age = dataobject.TypedAttribute(int)
    email = dataobject.TypedAttribute(str)