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
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): """
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)
class DataType1(DataType): f = dataobject.TypedAttribute(float) s = dataobject.TypedAttribute(str)
class DictObject(dataobject.DataObject): name = dataobject.TypedAttribute(str) rdict = dataobject.TypedAttribute(dict)
class TupleObject(dataobject.DataObject): name = dataobject.TypedAttribute(str) rtuple = dataobject.TypedAttribute(tuple)
class SetObject(dataobject.DataObject): name = dataobject.TypedAttribute(str) rset = dataobject.TypedAttribute(set)
class Inherit0(dataobject.DataObject): inherit0 = dataobject.TypedAttribute(str, '0')
class BinaryObject(dataobject.DataObject): name = dataobject.TypedAttribute(str) binary = dataobject.TypedAttribute(str)
class Inherit3(Inherit2): inherit3 = dataobject.TypedAttribute(str, '3')
class Inherit2(Inherit1): inherit2 = dataobject.TypedAttribute(str, '2')
class Inherit1(Inherit0): inherit1 = dataobject.TypedAttribute(str, '1')
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')
class DataType2(DataType): i = dataobject.TypedAttribute(int) b = dataobject.TypedAttribute(bool)
class ListObject(dataobject.DataObject): name = dataobject.TypedAttribute(str) rlist = dataobject.TypedAttribute(list)
class DataContainer(dataobject.DataObject): name = dataobject.TypedAttribute(str) dt = dataobject.TypedAttribute(DataType)
class Identity(dataobject.DataObject): name = dataobject.TypedAttribute(str) age = dataobject.TypedAttribute(int) email = dataobject.TypedAttribute(str)