# Qore Programming Language Reference Manual: lib/QC_ProgramControl.dox.h Source File

QC_ProgramControl.dox.h
namespace Qore {
struct StatementInfo {
int end_line;
string file;
int offset;
string source;
int start_line;
};
};
namespace Qore {
class ProgramControl {
public:
/***/
nothing assignBreakpoint(Breakpoint bkpt);
public:
constructor();
public:
copy();
public:
/***/
nothing deleteAllBreakpoints();
public:
/***/
destructor();
public:
bool existsFunction(string name);
public:
int findFunctionStatementId(string function, *list params);
public:
list findFunctionVariants(string function);
public:
int findStatementId(string file, int line);
public:
*hash getAllDefines();
public:
/***/
list getBreakpoints();
public:
auto getDefine(string def);
public:
auto getGlobalVariable(string varname, *reference<bool> rexists);
public:
hash getGlobalVars();
public:
int getParseOptions();
public:
int getProgramId();
public:
*string getScriptDir();
public:
*string getScriptName();
public:
*string getScriptPath();
public:
hash getSourceFileNames();
public:
hash getSourceLabels();
public:
hash<StatementInfo> getStatementIdInfo(int statementId);
public:
list<int> getThreadList();
public:
TimeZone getTimeZone();
public:
bool isDefined(string def);
public:
nothing setGlobalVarValue(string name, auto value);
public:
static list getAllPrograms();
public:
static ProgramControl getProgram();
public:
static ProgramControl resolveProgramId(int programId);
};
};
Qore::StatementInfo::file
string file
refers to the label given when parsing the code
Definition: QC_ProgramControl.dox.h:18
Qore::StatementInfo
statement information hash as returned by ProgramControl::getStatementIdInfo()
Definition: QC_ProgramControl.dox.h:14
Qore::StatementInfo::start_line
int start_line
statement start line
Definition: QC_ProgramControl.dox.h:24
Qore::list
list list(...)
Returns an untyped list of the arguments passed at the top level.
Qore::ProgramControl
The ProgramControl class provides safe information about a Qore program.
Definition: QC_ProgramControl.dox.h:41
Qore::TimeZone
The TimeZone class provides access to time zone functionality.
Definition: QC_TimeZone.dox.h:6
Qore::Breakpoint
Breakpoint class supports breakpoint setting for particular Qore ProgramControl when debugging...
Definition: QC_Breakpoint.dox.h:26
Qore::StatementInfo::end_line
int end_line
statement end line
Definition: QC_ProgramControl.dox.h:16
Qore::StatementInfo::offset
int offset
the offset of the code in source
Definition: QC_ProgramControl.dox.h:20
Qore::existsFunction
bool existsFunction(string name)
Returns True if the function exists in the current program&#39;s function name space. ...
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
Qore::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::StatementInfo::source
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