Cattle.Configuration¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Get/set debug support |
||
r/w |
Get/set end of input action |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Cattle.Configuration(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Opaque data structure representing a configuration. It should never be accessed directly.
- classmethod new()[source]¶
- Returns:
a new
Cattle.Configuration
- Return type:
Create and initialize a new configuration.
A single configuration object can be shared between multiple interpreters, but modifying it while an interpreter is running can lead to unexpected and unpredictable results.
- get_debug_is_enabled()[source]¶
-
Get the current status of the debugging support. See
Cattle.Configuration.set_debug_is_enabled
().
- get_end_of_input_action()[source]¶
- Returns:
the current action
- Return type:
Get the action to be performed when the end of input is reached. See
Cattle.Configuration.set_end_of_input_action
().
- set_debug_is_enabled(enabled)[source]¶
-
Set the status of the debugging support. It is disabled by default.
If debugging is disabled, instructions whose value is
Cattle.InstructionValue.DEBUG
will be ignored by the interpreter.
- set_end_of_input_action(action)[source]¶
- Parameters:
action (
Cattle.EndOfInputAction
) – the action to be performed
Set the action to be performed when the end of input is reached.
Accepted values are from the
Cattle.EndOfInputAction
enumeration.
Property Details¶
- Cattle.Configuration.props.debug_is_enabled¶
-
If
False
, instructions whose value isCattle.InstructionValue.DEBUG
are not executed by the interpreter.Changes to this property are not notified.
- Cattle.Configuration.props.end_of_input_action¶
- Name:
end-of-input-action
- Type:
- Default Value:
- Flags:
Action to be performed when the end of input is reached.
Changes to this property are not notified.