ROSE  0.11.145.0
Public Member Functions | List of all members
Sawyer::Message::FacilitiesGuard Class Reference

Description

Saves and restores facilities.

The constructor saves the facilities settings (which streams are enabled and disabled) and the destructor restores them. This does not save the actual list of streams, so if streams are erased/inserted they will not be restored.

Definition at line 2018 of file Message.h.

#include <util/Sawyer/Message.h>

Public Member Functions

 FacilitiesGuard ()
 Saves and restores the global message facilities. More...
 
 FacilitiesGuard (Facilities &facilities)
 Saves and restores specified message facilities. More...
 
 ~FacilitiesGuard ()
 Restores previously saved facility settings. More...
 

Constructor & Destructor Documentation

Sawyer::Message::FacilitiesGuard::FacilitiesGuard ( )
inline

Saves and restores the global message facilities.

Saves and restores which streams are enabled in mfacilities.

Definition at line 2026 of file Message.h.

Sawyer::Message::FacilitiesGuard::FacilitiesGuard ( Facilities facilities)
inlineexplicit

Saves and restores specified message facilities.

Definition at line 2032 of file Message.h.

Sawyer::Message::FacilitiesGuard::~FacilitiesGuard ( )
inline

Restores previously saved facility settings.

Definition at line 2038 of file Message.h.


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