SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
contribution.h
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#ifndef CONTRIBUTION_H
5#define CONTRIBUTION_H
6
7#include <string>
8#include <map>
9#include "interface.h"
10
11//using namespace std;
12
13class QFile;
14
24class Contribution : public map<string, double>, public Interface
25{
26public:
31
36 Contribution(const Contribution& rhs);
37
44
49 QJsonObject toJsonObject() const override;
50
56 bool ReadFromJsonObject(const QJsonObject& jsonobject) override;
57
65 string ToString() const override;
66
72 bool writetofile(QFile*) override;
73
82 bool Read(const QStringList& strlist) override;
83
92 QTableWidget* ToTable() override;
93};
94
95#endif // CONTRIBUTION_H
QTableWidget * ToTable() override
Creates a QTableWidget for displaying contributions.
bool ReadFromJsonObject(const QJsonObject &jsonobject) override
Deserializes contributions from JSON format.
bool Read(const QStringList &strlist) override
Reads contributions from string list.
QJsonObject toJsonObject() const override
Serializes contributions to JSON format.
Contribution()
Default constructor - creates an empty contribution set.
string ToString() const override
Converts contributions to colon-separated string format.
bool writetofile(QFile *) override
Writes contributions to file.
Contribution & operator=(const Contribution &rhs)
Assignment operator.
Interface()
Default constructor.
Definition interface.cpp:6