Loading...
Searching...
No Matches
QC_ProgramControl.dox.h
namespace Qore {
struct StatementInfo {
*list breakpoints;
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<hash<auto>> findFunctionVariants(string function);
public:
int findStatementId(string file, int line);
public:
*hash<auto> getAllDefines();
public:
/***/
list<Breakpoint> getBreakpoints();
public:
auto getDefine(string def);
public:
auto getGlobalVariable(string varname, *reference<bool> rexists);
public:
hash<auto> getGlobalVars();
public:
int getParseOptions();
public:
int getProgramId();
public:
*string getScriptDir();
public:
*string getScriptName();
public:
*string getScriptPath();
public:
hash<string,hash<string,int>> getSourceFileNames();
public:
hash<string,hash<string,int>> getSourceLabels();
public:
hash<StatementInfo> getStatementIdInfo(int statementId, bool listBreakpoints = False);
public:
list<int> getThreadList();
public:
TimeZone getTimeZone();
public:
bool isDefined(string def);
public:
nothing setGlobalVarValue(string name, auto value);
public:
static list<ProgramControl> getAllPrograms();
public:
static ProgramControl getProgram();
public:
static ProgramControl resolveProgramId(int programId);
};
}
Qore::Breakpoint
Breakpoint class supports breakpoint setting for particular Qore ProgramControl when debugging.
Definition: QC_Breakpoint.dox.h:27
Qore::ProgramControl
The ProgramControl class provides safe information about a Qore program.
Definition: QC_ProgramControl.dox.h:45
Qore::ProgramControl::getScriptDir
*string getScriptDir()
Returns the current script directory as a string or NOTHING if not set.
Qore::ProgramControl::getSourceLabels
hash< string, hash< string, int > > getSourceLabels()
Get list of label names which has been registered to a statement when parsing source code.
Qore::ProgramControl::isDefined
bool isDefined(string def)
Returns True if the given parse define is defined in the current Program (does not have to have a val...
Qore::ProgramControl::destructor
destructor()
Dereferences the internal Program object and deletes the Qore object.
Qore::ProgramControl::getGlobalVariable
auto getGlobalVariable(string varname, *reference< bool > rexists)
Returns a the value of the global variable identified by the first string argument.
Qore::ProgramControl::getAllPrograms
static list< ProgramControl > getAllPrograms()
Get instance of all programs.
Qore::ProgramControl::assignBreakpoint
nothing assignBreakpoint(Breakpoint bkpt)
Assign Breakpoint instance to Program. If breakpoint has been assigned to an program then is unassign...
Qore::ProgramControl::findStatementId
int findStatementId(string file, int line)
Find statement related to position in file.
Qore::ProgramControl::getBreakpoints
list< Breakpoint > getBreakpoints()
get list of breakpoint assigned to program.
Qore::ProgramControl::getScriptPath
*string getScriptPath()
Returns the current script directory and filename if known, otherwise returns NOTHING.
Qore::ProgramControl::getParseOptions
int getParseOptions()
Returns the current binary-or'ed parse option mask for the Program object.
Qore::ProgramControl::setGlobalVarValue
nothing setGlobalVarValue(string name, auto value)
set the value of a global variable
Qore::ProgramControl::getProgram
static ProgramControl getProgram()
Get control for instance of current program.
Qore::ProgramControl::getProgramId
int getProgramId()
Get program id.
Qore::ProgramControl::deleteAllBreakpoints
nothing deleteAllBreakpoints()
delete all breakpoints from instance
Qore::ProgramControl::getTimeZone
TimeZone getTimeZone()
Returns the default local time zone for the object.
Qore::ProgramControl::resolveProgramId
static ProgramControl resolveProgramId(int programId)
Get instance of program id.
Qore::ProgramControl::constructor
constructor()
Throws an exception to prevent objects of this class being created from script.
Qore::ProgramControl::getDefine
auto getDefine(string def)
Retrieves the value of the given parse define in the current Program.
Qore::ProgramControl::findFunctionVariants
list< hash< auto > > findFunctionVariants(string function)
finds all variants of a function or class method and returns a list of the results
Qore::ProgramControl::getAllDefines
*hash< auto > getAllDefines()
Retrieves all parse defines in the current Program.
Qore::ProgramControl::getScriptName
*string getScriptName()
Returns the current script name as a string or NOTHING if not set.
Qore::ProgramControl::getGlobalVars
hash< auto > getGlobalVars()
returns a hash of global variables
Qore::ProgramControl::findFunctionStatementId
int findFunctionStatementId(string function, *list params)
Find the first statement for function entry point.
Qore::ProgramControl::copy
copy()
Throws an exception to prevent objects of this class from being copied.
Qore::ProgramControl::getSourceFileNames
hash< string, hash< string, int > > getSourceFileNames()
Returns a list of file names registered to a statement when parsing source code.
Qore::ProgramControl::getStatementIdInfo
hash< StatementInfo > getStatementIdInfo(int statementId, bool listBreakpoints=False)
get information related to statement id
Qore::ProgramControl::existsFunction
bool existsFunction(string name)
Checks if a user function exists in the program object.
Qore::ProgramControl::getThreadList
list< int > getThreadList()
returns a list of thread IDs active in this Program
Qore::TimeZone
The TimeZone class provides access to time zone functionality.
Definition: QC_TimeZone.dox.h:11
Qore::False
const False
logical False
Definition: qc_qore.dox.h:96
Qore::list
list< auto > list(...)
Returns a list of the arguments passed at the top level.
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::StatementInfo
statement information hash as returned by ProgramControl::getStatementIdInfo()
Definition: QC_ProgramControl.dox.h:15
Qore::StatementInfo::breakpoints
*list breakpoints
list of assigned breakpoints, unavailable if %no-debugging (since 0.9)
Definition: QC_ProgramControl.dox.h:17
Qore::StatementInfo::end_line
int end_line
statement end line
Definition: QC_ProgramControl.dox.h:19
Qore::StatementInfo::file
string file
refers to the label given when parsing the code
Definition: QC_ProgramControl.dox.h:21
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:25
Qore::StatementInfo::offset
int offset
the offset of the code in source
Definition: QC_ProgramControl.dox.h:23
Qore::StatementInfo::start_line
int start_line
statement start line
Definition: QC_ProgramControl.dox.h:27