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, exceptdtypeandsizeare optional when usingset_elem- Parameters:
- format_string
str Binary format string that defines the PVP’s Format
- format_string
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
elemnode using the sequence of subelements in the dictval.set_subelements(elem, val)Set
elemnode subelements usingval.