Mantid
|
Simple RAII struct to switch the facilities files to the when constructed and switch back to the previous settings on destruction. More...
#include <FacilityHelper.h>
Public Member Functions | |
ScopedFacilities (const std::string &filename, const std::string &defFacility) | |
Switch facilities file & default facility. More... | |
~ScopedFacilities () | |
Private Attributes | |
std::string | defFacilityOnStart |
Simple RAII struct to switch the facilities files to the when constructed and switch back to the previous settings on destruction.
Definition at line 25 of file FacilityHelper.h.
|
inline |
Switch facilities file & default facility.
filename | It is assumed it is in the instrument directory |
defFacility |
Definition at line 31 of file FacilityHelper.h.
References defFacilityOnStart, and Mantid::Kernel::SingletonHolder< T >::Instance().
|
inline |
Definition at line 40 of file FacilityHelper.h.
References defFacilityOnStart, and Mantid::Kernel::SingletonHolder< T >::Instance().
|
private |
Definition at line 48 of file FacilityHelper.h.
Referenced by ScopedFacilities(), and ~ScopedFacilities().