Definition at line 34 of file Configurable.py.
◆ __init__()
| python.Configurable.ConfigurableCABehavior.__init__ |
( |
| self, |
|
|
| target_state = True ) |
Definition at line 35 of file Configurable.py.
35 def __init__(self, target_state=True):
36 self._target_state = target_state
37 self._previous_state = None
◆ __enter__()
| python.Configurable.ConfigurableCABehavior.__enter__ |
( |
| self | ) |
|
Definition at line 38 of file Configurable.py.
38 def __enter__(self):
39 self._previous_state = Configurable._useGlobalInstances
40
41 Configurable._useGlobalInstances = not self._target_state
◆ __exit__()
| python.Configurable.ConfigurableCABehavior.__exit__ |
( |
| self, |
|
|
| exception_type, |
|
|
| exception_value, |
|
|
| traceback ) |
Definition at line 42 of file Configurable.py.
42 def __exit__(self, exception_type, exception_value, traceback):
43 Configurable._useGlobalInstances = self._previous_state
44
45
◆ _previous_state
| python.Configurable.ConfigurableCABehavior._previous_state = None |
|
protected |
◆ _target_state
| python.Configurable.ConfigurableCABehavior._target_state = target_state |
|
protected |
The documentation for this class was generated from the following file: