Loading...
Searching...
No Matches
gamsworkspaceinfo.h
1
26#ifndef GAMSWORKSPACEINFO_H
27#define GAMSWORKSPACEINFO_H
28
29#include <string>
30#include "gamsenum.h"
31
32namespace gams {
33
34class GAMSWorkspaceInfoImpl;
35
37class LIBSPEC GAMSWorkspaceInfo
38{
39public:
45 GAMSWorkspaceInfo(std::string workingDirectory = "", std::string systemDirectory = ""
46 , GAMSEnum::DebugLevel debug = GAMSEnum::DebugLevel::KeepFilesOnError);
47
51
55 bool operator==(const GAMSWorkspaceInfo& other) const;
56
60 bool operator!=(const GAMSWorkspaceInfo& other) const;
61
63 std::string workingDirectory() const;
64
67 void setWorkingDirectory(std::string workingDir);
68
70 std::string systemDirectory() const;
71
74 void setSystemDirectory(std::string systemDir);
75
78
82
83private:
84 std::shared_ptr<GAMSWorkspaceInfoImpl> mImpl;
85};
86
87} // namespace gams
88
89#endif // GAMSWORKSPACEINFO_H
DebugLevel
GAMS Debug Level.
Definition: gamsenum.h:198
The GAMSWorkspaceInfo can be used to input parameters for the GAMSWorkspace constructor.
GAMSWorkspaceInfo(std::string workingDirectory="", std::string systemDirectory="", GAMSEnum::DebugLevel debug=GAMSEnum::DebugLevel::KeepFilesOnError)
void setSystemDirectory(std::string systemDir)
GAMSEnum::DebugLevel debug() const
Get GAMS debug level.
bool operator==(const GAMSWorkspaceInfo &other) const
void setWorkingDirectory(std::string workingDir)
GAMSWorkspaceInfo(GAMSEnum::DebugLevel debug)
void setDebug(GAMSEnum::DebugLevel debug)
std::string workingDirectory() const
Get GAMS working directory, i.e. the anchor for all file-based operations.
bool operator!=(const GAMSWorkspaceInfo &other) const
std::string systemDirectory() const
Get GAMS system directory, i.e. installation directory of the GAMS distribution.
Definition: gams.h:91