SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
results.h
Go to the documentation of this file.
1#ifndef RESULTS_H
2#define RESULTS_H
3#include <map>
4#include <unordered_map>
5#include <interface.h>
6#include <string>
7
8//using namespace std;
9
10class QJsonObject;
11class ResultItem;
12
13
14class Results: public map<string,ResultItem>
15{
16public:
17 Results();
18 Results(const Results &rhs);
19 Results& operator = (const Results &rhs);
20 void Append(const ResultItem&);
21 void SetName(const string &_name) {name = _name;}
22 bool ReadFromJson(const QJsonObject &jsonobject);
23 string GetName() {return name;}
24 QJsonObject toJsonObject();
25 void SetError(const string &_error) {error = _error;}
26 void AppendError(const string &_error) {error = error + _error;}
27 string Error() {return error;}
28private:
29 string name;
30 string error;
31
32};
33
34#endif // RESULTS_H
void Append(const ResultItem &)
Definition results.cpp:25
QJsonObject toJsonObject()
Definition results.cpp:30
void SetError(const string &_error)
Definition results.h:25
Results & operator=(const Results &rhs)
Definition results.cpp:18
string Error()
Definition results.h:27
void AppendError(const string &_error)
Definition results.h:26
void SetName(const string &_name)
Definition results.h:21
string GetName()
Definition results.h:23
string name
Definition results.h:29
Results()
Definition results.cpp:9
bool ReadFromJson(const QJsonObject &jsonobject)
Definition results.cpp:41
string error
Definition results.h:30