36#ifndef ConfigWarningList_h
37#define ConfigWarningList_h
65 ConfigWarningMessage(
const std::string& o,
const std::string& m,
const std::string& e,
const std::string& p)
All warnings generated by a configuration we're in the process of loading.
Definition: ConfigWarningList.h:90
std::map< Instrument *, WarningList > m_warnings
Map from instrument to list of warnings produced by that driver.
Definition: ConfigWarningList.h:94
void clear()
Resets to the empty state.
Definition: ConfigWarningList.h:101
bool empty() const
Returns true if we have no warnings, false if at least one warning.
Definition: ConfigWarningList.h:97
A warning message displayed by a driver during loading of a session.
Definition: ConfigWarningList.h:50
std::string m_proposedValue
The new value of the setting being loaded.
Definition: ConfigWarningList.h:63
std::string m_messageText
Warning message explaining the change (e.g. "switching out 10 dB attenuator")
Definition: ConfigWarningList.h:57
std::string m_existingValue
The current value of the setting.
Definition: ConfigWarningList.h:60
std::string m_object
Human readable name of the channel and setting (e.g. "CH2 input")
Definition: ConfigWarningList.h:54
A single channel of an instrument.
Definition: InstrumentChannel.h:63
An arbitrary lab instrument. Oscilloscope, LA, PSU, DMM, etc.
Definition: Instrument.h:58
A list of ConfigWarningMessage's.
Definition: ConfigWarningList.h:78
std::vector< ConfigWarningMessage > m_messages
The messages in the list.
Definition: ConfigWarningList.h:82