Qore Programming Language Reference Manual  0.8.13
QC_ProgramControl.dox.h
1 namespace Qore {
4 
14 struct StatementInfo {
16  int end_line;
18  string file;
20  int offset;
22  string source;
25 };
26 };
28 namespace Qore {
30 
42 
43 public:
45 /***/
46 nothing assignBreakpoint(Breakpoint bkpt);
47 
48 public:
50 
52  constructor();
53 
54 public:
56 
58  copy();
59 
60 public:
62 /***/
63 nothing deleteAllBreakpoints();
64 
65 public:
67 /***/
68  destructor();
69 
70 public:
72 
77 bool existsFunction(string name);
78 
79 public:
81 
88 int findFunctionStatementId(string function, *list params);
89 
90 public:
92 
99 list findFunctionVariants(string function);
100 
101 public:
103 
111 int findStatementId(string file, int line);
112 
113 public:
115 
117 *hash getAllDefines();
118 
119 public:
121 /***/
122 list getBreakpoints();
123 
124 public:
126 
128 auto getDefine(string def);
129 
130 public:
132 
134 auto getGlobalVariable(string varname, *reference<bool> rexists);
135 
136 public:
138 
143 hash getGlobalVars();
144 
145 public:
147 
149 int getParseOptions();
150 
151 public:
153 
158 int getProgramId();
159 
160 public:
162 
164 *string getScriptDir();
165 
166 public:
168 
170 *string getScriptName();
171 
172 public:
174 
176 *string getScriptPath();
177 
178 public:
180 
186 hash<StatementInfo> getStatementIdInfo(int statementId);
187 
188 public:
190 
195 list<int> getThreadList();
196 
197 public:
199 
201 TimeZone getTimeZone();
202 
203 public:
205 
207 bool isDefined(string def);
208 
209 public:
211 
213 nothing setGlobalVarValue(string name, auto value);
214 
215 public:
217 
225 static list getAllPrograms();
226 
227 public:
229 
236 static ProgramControl getProgram();
237 
238 public:
240 
249 static ProgramControl resolveProgramId(int programId);
250 };
251 };
string file
refers to the label given when parsing the code
Definition: QC_ProgramControl.dox.h:18
statement information hash as returned by ProgramControl::getStatementIdInfo()
Definition: QC_ProgramControl.dox.h:14
int start_line
statement start line
Definition: QC_ProgramControl.dox.h:24
list list(...)
Returns an untyped list of the arguments passed at the top level.
The ProgramControl class provides safe information about a Qore program.
Definition: QC_ProgramControl.dox.h:41
The TimeZone class provides access to time zone functionality.
Definition: QC_TimeZone.dox.h:6
Breakpoint class supports breakpoint setting for particular Qore ProgramControl when debugging...
Definition: QC_Breakpoint.dox.h:26
int end_line
statement end line
Definition: QC_ProgramControl.dox.h:16
int offset
the offset of the code in source
Definition: QC_ProgramControl.dox.h:20
bool existsFunction(string name)
Returns True if the function exists in the current program&#39;s function name space. ...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
hash hash(object obj)
Returns a hash of an object&#39;s members.
string source
refers to the actual file name or path of the source code (if the label does not provide this info) ...
Definition: QC_ProgramControl.dox.h:22