forked from maik-nack/OptimizationSolver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ISolver.h
37 lines (29 loc) · 764 Bytes
/
ISolver.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef ISOLVER_H
#define ISOLVER_H
#include <QUrl>
#include "IProblem.h"
#include "SHARED_EXPORT.h"
class SHARED_EXPORT ISolver
{
public:
enum InterfaceTypes
{
INTERFACE_0,
DIMENSION_INTERFACE_IMPL
};
virtual int getId() const = 0;
virtual int setParams(IVector const* params) = 0;
virtual int setParams(QString& str) = 0;
virtual int setProblem(IProblem *ptr) = 0;
virtual int solve() = 0;
virtual int getSolution(IVector* &vec)const = 0;
virtual int getQml(QUrl& qml) const = 0;
protected:
virtual ~ISolver() {}
ISolver() = default;
private:
/*non default copyable*/
ISolver(const ISolver& other) = delete;
void operator=(const ISolver& other) = delete;
};
#endif // ISOLVER_H