sarkit.cphd.DefinedPvpType

class DefinedPvpType(format_string)

Transcoder for per-vector parameter (PVP) XML parameter types with a fixed size and format.

Similar to PvpType, except dtype and size are optional when using set_elem

Parameters:
format_stringstr

Binary format string that defines the PVP’s Format

Methods

make_elem(tag, val)

Create a new XML element.

parse_elem(elem)

Returns a dict containing the sequence of subelements encoded in elem.

parse_subelements(elem)

Returns an array containing the sub-elements encoded in elem.

set_elem(elem, val)

Sets elem node using the sequence of subelements in the dict val.

set_subelements(elem, val)

Set elem node subelements using val.