SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
interface.cpp
Go to the documentation of this file.
1// SedSAT3 – Sediment Source Assessment Tool, version 3
2// U.S. Geological Survey. See LICENSE.md and DISCLAIMER.md in the repository root.
3
4#include "interface.h"
5
10
11// Copies carry every member. (These used to copy only the options and axis
12// labels, so a copied profile lost its notes, such as the outlier and
13// bracketing flags, and its highlight limits.)
14Interface::Interface(const Interface &intf) = default;
15Interface& Interface::operator=(const Interface &intf) = default;
16
17string Interface::ToString() const
18{
19 return "";
20}
21
22QJsonObject Interface::toJsonObject() const
23{
24 return QJsonObject();
25}
26
27bool Interface::ReadFromJsonObject(const QJsonObject &/*jsonobject*/)
28{
29 return true;
30}
31
32
33bool Interface::writetofile(QFile* /*file*/)
34{
35 return false;
36}
37
38bool Interface::Read(const QStringList &/*strlist*/)
39{
40 return false;
41}
42
43QTableWidget *Interface::ToTable()
44{
45 QTableWidget *tablewidget = new QTableWidget();
46 return tablewidget;
47}
Abstract base class providing common serialization and visualization interface.
Definition interface.h:68
Interface()
Default constructor.
Definition interface.cpp:6
Interface & operator=(const Interface &intf)
Assignment operator.
virtual bool ReadFromJsonObject(const QJsonObject &jsonobject)
Deserialize object from JSON format.
Definition interface.cpp:27
virtual string ToString() const
Convert object to string representation.
Definition interface.cpp:17
virtual QTableWidget * ToTable()
Create a Qt table widget representation of the data.
Definition interface.cpp:43
virtual bool writetofile(QFile *file)
Write object data to a file.
Definition interface.cpp:33
virtual QJsonObject toJsonObject() const
Serialize object to JSON format.
Definition interface.cpp:22
virtual bool Read(const QStringList &strlist)
Parse object data from a string list.
Definition interface.cpp:38