Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes | List of all members
pyuavcan_v0.dsdl.parser.Type Class Reference
Inheritance diagram for pyuavcan_v0.dsdl.parser.Type:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, full_name, category)
 
def __str__ (self)
 
def get_data_type_signature (self)
 
def get_max_bitlen (self)
 
def get_min_bitlen (self)
 
def get_normalized_definition (self)
 

Public Attributes

 category
 
 full_name
 

Static Public Attributes

int CATEGORY_ARRAY = 1
 
int CATEGORY_COMPOUND = 2
 
int CATEGORY_PRIMITIVE = 0
 
int CATEGORY_VOID = 3
 

Static Private Attributes

def __repr__ = __str__
 

Detailed Description

Common type description. The specialized type description classes inherit from this one.
Fields:
    full_name    Full type name string, e.g. "pyuavcan_v0.protocol.NodeStatus"
    category     Any CATEGORY_*

Definition at line 40 of file parser.py.

Constructor & Destructor Documentation

◆ __init__()

def pyuavcan_v0.dsdl.parser.Type.__init__ (   self,
  full_name,
  category 
)

Definition at line 52 of file parser.py.

Member Function Documentation

◆ __str__()

def pyuavcan_v0.dsdl.parser.Type.__str__ (   self)

Definition at line 56 of file parser.py.

◆ get_data_type_signature()

def pyuavcan_v0.dsdl.parser.Type.get_data_type_signature (   self)

Reimplemented in pyuavcan_v0.dsdl.parser.CompoundType, and pyuavcan_v0.dsdl.parser.ArrayType.

Definition at line 59 of file parser.py.

◆ get_max_bitlen()

def pyuavcan_v0.dsdl.parser.Type.get_max_bitlen (   self)

◆ get_min_bitlen()

def pyuavcan_v0.dsdl.parser.Type.get_min_bitlen (   self)

◆ get_normalized_definition()

def pyuavcan_v0.dsdl.parser.Type.get_normalized_definition (   self)

Member Data Documentation

◆ __repr__

def pyuavcan_v0.dsdl.parser.Type.__repr__ = __str__
staticprivate

Definition at line 71 of file parser.py.

◆ category

pyuavcan_v0.dsdl.parser.Type.category

Definition at line 54 of file parser.py.

◆ CATEGORY_ARRAY

int pyuavcan_v0.dsdl.parser.Type.CATEGORY_ARRAY = 1
static

Definition at line 48 of file parser.py.

◆ CATEGORY_COMPOUND

int pyuavcan_v0.dsdl.parser.Type.CATEGORY_COMPOUND = 2
static

Definition at line 49 of file parser.py.

◆ CATEGORY_PRIMITIVE

int pyuavcan_v0.dsdl.parser.Type.CATEGORY_PRIMITIVE = 0
static

Definition at line 47 of file parser.py.

◆ CATEGORY_VOID

int pyuavcan_v0.dsdl.parser.Type.CATEGORY_VOID = 3
static

Definition at line 50 of file parser.py.

◆ full_name

pyuavcan_v0.dsdl.parser.Type.full_name

Definition at line 53 of file parser.py.


The documentation for this class was generated from the following file:


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:04