6#include <qjsonobject.h>
7#include <qtablewidget.h>
155 virtual bool Read(
const QStringList &strlist);
168 virtual QTableWidget *
ToTable();
201 Notes +=
"; " + note;
Abstract base class providing common serialization and visualization interface.
string GetNotes() const
Get the notes/annotations associated with this object.
double lowlimit
Lower threshold for value highlighting (when enabled)
void SetNotes(const string ¬e)
Set the notes for this object, replacing any existing notes.
QString XAxis_Label
Label for the X-axis in plots and table headers.
options Options
Configuration options for serialization and display.
Interface()
Default constructor.
Interface & operator=(const Interface &intf)
Assignment operator.
virtual bool ReadFromJsonObject(const QJsonObject &jsonobject)
Deserialize object from JSON format.
options & GetOptions()
Get reference to the options structure.
void SetOption(options_key opt, bool val)
Set a configuration option.
virtual string ToString() const
Convert object to string representation.
QString XAxisLabel() const
Get the X-axis label.
virtual QTableWidget * ToTable()
Create a Qt table widget representation of the data.
bool SetXAxisLabel(const QString &label)
Set the X-axis label.
string Notes
Textual annotations and metadata about the data.
void SetLimit(_range lowhigh, const double &value)
Set upper or lower limit for value highlighting.
virtual bool writetofile(QFile *file)
Write object data to a file.
virtual QJsonObject toJsonObject() const
Serialize object to JSON format.
QString YAxisLabel() const
Get the Y-axis label.
void AppendtoNotes(const string ¬e)
Append a note to existing notes.
bool highlightoutsideoflimit
Flag indicating whether to highlight values outside defined limits.
QString YAxis_Label
Label for the Y-axis in plots and table headers.
virtual bool Read(const QStringList &strlist)
Parse object data from a string list.
void ClearNotes()
Clear all notes associated with this object.
bool Option(options_key opt)
Get the current value of a configuration option.
bool SetYAxisLabel(const QString &label)
Set the Y-axis label.
double highlimit
Upper threshold for value highlighting (when enabled)
options_key
Configuration option identifiers for Interface-derived classes.
@ single_column_x
Enable single-column mode for X-axis data representation.
_range
Enumeration for specifying parameter range bounds.
@ high
Upper bound of the parameter range.
Configuration options for data presentation and serialization.
QString X_suffix
Suffix appended to X-axis field names in serialization.
bool single_column_x
If true, X values are stored in a single column during serialization.
QString Y_suffix
Suffix appended to Y-axis field names in serialization.