Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
FacilityHelper::ScopedFacilities Struct Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ScopedFacilities()

FacilityHelper::ScopedFacilities::ScopedFacilities ( const std::string &  filename,
const std::string &  defFacility 
)
inline

Switch facilities file & default facility.

Parameters
filenameIt 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().

◆ ~ScopedFacilities()

FacilityHelper::ScopedFacilities::~ScopedFacilities ( )
inline

Member Data Documentation

◆ defFacilityOnStart

std::string FacilityHelper::ScopedFacilities::defFacilityOnStart
private

Definition at line 48 of file FacilityHelper.h.

Referenced by ScopedFacilities(), and ~ScopedFacilities().


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