Qore Programming Language Reference Manual  0.8.13.4
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 
87 int findFunctionStatementId(string function, *list params);
88 
89 public:
91 
97 list findFunctionVariants(string function);
98 
99 public:
101 
109 int findStatementId(string file, int line);
110 
111 public:
113 
115 *hash getAllDefines();
116 
117 public:
119 /***/
120 list getBreakpoints();
121 
122 public:
124 
126 auto getDefine(string def);
127 
128 public:
130 
132 auto getGlobalVariable(string varname, *reference<bool> rexists);
133 
134 public:
136 
141 hash getGlobalVars();
142 
143 public:
145 
147 int getParseOptions();
148 
149 public:
151 
156 int getProgramId();
157 
158 public:
160 
162 *string getScriptDir();
163 
164 public:
166 
168 *string getScriptName();
169 
170 public:
172 
174 *string getScriptPath();
175 
176 public:
178 
186 hash getSourceFileNames();
187 
188 public:
190 
198 hash getSourceLabels();
199 
200 public:
202 
208 hash<StatementInfo> getStatementIdInfo(int statementId);
209 
210 public:
212 
217 list<int> getThreadList();
218 
219 public:
221 
223 TimeZone getTimeZone();
224 
225 public:
227 
229 bool isDefined(string def);
230 
231 public:
233 
235 nothing setGlobalVarValue(string name, auto value);
236 
237 public:
239 
247 static list getAllPrograms();
248 
249 public:
251 
258 static ProgramControl getProgram();
259 
260 public:
262 
271 static ProgramControl resolveProgramId(int programId);
272 };
273 };
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