![]() |
ATLAS Offline Software
|
Temporarily change the current EventContext. More...
#include <WithEventContext.h>
Public Member Functions | |
| WithEventContext () | |
| Save current EventContext. | |
| WithEventContext (const EventContext &ctx) | |
| Save current EventContext and switch to a new one. | |
| WithEventContext (IProxyDict *sg) | |
| Save current EventContext and update the IProxyDict pointer. | |
| ~WithEventContext () | |
| Destructor. | |
Private Attributes | |
| EventContext | m_oldCtx |
| The saved original EventContext. | |
Temporarily change the current EventContext.
The original EventContext will be restored when this object is destroyed.
Definition at line 31 of file WithEventContext.h.
| SG::WithEventContext::WithEventContext | ( | ) |
Save current EventContext.
This will save the current EventContext, but not change it. The original EventContext will be restored when this object is destroyed.
Definition at line 26 of file WithEventContext.cxx.
| SG::WithEventContext::WithEventContext | ( | const EventContext & | ctx | ) |
Save current EventContext and switch to a new one.
| ctx | The new EventContext. |
This will save the current EventContext and install a new one. The original EventContext will be restored when this object is destroyed.
Definition at line 39 of file WithEventContext.cxx.
| SG::WithEventContext::WithEventContext | ( | IProxyDict * | sg | ) |
Save current EventContext and update the IProxyDict pointer.
| sg | The new IProxyDcit. |
This will save the current EventContext and then update the current context's IProxyDict pointer to sg. The original EventContext will be restored when this object is destroyed.
Definition at line 54 of file WithEventContext.cxx.
| SG::WithEventContext::~WithEventContext | ( | ) |
|
private |
The saved original EventContext.
Definition at line 72 of file WithEventContext.h.