Wp.SpaPodParser¶
Fields¶
None
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Wp.SpaPodParser¶
- classmethod new_object(pod, id_name)¶
- Parameters:
- Returns:
The new spa pod parser
- Return type:
Creates an object spa pod parser. The pod object must be valid for the entire life-cycle of the returned parser.
- classmethod new_struct(pod)¶
- Parameters:
pod (
Wp.SpaPod
) – the struct spa pod to parse- Returns:
The new spa pod parser
- Return type:
Creates an struct spa pod parser. The pod object must be valid for the entire life-cycle of the returned parser.
- end()¶
Ends the parser process.
- get_boolean()¶
-
Gets the boolean value from a spa pod parser.
- get_bytes()¶
- Returns:
True
if the value was obtained,False
otherwise- value:
the bytes value
- len:
the length of the bytes value
- Return type:
Gets the bytes value and its length from a spa pod parser object.
- get_double()¶
-
Gets the double value from a spa pod parser object.
- get_fd()¶
-
Gets the Fd value from a spa pod parser object.
- get_float()¶
-
Gets the float value from a spa pod parser object.
- get_fraction()¶
- Returns:
True
if the value was obtained,False
otherwise- num:
the fractions’s numerator value
- denom:
the fractions’s denominator value
- Return type:
Gets the fractions’s numerator and denominator value from a spa pod parser object.
- get_id()¶
-
Gets the Id value from a spa pod parser object.
- get_int()¶
-
Gets the int value from a spa pod parser object.
- get_long()¶
-
Gets the long value from a spa pod parser object.
- get_pod()¶
-
Gets the spa pod value from a spa pod parser object.
- get_pointer()¶
-
Gets the pointer value and its type name from a spa pod parser object.
- get_rectangle()¶
- Returns:
True
if the value was obtained,False
otherwise- width:
the rectangle’s width value
- height:
the rectangle’s height value
- Return type:
Gets the rectangle’s width and height value from a spa pod parser object.
- get_string()¶
-
Gets the string value from a spa pod parser object.
- ref()¶
- Returns:
self with an additional reference count on it
- Return type:
Increases the reference count of a spa pod parser.
- unref()¶
Decreases the reference count on self and frees it when the ref count reaches zero.