PrimitiveDataType

class PrimitiveDataType(primitiveDataType)[source]

Bases: object

A class for the PrimitiveDataType enumeration.

Attributes Summary

FLOAT32_TYPE

FLOAT64_TYPE

INT16_TYPE

INT32_TYPE

INT64_TYPE

Methods Summary

from_int(i)

Return a PrimitiveDataType from an integration matching an enumeration.

getName()

Return the name of this enumeration.

getValue()

Return the integer value of this enumeration.

literal(name)

Return the PrimitiveDataType enumerator value given a string

name(primitiveDataType)

Returns the string form of primitiveDataType

names()

Return the list of all known PrimitiveDataType enumeration names

newPrimitiveDataType(name)

Equivalent to the literal method

revision()

revision as a string.

size()

the number of known enumerators in PrimitiveDataType

version()

the major version number as an int.

Attributes Documentation

FLOAT32_TYPE = <pyasdm.enumerations.PrimitiveDataType.PrimitiveDataType object>
FLOAT64_TYPE = <pyasdm.enumerations.PrimitiveDataType.PrimitiveDataType object>
INT16_TYPE = <pyasdm.enumerations.PrimitiveDataType.PrimitiveDataType object>
INT32_TYPE = <pyasdm.enumerations.PrimitiveDataType.PrimitiveDataType object>
INT64_TYPE = <pyasdm.enumerations.PrimitiveDataType.PrimitiveDataType object>

Methods Documentation

static from_int(i)[source]

Return a PrimitiveDataType from an integration matching an enumeration.

getName()[source]

Return the name of this enumeration.

getValue()[source]

Return the integer value of this enumeration.

static literal(name)[source]

Return the PrimitiveDataType enumerator value given a string

static name(primitiveDataType)[source]

Returns the string form of primitiveDataType

static names()[source]

Return the list of all known PrimitiveDataType enumeration names

static newPrimitiveDataType(name)[source]

Equivalent to the literal method

static revision()[source]

revision as a string.

static size()[source]

the number of known enumerators in PrimitiveDataType

static version()[source]

the major version number as an int.