deviceaccess.DataType

class deviceaccess.DataType

Bases: pybind11_object

The actual enum representing the data type. It is a plain enum so the data type class can be used like a class enum, i.e. types are identified for instance as DataType::int32.

__init__(self: deviceaccess.DataType, arg0: ChimeraTK::DataType::TheType) None

Methods

__init__(self, arg0)

getAsString(self)

Get the data type as string.

isIntegral(self)

Return whether the raw data type is an integer.

isNumeric(self)

Returns whether the data type is numeric.

isSigned(self)

Return whether the raw data type is signed.

Attributes

Boolean

Void

float32

float64

int16

int32

int64

int8

none

string

uint16

uint32

uint64

uint8

Boolean = <TheType.Boolean: 12>
class TheType

Bases: pybind11_object

Members:

none : The data type/concept does not exist, e.g. there is no raw transfer (do not confuse with Void)

int8

uint8

int16

uint16

int32

uint32

int64

uint64

float32

float64

string

Boolean

Void

Boolean = <TheType.Boolean: 12>
Void = <TheType.Void: 13>
__init__(self: deviceaccess.DataType.TheType, value: int) None
float32 = <TheType.float32: 9>
float64 = <TheType.float64: 10>
int16 = <TheType.int16: 3>
int32 = <TheType.int32: 5>
int64 = <TheType.int64: 7>
int8 = <TheType.int8: 1>
property name
none = <TheType.none: 0>
string = <TheType.string: 11>
uint16 = <TheType.uint16: 4>
uint32 = <TheType.uint32: 6>
uint64 = <TheType.uint64: 8>
uint8 = <TheType.uint8: 2>
property value
Void = <TheType.Void: 13>
__init__(self: deviceaccess.DataType, arg0: ChimeraTK::DataType::TheType) None
float32 = <TheType.float32: 9>
float64 = <TheType.float64: 10>
getAsString(self: deviceaccess.DataType) str

Get the data type as string.

Returns:

str: Data type as string.

int16 = <TheType.int16: 3>
int32 = <TheType.int32: 5>
int64 = <TheType.int64: 7>
int8 = <TheType.int8: 1>
isIntegral(self: deviceaccess.DataType) bool

Return whether the raw data type is an integer. False is also returned for non-numerical types and ‘none’.

Returns:

bool: True if the data type is an integer, false otherwise.

isNumeric(self: deviceaccess.DataType) bool

Returns whether the data type is numeric. Type ‘none’ returns false.

Returns:

bool: True if the data type is numeric, false otherwise.

isSigned(self: deviceaccess.DataType) bool

Return whether the raw data type is signed. True for signed integers and floating point types (currently only signed implementations). False otherwise (also for non-numerical types and ‘none’).

Returns:

bool: True if the data type is signed, false otherwise.

none = <TheType.none: 0>
string = <TheType.string: 11>
uint16 = <TheType.uint16: 4>
uint32 = <TheType.uint32: 6>
uint64 = <TheType.uint64: 8>
uint8 = <TheType.uint8: 2>