OnixS C++ CME MDP Premium Market Data Handler 5.11.1
Users' manual and API documentation
Loading...
Searching...
No Matches
SettingChangeGuard Class Reference

#include <OnixS/CME/MDH/SettingGroup.h>

Public Member Functions

 SettingChangeGuard (SettingChangeController &controller, const SettingGroup &group, const Messaging::Char *details)
 ~SettingChangeGuard ()

Detailed Description

The guard is non-copyable. Its controller must remain alive until the guard is destroyed.

Definition at line 79 of file SettingGroup.h.

Constructor & Destructor Documentation

◆ SettingChangeGuard()

SettingChangeGuard ( SettingChangeController & controller,
const SettingGroup & group,
const Messaging::Char * details )
inline

Starts a guarded setting change.

Parameters
controllerController that coordinates the change.
groupGroup containing the setting being changed.
detailsHuman-readable description forwarded to the controller; may be null.
Exceptions
Anyexception thrown by SettingChangeController::beginChange().
Note
If construction succeeds, destruction calls endChange() exactly once.

Definition at line 88 of file SettingGroup.h.

◆ ~SettingChangeGuard()

~SettingChangeGuard ( )
inline

Completes the guarded setting change.

Definition at line 95 of file SettingGroup.h.