Itasca C++ Interface
Loading...
Searching...
No Matches
isettings.h
Go to the documentation of this file.
1#pragma once
2
3#include "shared/interface/signal.h"
4#include "shared/interface/ifile.h"
5
11namespace itasca {
13
16 class ISettings {
17 public:
18 using OpenAction = shared::IFile::OpenAction;
19
20 shared::Signal<bool> caseSensitivityChanged;
21 shared::Signal<bool> logChanged;
22 shared::Signal<const string &> logFileNameChanged;
23 shared::Signal<bool> safeConversionChanged;
24 shared::Signal<bool> echoChanged;
25 shared::Signal<const string &> customerTitle1Changed;
26 shared::Signal<const string &> customerTitle2Changed;
27 shared::Signal<const string &> jobTitleChanged;
28 shared::Signal<bool> LHSChanged;
29 shared::Signal<const string &> licenseChanged;
30 shared::Signal<bool> academicModelChanged;
31 shared::Signal<bool> demoModelChanged;
32 shared::Signal<uint32> updateIntervalChanged;
33 shared::Signal<bool> unrepeatableChanged;
34 shared::Signal<bool> readOnlyChanged;
35 shared::Signal<bool> resultsStateChanged;
36 shared::Signal<bool> autoModelSaveChanged;
37 shared::Signal<double> autoModelSaveIntervalChanged;
38 shared::Signal<const string &> autoModelSaveDirectoryChanged;
39
41 virtual bool getLog() const=0;
42
44 virtual string getLogFileName() const=0;
45
48 virtual bool getSafeConversion() const=0;
49
51 virtual bool getEcho() const=0;
52
54 virtual string getCustomerTitle1() const=0;
56 virtual string getCustomerTitle2() const=0;
57
59 virtual string getJobTitle() const=0;
60
62 virtual bool getLHS() const=0;
63
65 // e.g.: (null) = Full or Non-Cycling license, "Demonstration" License, "Academic" License, etc.
66 virtual string getLicense() const=0;
67
69 virtual bool getAcademicModel() const=0;
70
72 virtual bool getDemoModel() const=0;
73
75 virtual uint32 getUpdateInterval() const=0;
76
78 virtual bool getReadOnly() const=0;
79
82 virtual bool getUnrepeatable() const=0;
83
84 // True if the current model state was read from a results file.
85 // Cycling (and maybe other things) is disabled in this state.
86 virtual bool getResultsState() const=0;
87
88 virtual bool getAutoModelSave() const=0;
89 virtual double getAutoModelSaveInterval() const=0;
90 virtual string getAutoModelSaveDirectory() const=0;
91
92 virtual void setLog(bool b,OpenAction action = OpenAction::Append)=0;
93 virtual void setLogFileName(const string &s,OpenAction action = OpenAction::Append)=0;
95 virtual void setUpdateInterval(uint32 u)=0;
96
97 virtual void setAutoModelSave(bool b)=0;
98 virtual void setAutoModelSaveInterval(double d)=0;
99 virtual void setAutoModelSaveDirectory(const string &s)=0;
100 };
101} // namespace itasca
102// EoF
Interface for accessing kernel settings.
Definition isettings.h:16
virtual bool getAcademicModel() const =0
True if any cycling was ever done under an academic license.
virtual bool getDemoModel() const =0
True if any cycling was ever done under a demo license.
virtual bool getLog() const =0
Returns TRUE if text output is being sent to a log file as well.
virtual string getLogFileName() const =0
Returns the name of the log file (whether logging is on or not).
virtual string getJobTitle() const =0
Returns the Job title associated with the current model.
virtual bool getEcho() const =0
Returns TRUE if command input is being printed out when received.
virtual bool getSafeConversion() const =0
virtual bool getReadOnly() const =0
True if the model state has been tagged as read only.
virtual bool getUnrepeatable() const =0
virtual uint32 getUpdateInterval() const =0
Returns the frequency of notices during cycling.
virtual string getCustomerTitle2() const =0
Returns the customer title (2) set by the user and stored persistantly.
virtual bool getLHS() const =0
Returns TRUE if a Left Handed coordinate system is being used.
virtual void setUpdateInterval(uint32 u)=0
Sets the frequency of notices during cycling.
virtual string getCustomerTitle1() const =0
Returns the customer title (1) set by the user and stored persistantly.
virtual string getLicense() const =0
Returns the current license terms. .
namespace Itasca
Definition basememory.cpp:14