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#ifndef CONTRIBUTION_H
2#define CONTRIBUTION_H
3
4#include <string>
5#include <map>
6#include "interface.h"
7
8//using namespace std;
9
10class QFile;
11
21class Contribution : public map<string, double>, public Interface
22{
23public:
28
33 Contribution(const Contribution& rhs);
34
41
46 QJsonObject toJsonObject() const override;
47
53 bool ReadFromJsonObject(const QJsonObject& jsonobject) override;
54
62 string ToString() const override;
63
69 bool writetofile(QFile*) override;
70
79 bool Read(const QStringList& strlist) override;
80
89 QTableWidget* ToTable() override;
90};
91
92#endif // CONTRIBUTION_H
Source contribution container for Chemical Mass Balance results.
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.
Abstract base class providing common serialization and visualization interface.
Definition interface.h:65