pmHeapDump::PmTypeInfo Class Reference

List of all members.

Public Member Functions

def __init__

Public Attributes

 name
 fields


Detailed Description

Model of an object type

Definition at line 95 of file pmHeapDump.py.


Member Function Documentation

def pmHeapDump::PmTypeInfo::__init__ (   self,
  name,
  fmt 
)

Initializes a new object type from name and a format string
The format consist of a list of field name, type and optionnal multiplicity
fmt = "fieldname1:fieldtype1[:multiplicity1],fieldname2:fieldtype2[:multiplicity2],..."
where:
fieldname : a string naming a field...
    fieldtype : a type understand by python struct [c, b, B, ?, h, H, i, I, l, L, q, Q, f, d, s, p, P] or '.' for a bit
P (pointer) is translated to the correct size based on the dump header information
    multiplicity : number of item for a list. multiplicity can be:
any positive integer
a string naming a field already described
    Multiplicity can also specify:
'*' to read as much as possible in the limit of the size object
'<name' to read as long as memory offset is lower than then value of field name

Definition at line 99 of file pmHeapDump.py.


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

Generated on Mon Oct 18 07:40:50 2010 for Python-on-a-chip by  doxygen 1.5.9