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

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

Public Member Functions

void beginChange (const SettingGroup &group, const Messaging::Char *details) noexcept override
void endChange () noexcept override

Static Public Member Functions

static SettingChangeController & self () noexcept

Detailed Description

Both controller callbacks are no-ops. Use self() to obtain the shared instance used by settings that have no explicit controller.

Definition at line 59 of file SettingGroup.h.

Member Function Documentation

◆ beginChange()

void beginChange ( const SettingGroup & group,
const Messaging::Char * details )
inlineoverridevirtualnoexcept

Starts a guarded setting change.

Parameters
groupGroup containing the setting being changed.
detailsHuman-readable description of the change; may be null.
Exceptions
Anyexception used by the implementation to reject or defer the change.

Implements SettingChangeController.

Definition at line 62 of file SettingGroup.h.

◆ endChange()

void endChange ( )
inlineoverridevirtualnoexcept

Completes the current guarded setting change.

Note
Call this exactly once after a successful beginChange() and before starting another change through the same controller.
Implementations must not throw. This function is called from the noexcept SettingChangeGuard destructor; an escaping exception terminates the process.

Implements SettingChangeController.

Definition at line 65 of file SettingGroup.h.

◆ self()

SettingChangeController & self ( )
staticnoexcept

Obtains the shared controller that accepts every change.

Returns
Mutable reference to the process-wide controller instance.
Note
The caller does not own the returned instance and must not delete it.