ATLAS Offline Software
Loading...
Searching...
No Matches
python.Configurable.ConfigurableCABehavior Class Reference
Collaboration diagram for python.Configurable.ConfigurableCABehavior:

Public Member Functions

 __init__ (self, target_state=True)
 __enter__ (self)
 __exit__ (self, exception_type, exception_value, traceback)

Protected Attributes

 _target_state = target_state
 _previous_state = None

Detailed Description

Definition at line 34 of file Configurable.py.

Constructor & Destructor Documentation

◆ __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

Member Function Documentation

◆ __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 # CA does not use global instances:
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

Member Data Documentation

◆ _previous_state

python.Configurable.ConfigurableCABehavior._previous_state = None
protected

Definition at line 37 of file Configurable.py.

◆ _target_state

python.Configurable.ConfigurableCABehavior._target_state = target_state
protected

Definition at line 36 of file Configurable.py.


The documentation for this class was generated from the following file: