COPASI API  4.16.103
arguments.h
Go to the documentation of this file.
1 // Copyright (C) 2012 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 #ifndef VIEW_CURRRENT_ARGUMENTS_H
7 #define VIEW_CURRRENT_ARGUMENTS_H
8 
9 #include <string>
10 
11 class CCopasiTask;
12 
13 class Arguments
14 {
15 
16 public:
17 
18  Arguments(int argc, char* argv[]);
19 
20  const std::string& getFilename() const;
21 
22  std::string prepareModel() const;
23 
24  char** getInitArgs() const;
25 
26  bool haveFile() const;
27 
28  bool isRunScheduled() const;
29 
30  bool isSwitchToTask() const;
31 
32  bool isValid() const;
33 
34  int getTaskToSwitchTo() const;
35 
36  bool isGenerateOutput() const;
37 
38  int getOutputToGenerate() const;
39 
40  bool haveReportFile() const;
41 
42  const std::string& getReportFile() const;
43 
44  bool haveOutputDir() const;
45 
46  const std::string& getOutputDir() const;
47 
48  bool haveTaskName() const;
49 
50  const std::string& getTaskName() const;
51 
52  const std::string& getFileType() const;
53 
54  bool isSolutionStatistic() const;
55 
56  bool isDisableStatistic() const;
57 
58  bool isDisablePlots() const;
59 
60  bool isDisableRandomizeStartValues() const;
61 
62  bool isHideWindow() const;
63 
64  bool isSaveLayout() const;
65 
66  bool handleCommandLine() const;
67 
68  bool isQuitAfterTaskExecution() const;
69 
71 
72 private:
73 
74  void parseArgs(int arc, char* argv[]);
75 
76  CCopasiTask* getTaskForName(const std::string& name) const;
77 
78  CCopasiTask* getTask() const;
79 
80  std::string mFilename;
81 
82  std::string mOutputDir;
83 
84  std::string mTask;
85 
86  std::string mReportFile;
87 
88  std::string mFileType;
89 
91 
93 
95 
97 
99 
101 
103 
105 
107 
109 
111 
112  int mArgc;
113 
114  char** mArgv;
115 };
116 
117 #endif
bool isSolutionStatistic() const
Definition: arguments.cpp:285
bool haveOutputDir() const
Definition: arguments.cpp:101
std::string mTask
Definition: arguments.h:84
bool mClearTargets
Definition: arguments.h:106
bool isDisablePlots() const
Definition: arguments.cpp:300
CCopasiTask * getTask() const
Definition: arguments.cpp:83
void parseArgs(int arc, char *argv[])
Definition: arguments.cpp:156
bool mDisableStatistic
Definition: arguments.h:96
bool isHideWindow() const
Definition: arguments.cpp:305
std::string mFileType
Definition: arguments.h:88
char ** mArgv
Definition: arguments.h:114
bool isGenerateOutput() const
Definition: arguments.cpp:91
int mSwitchToTask
Definition: arguments.h:108
bool isSaveLayout() const
Definition: arguments.cpp:146
bool isDisableStatistic() const
Definition: arguments.cpp:290
bool mDisablePlots
Definition: arguments.h:98
static CCopasiTask * getFirstScheduledTask()
Definition: arguments.cpp:53
bool handleCommandLine() const
Definition: arguments.cpp:116
std::string mOutputDir
Definition: arguments.h:82
char ** getInitArgs() const
Definition: arguments.cpp:247
bool mDisableRandomizeStartValues
Definition: arguments.h:100
bool haveReportFile() const
Definition: arguments.cpp:111
int mArgc
Definition: arguments.h:112
bool mSetSolutionStatistic
Definition: arguments.h:94
const std::string & getFilename() const
Definition: arguments.cpp:255
bool mQuitAfterTaskExecution
Definition: arguments.h:104
bool isQuitAfterTaskExecution() const
Definition: arguments.cpp:310
bool isSwitchToTask() const
Definition: arguments.cpp:237
std::string mFilename
Definition: arguments.h:80
const std::string & getOutputDir() const
Definition: arguments.cpp:106
bool mHideWindow
Definition: arguments.h:102
bool haveFile() const
Definition: arguments.cpp:265
int getTaskToSwitchTo() const
Definition: arguments.cpp:242
Arguments(int argc, char *argv[])
Definition: arguments.cpp:31
CCopasiTask * getTaskForName(const std::string &name) const
Definition: arguments.cpp:68
int mGenerateOutput
Definition: arguments.h:110
const std::string & getReportFile() const
Definition: arguments.cpp:151
bool isValid() const
Definition: arguments.cpp:315
bool isDisableRandomizeStartValues() const
Definition: arguments.cpp:295
std::string prepareModel() const
Definition: arguments.cpp:324
const std::string & getFileType() const
Definition: arguments.cpp:260
bool haveTaskName() const
Definition: arguments.cpp:275
bool isRunScheduled() const
Definition: arguments.cpp:270
std::string mReportFile
Definition: arguments.h:86
bool mSaveLayout
Definition: arguments.h:92
int getOutputToGenerate() const
Definition: arguments.cpp:96
bool mRunScheduled
Definition: arguments.h:90
const std::string & getTaskName() const
Definition: arguments.cpp:280