Loading...
Searching...
No Matches
gamscheckpoint.h
1
26#ifndef GAMSCHECKPOINT_H
27#define GAMSCHECKPOINT_H
28
29#include "gamslib_global.h"
30#include <string>
31#include <memory>
32
33
34namespace gams {
35
36class GAMSModelInstance;
37class GAMSCheckpointImpl;
38class GAMSWorkspace;
39
46class LIBSPEC GAMSCheckpoint
47{
48public:
51
55
59 GAMSCheckpoint(const GAMSWorkspace& ws, const std::string& checkpointName = "");
60
65
69 bool operator!=(const GAMSCheckpoint& other) const;
70
74 bool operator==(const GAMSCheckpoint& other) const;
75
79 GAMSModelInstance addModelInstance(const std::string& modelInstanceName = "");
80
83 std::string name();
84
88
91 gams::LogId logID();
92
95 bool isValid() const;
96
99 std::string fileName() const;
100
101private:
102 std::shared_ptr<GAMSCheckpointImpl> mImpl;
103};
104
105} // namespace gams
106
107#endif // GAMSCHECKPOINT_H
gams::LogId logID()
GAMSModelInstance addModelInstance(const std::string &modelInstanceName="")
bool operator==(const GAMSCheckpoint &other) const
GAMSCheckpoint & operator=(const GAMSCheckpoint &other)
GAMSWorkspace workspace()
std::string name()
GAMSCheckpoint()
Standard constructor.
bool isValid() const
GAMSCheckpoint(const GAMSCheckpoint &other)
GAMSCheckpoint(const GAMSWorkspace &ws, const std::string &checkpointName="")
bool operator!=(const GAMSCheckpoint &other) const
std::string fileName() const
Definition: gams.h:91