| Qore Programming Language Reference Manual 2.2.0

Loading...
Searching...
No Matches
QC_Program.dox.h
1
3 namespace Qore {
5
8 struct SourceLocationInfo {
10 bool builtin;
12 int endline;
14 *string file;
16 int line;
18 int offset;
20 *string source;
21};
22}
23
25 namespace Qore {
27
56 class Program {
57
58 public:
60
78 auto callFunction(string name, ...);
79
80 public:
82
100 auto callFunctionArgs(string name, *softlist<auto> vargs);
101
102 public:
104
128 auto callStaticMethod(string class_name, string method, ...);
129
130 public:
132
156 auto callStaticMethodArgs(string class_name, string method, *softlist<auto> call_args);
157
158 public:
160
188 constructor(softint po = PO_DEFAULT);
189
190 public:
192
194 copy();
195
196 public:
198
206nothing define(string def, auto val);
207
208 public:
210/***/
211 destructor();
212
213 public:
215
230nothing disableParseOptions(softint opt);
231
232 public:
234
249 bool existsFunction(string name);
250
251 public:
253
265 list<hash<auto>> findFunctionVariants(string function);
266
267 public:
269
283*hash<auto> getAllDefines();
284
285 public:
287
313code getCallReference(string identifier);
314
315 public:
317
324 int getCapabilityMask();
325
326 public:
328
342 auto getDefine(string def);
343
344 public:
346
351 Expression getExpression(string source, string label);
352
353 public:
355
362 list<string> getFeatureList();
363
364 public:
366
377 auto getGlobalVariable(string varname, *reference<bool> rexists);
378
379 public:
381
395 hash<auto> getGlobalVars();
396
397 public:
399
411 list<string> getParseOptionStringList();
412
413 public:
415
425 int getParseOptions();
426
427 public:
429
436 ProgramControl getProgram();
437
438 public:
440
448 int getProgramId();
449
450 public:
452
464*string getScriptDir();
465
466 public:
468
480*string getScriptName();
481
482 public:
484
496*string getScriptPath();
497
498 public:
500
512 list<int> getThreadList();
513
514 public:
516
526 TimeZone getTimeZone();
527
528 public:
530
542softlist<string> getUserFunctionList();
543
544 public:
546
573nothing importClass(string cls, *string new_name, *softbool inject, int module_visibility = CSP_UNCHANGED);
574
575 public:
577
592nothing importFunction(string func);
593
594 public:
596
623nothing importFunction(string func, string new_name, *softbool inject);
624
625 public:
627
643nothing importGlobalVariable(string varname, bool readonly = False);
644
645 public:
647
664nothing importGlobalVariable(string varname, string import_as, bool readonly = False);
665
666 public:
668
683nothing importHashDecl(string name, *string new_name);
684
685 public:
687
698 importSystemApi();
699
700 public:
702
713 importSystemClasses();
714
715 public:
717
728 importSystemConstants();
729
730 public:
732
743 importSystemFunctions();
744
745 public:
747
758 importSystemHashDecls();
759
760 public:
762
776 bool isDefined(string def);
777
778 public:
780
797nothing issueModuleCmd(string module, string cmd);
798
799 public:
801
828 loadApplyToPrivateUserModule(string name, int warning_mask = WARN_MODULES);
829
830 public:
832
861*hash<ExceptionInfo> loadApplyToPrivateUserModuleWarn(string name, int warning_mask = WARN_MODULES);
862
863 public:
865
896 loadApplyToUserModule(string name, *softbool reinject, int warning_mask = WARN_MODULES, bool reexport = False);
897
898 public:
900
933*hash<ExceptionInfo> loadApplyToUserModuleWarn(string name, *softbool reinject, int warning_mask = WARN_MODULES, bool reexport = False);
934
935 public:
937
969 loadModule(string name, int warning_mask = WARN_MODULES);
970
971 public:
973
1005*hash<ExceptionInfo> loadModuleWarn(string name, int warning_mask = WARN_MODULES);
1006
1007 public:
1009
1043 loadUserModuleWithProgram(string name, Qore::Program pgm, int warning_mask = WARN_MODULES);
1044
1045 public:
1047
1081*hash<ExceptionInfo> loadUserModuleWithProgramWarn(string name, Qore::Program pgm, int warning_mask = WARN_MODULES);
1082
1083 public:
1085
1090nothing lockOptions();
1091
1092 public:
1094
1149*hash<ExceptionInfo> parse(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
1150
1151 public:
1153
1178nothing parseCommit();
1179
1180 public:
1182
1209*hash<ExceptionInfo> parseCommit(int warning_mask);
1210
1211 public:
1213
1260*hash<ExceptionInfo> parsePending(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
1261
1262 public:
1264
1277nothing parseRollback();
1278
1279 public:
1281
1295nothing replaceParseOptions(softint opt);
1296
1297 public:
1299
1306 auto run();
1307
1308 public:
1310
1326nothing setGlobalVarValue(string name, auto value);
1327
1328 public:
1330
1345nothing setParseOptions(softint opt = PO_DEFAULT);
1346
1347 public:
1349
1356nothing setScriptPath(*string path);
1357
1358 public:
1360
1380 bool setThreadInit(*code init);
1381
1382 public:
1384
1392nothing setTimeZone(TimeZone zone);
1393
1394 public:
1396
1407nothing setTimeZoneRegion(string region);
1408
1409 public:
1411
1429nothing setTimeZoneUTCOffset(softint seconds_east);
1430
1431 public:
1433
1440nothing undefine(string def);
1441
1442 public:
1444
1453 static int getCallerCapabilityMask(int n = 1);
1454
1455 public:
1457
1464 static int getCapabilityMask();
1465
1466 public:
1468
1485 static nothing issueModuleCmd(string module, string cmd);
1486};
1487
1493
1495 const CSP_SETPRIV = CSP_SETPRIV;
1497 const CSP_SETPUB = CSP_SETPUB;
1499 const CSP_UNCHANGED = CSP_UNCHANGED;
1501
1507
1509
1513 const DOM_DATABASE = QDOM_DATABASE;
1515
1517 const DOM_DEBUGGER = QDOM_DEBUGGER;
1519
1521 const DOM_EMBEDDED_LOGIC = QDOM_EMBEDDED_LOGIC;
1523
1527 const DOM_EXTERNAL_INFO = QDOM_EXTERNAL_INFO;
1529
1533 const DOM_EXTERNAL_PROCESS = QDOM_EXTERNAL_PROCESS;
1535
1539 const DOM_FILESYSTEM = QDOM_FILESYSTEM;
1541
1545 const DOM_GUI = QDOM_GUI;
1547
1549 const DOM_INJECTION = QDOM_INJECTION;
1551
1555 const DOM_LOCALE_CONTROL = QDOM_LOCALE_CONTROL;
1557
1561 const DOM_MODULE = QDOM_MODULES;
1563
1567 const DOM_NETWORK = QDOM_NETWORK;
1569
1573 const DOM_PROCESS_CONTROL = QDOM_PROCESS;
1575
1577 const DOM_REFLECTION = QDOM_REFLECTION;
1579
1583 const DOM_TERMINAL_IO = QDOM_TERMINAL_IO;
1585
1589 const DOM_THREAD_CLASS = QDOM_THREAD_CLASS;
1591
1595 const DOM_THREAD_CONTROL = QDOM_THREAD_CONTROL;
1597
1601 const DOM_THREAD_INFO = QDOM_THREAD_INFO;
1603
1607 const DOM_UNCONTROLLED_API = QDOM_UNCONTROLLED_API;
1609
1613
1615
1619 const DomainCodeMap = qore(pomaps.getDomainToStringMap());
1621
1625 const DomainStringMap = qore(pomaps.getStringToDomainMap());
1627
1631 const PO_ALLOW_BARE_REFS = PO_ALLOW_BARE_REFS;
1633
1636 const PO_ALLOW_DEBUGGER = PO_ALLOW_DEBUGGER;
1638
1644 const PO_ALLOW_INJECTION = PO_ALLOW_INJECTION;
1646
1650 const PO_ALLOW_RETURNS = PO_ALLOW_RETURNS;
1652
1655 const PO_ALLOW_STATEMENT_NO_EFFECT = PO_ALLOW_STATEMENT_NO_EFFECT;
1657
1661 const PO_ALLOW_WEAK_REFERENCES = PO_ALLOW_WEAK_REFERENCES;
1663
1667 const PO_ASSUME_LOCAL = PO_ASSUME_LOCAL;
1669
1673 const PO_BROKEN_CAST = PO_BROKEN_CAST;
1675
1679 const PO_BROKEN_INT_ASSIGNMENTS = PO_BROKEN_INT_ASSIGNMENTS;
1681
1685 const PO_BROKEN_LIST_PARSING = PO_BROKEN_LIST_PARSING;
1687
1691 const PO_BROKEN_LIST_RANGE = PO_BROKEN_LIST_RANGE;
1693
1697 const PO_BROKEN_LOGIC_PRECEDENCE = PO_BROKEN_LOGIC_PRECEDENCE;
1699
1703 const PO_BROKEN_LOOP_STATEMENT = PO_BROKEN_LOOP_STATEMENT;
1705
1709 const PO_BROKEN_OPERATORS = PO_BROKEN_OPERATORS;
1711
1715 const PO_BROKEN_RANGE = PO_BROKEN_RANGE;
1717
1721 const PO_BROKEN_REFERENCES = PO_BROKEN_REFERENCES;
1723
1727 const PO_BROKEN_SPRINTF = PO_BROKEN_SPRINTF;
1729
1733 const PO_BROKEN_VARARGS = PO_BROKEN_VARARGS;
1735 const PO_DEFAULT = PO_DEFAULT;
1737
1739 const PO_FREE_OPTIONS = PO_FREE_OPTIONS;
1741
1743 const PO_IN_MODULE = PO_IN_MODULE;
1745
1749 const PO_LOCKDOWN = PO_LOCKDOWN;
1751
1754 const PO_LOCK_WARNINGS = PO_LOCK_WARNINGS;
1756
1760 const PO_NEW_STYLE = PO_NEW_STYLE;
1762
1775 const PO_NO_API = PO_NO_API;
1777
1780 const PO_NO_CHILD_PO_RESTRICTIONS = PO_NO_CHILD_PO_RESTRICTIONS;
1782
1785 const PO_NO_CLASS_DEFS = PO_NO_CLASS_DEFS;
1787
1790 const PO_NO_CONSTANT_DEFS = PO_NO_CONSTANT_DEFS;
1792
1795 const PO_NO_DATABASE = PO_NO_DATABASE;
1797
1801 const PO_NO_DEBUGGING = PO_NO_DEBUGGING;
1803 const PO_NO_EMBEDDED_LOGIC = PO_NO_EMBEDDED_LOGIC;
1805
1810 const PO_NO_EXTERNAL_ACCESS = PO_NO_EXTERNAL_ACCESS;
1812
1815 const PO_NO_EXTERNAL_INFO = PO_NO_EXTERNAL_INFO;
1817
1820 const PO_NO_EXTERNAL_PROCESS = PO_NO_EXTERNAL_PROCESS;
1822
1825 const PO_NO_FILESYSTEM = PO_NO_FILESYSTEM;
1827
1830 const PO_NO_GLOBAL_VARS = PO_NO_GLOBAL_VARS;
1832
1835 const PO_NO_GUI = PO_NO_GUI;
1837 const PO_NO_INHERIT_GLOBAL_VARS = PO_NO_INHERIT_GLOBAL_VARS;
1839
1841 const PO_NO_INHERIT_PROGRAM_DATA = PO_NO_INHERIT_PROGRAM_DATA;
1843
1847 const PO_NO_INHERIT_SYSTEM_CLASSES = PO_NO_INHERIT_SYSTEM_CLASSES;
1849
1853 const PO_NO_INHERIT_SYSTEM_CONSTANTS = PO_NO_INHERIT_SYSTEM_CONSTANTS;
1855
1859 const PO_NO_INHERIT_SYSTEM_FUNC_VARIANTS = PO_NO_INHERIT_SYSTEM_FUNC_VARIANTS;
1861
1863 const PO_NO_INHERIT_SYSTEM_HASHDECLS = PO_NO_INHERIT_SYSTEM_HASHDECLS;
1865
1869 const PO_NO_INHERIT_USER_CLASSES = PO_NO_INHERIT_USER_CLASSES;
1871
1875 const PO_NO_INHERIT_USER_CONSTANTS = PO_NO_INHERIT_USER_CONSTANTS;
1877 const PO_NO_INHERIT_USER_FUNC_VARIANTS = PO_NO_INHERIT_USER_FUNC_VARIANTS;
1879
1881 const PO_NO_INHERIT_USER_HASHDECLS = PO_NO_INHERIT_USER_HASHDECLS;
1883
1888 const PO_NO_IO = PO_NO_IO;
1890
1893 const PO_NO_LOCALE_CONTROL = PO_NO_LOCALE_CONTROL;
1895
1898 const PO_NO_MODULES = PO_NO_MODULES;
1900
1903 const PO_NO_NAMESPACE_DEFS = PO_NO_NAMESPACE_DEFS;
1905
1908 const PO_NO_NETWORK = PO_NO_NETWORK;
1910
1917 const PO_NO_NEW = PO_NO_NEW;
1919
1922 const PO_NO_PROCESS_CONTROL = PO_NO_PROCESS_CONTROL;
1924
1927 const PO_NO_REFLECTION = PO_NO_REFLECTION;
1929
1932 const PO_NO_SUBROUTINE_DEFS = PO_NO_SUBROUTINE_DEFS;
1934
1942 const PO_NO_SYSTEM_API = PO_NO_SYSTEM_API;
1944
1948 const PO_NO_SYSTEM_CLASSES = PO_NO_INHERIT_SYSTEM_CLASSES;
1950
1954 const PO_NO_SYSTEM_FUNC_VARIANTS = PO_NO_INHERIT_SYSTEM_FUNC_VARIANTS;
1956
1959 const PO_NO_TERMINAL_IO = PO_NO_TERMINAL_IO;
1961
1965 const PO_NO_THREADS = PO_NO_THREADS;
1967
1970 const PO_NO_THREAD_CLASSES = PO_NO_THREAD_CLASSES;
1972
1977 const PO_NO_THREAD_CONTROL = PO_NO_THREAD_CONTROL;
1979
1982 const PO_NO_THREAD_INFO = PO_NO_THREAD_INFO;
1984
1987 const PO_NO_TOP_LEVEL_STATEMENTS = PO_NO_TOP_LEVEL_STATEMENTS;
1989
1992 const PO_NO_TRANSIENT = PO_NO_TRANSIENT;
1994
1998 const PO_NO_UNCONTROLLED_APIS = PO_NO_UNCONTROLLED_APIS;
2000
2008 const PO_NO_USER_API = PO_NO_USER_API;
2010
2014 const PO_NO_USER_CLASSES = PO_NO_INHERIT_USER_CLASSES;
2016
2020 const PO_POSITIVE_OPTIONS = PO_POSITIVE_OPTIONS;
2022
2025 const PO_REQUIRE_OUR = PO_REQUIRE_OUR;
2027
2033 const PO_REQUIRE_PROTOTYPES = PO_REQUIRE_PROTOTYPES;
2035
2040 const PO_REQUIRE_TYPES = PO_REQUIRE_TYPES;
2042
2046 const PO_STRICT_ARGS = PO_STRICT_ARGS;
2048
2052 const PO_STRICT_BOOLEAN_EVAL = PO_STRICT_BOOLEAN_EVAL;
2054
2058 const PO_STRICT_TYPES = PO_STRICT_TYPES;
2060
2064 const PO_STRONG_ENCAPSULATION = PO_STRONG_ENCAPSULATION;
2066
2070 const ParseOptionCmdCodeMap = qore(ParseOptionMap::getCodeToStringMap());
2072
2076 const ParseOptionCmdStringMap = qore(ParseOptionMap::getStringToCodeMap());
2078
2082 const ParseOptionCodeMap = qore(pomaps.getCodeToStringMap());
2084
2088 const ParseOptionStringMap = qore(pomaps.getStringToCodeMap());
2090
2094
2096 const WARN_ALL = QP_WARN_ALL;
2098
2102 const WARN_BROKEN_LOGIC_PRECEDENCE = QP_WARN_BROKEN_LOGIC_PRECEDENCE;
2104
2106 const WARN_CALL_WITH_TYPE_ERRORS = QP_WARN_CALL_WITH_TYPE_ERRORS;
2108
2121 const WARN_DEFAULT = QP_WARN_DEFAULT;
2123
2125 const WARN_DEPRECATED = QP_WARN_DEPRECATED;
2127
2129 const WARN_DUPLICATE_BLOCK_VARS = QP_WARN_DUPLICATE_BLOCK_VARS;
2131
2133 const WARN_DUPLICATE_GLOBAL_VARS = QP_WARN_DUPLICATE_GLOBAL_VARS;
2135
2137 const WARN_DUPLICATE_HASH_KEY = QP_WARN_DUPLICATE_HASH_KEY;
2139
2141 const WARN_DUPLICATE_LOCAL_VARS = QP_WARN_DUPLICATE_LOCAL_VARS;
2143
2145 const WARN_EXCESS_ARGS = QP_WARN_EXCESS_ARGS;
2147
2153 const WARN_INVALID_CATCH = QP_WARN_INVALID_CATCH;
2155
2157 const WARN_INVALID_OPERATION = QP_WARN_INVALID_OPERATION;
2159
2170 const WARN_MODULES = QP_WARN_MODULES;
2172 const WARN_NONE = QP_WARN_NONE;
2174
2178 const WARN_NONEXISTENT_METHOD_CALL = QP_WARN_NONEXISTENT_METHOD_CALL;
2180
2182 const WARN_RETURN_VALUE_IGNORED = QP_WARN_RETURN_VALUE_IGNORED;
2184
2186 const WARN_UNDECLARED_VAR = QP_WARN_UNDECLARED_VAR;
2188
2190 const WARN_UNKNOWN_WARNING = QP_WARN_UNKNOWN_WARNING;
2192
2194 const WARN_UNREACHABLE_CODE = QP_WARN_UNREACHABLE_CODE;
2196
2198 const WARN_UNREFERENCED_VARIABLE = QP_WARN_UNREFERENCED_VARIABLE;
2200
2202 const WARN_WARNING_MASK_UNCHANGED = QP_WARN_WARNING_MASK_UNCHANGED;
2204}
Qore::Expression
Expression objects represent a single executable expression.
Definition QC_Expression.dox.h:7
Qore::ProgramControl
The ProgramControl class provides safe information about a Qore program.
Definition QC_ProgramControl.dox.h:45
Qore::Program
Program objects allow Qore programs to support subprograms with the option to restrict capabilities,...
Definition QC_Program.dox.h:56
Qore::Program::importHashDecl
nothing importHashDecl(string name, *string new_name)
Imports a typed hash declaration into the program object's space.
Qore::Program::setParseOptions
nothing setParseOptions(softint opt=PO_DEFAULT)
Sets parse options in the parse option mask for the Program object.
Qore::Program::getGlobalVariable
auto getGlobalVariable(string varname, *reference< bool > rexists)
Returns a the value of the global variable identified by the first string argument.
Qore::Program::getAllDefines
*hash< auto > getAllDefines()
Retrieves all parse defines in the current Program.
Qore::Program::loadApplyToPrivateUserModuleWarn
*hash< ExceptionInfo > loadApplyToPrivateUserModuleWarn(string name, int warning_mask=WARN_MODULES)
Loads a Qore user module privately into the given Program container at run-time; after this call the ...
Qore::Program::copy
copy()
Throws an exception to prevent objects of this class from being copied.
Qore::Program::getThreadList
list< int > getThreadList()
returns a list of thread IDs active in this Program
Qore::Program::callStaticMethodArgs
auto callStaticMethodArgs(string class_name, string method, *softlist< auto > call_args)
Calls a static method of an object, passing the arguments to the function as arguments to the method.
Qore::Program::getUserFunctionList
softlist< string > getUserFunctionList()
Returns a list of strings of all user functions defined in the program object.
Qore::Program::getScriptName
*string getScriptName()
Returns the current script name as a string or NOTHING if not set.
Qore::Program::loadApplyToUserModuleWarn
*hash< ExceptionInfo > loadApplyToUserModuleWarn(string name, *softbool reinject, int warning_mask=WARN_MODULES, bool reexport=False)
Loads a Qore user module into the given Program container at run-time; after this call the Program ob...
Qore::Program::disableParseOptions
nothing disableParseOptions(softint opt)
Removes the given parse options to the current parse option mask.
Qore::Program::parse
*hash< ExceptionInfo > parse(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label=True)
Parses the string argument and adds the code to the Program object.
Qore::Program::findFunctionVariants
list< hash< auto > > findFunctionVariants(string function)
finds all variants of a function or class method and returns a list of the results
Qore::Program::undefine
nothing undefine(string def)
Unsets a parse define for the current Program.
Qore::Program::importGlobalVariable
nothing importGlobalVariable(string varname, string import_as, bool readonly=False)
Imports a global variable into the program object's space.
Qore::Program::importSystemConstants
importSystemConstants()
imports system constants into a Program container at runtime; will throw an exception if the Program ...
Qore::Program::replaceParseOptions
nothing replaceParseOptions(softint opt)
Replaces the parse options for the Program object.
Qore::Program::loadApplyToPrivateUserModule
loadApplyToPrivateUserModule(string name, int warning_mask=WARN_MODULES)
Loads a Qore user module privately into the given Program container at run-time; after this call the ...
Qore::Program::loadApplyToUserModule
loadApplyToUserModule(string name, *softbool reinject, int warning_mask=WARN_MODULES, bool reexport=False)
Loads a Qore user module into the given Program container at run-time; after this call the Program ob...
Qore::Program::getCapabilityMask
int getCapabilityMask()
Returns the capability mask of the program.
Qore::Program::getExpression
Expression getExpression(string source, string label)
returns an expression object for the given source code
Qore::Program::constructor
constructor(softint po=PO_DEFAULT)
Creates the program object and optionally sets program capabilities (parse options)
Qore::Program::getParseOptions
int getParseOptions()
Returns the current binary-or'ed parse option mask for the Program object.
Qore::Program::importSystemHashDecls
importSystemHashDecls()
imports system hashdecls into a Program container at runtime; will throw an exception if the Program ...
Qore::Program::importFunction
nothing importFunction(string func, string new_name, *softbool inject)
Imports a function into the program object's space and gives it a new name; any calls to the imported...
Qore::Program::importGlobalVariable
nothing importGlobalVariable(string varname, bool readonly=False)
Imports a global variable into the program object's space.
Qore::Program::setTimeZoneRegion
nothing setTimeZoneRegion(string region)
Sets the default local time zone for the object from a path to a zoneinfo time zone region file.
Qore::Program::run
auto run()
Runs the program and optionally returns a value if the top-level code exits with a return statement.
Qore::Program::setThreadInit
bool setThreadInit(*code init)
Sets a call reference or closure to run every time a new thread is started.
Qore::Program::loadModuleWarn
*hash< ExceptionInfo > loadModuleWarn(string name, int warning_mask=WARN_MODULES)
Loads a Qore module into the Program object at run-time.
Qore::Program::issueModuleCmd
static nothing issueModuleCmd(string module, string cmd)
Issues a module command for the given module in the current Program object.
Qore::Program::getCallerCapabilityMask
static int getCallerCapabilityMask(int n=1)
Returns the capability mask of the program n calls above this call.
Qore::Program::parseCommit
nothing parseCommit()
Commits and pending code processed with Program::parsePending() to the Program object after resolving...
Qore::Program::getFeatureList
list< string > getFeatureList()
Returns a list of strings of the builtin and module-supplied features of Qore.
Qore::Program::callStaticMethod
auto callStaticMethod(string class_name, string method,...)
Calls a static method of an object, passing the arguments to the function as arguments to the method.
Qore::Program::parseCommit
*hash< ExceptionInfo > parseCommit(int warning_mask)
Commits and pending code processed with Program::parsePending() to the Program object after resolving...
Qore::Program::getDefine
auto getDefine(string def)
Retrieves the value of the given parse define in the current Program.
Qore::Program::loadUserModuleWithProgram
loadUserModuleWithProgram(string name, Qore::Program pgm, int warning_mask=WARN_MODULES)
Loads a Qore user module into the Program object at run-time using the given Program object as the co...
Qore::Program::getGlobalVars
hash< auto > getGlobalVars()
returns a hash of global variables
Qore::Program::importSystemApi
importSystemApi()
imports system classes and functions into a Program container at runtime; will throw an exception if ...
Qore::Program::setGlobalVarValue
nothing setGlobalVarValue(string name, auto value)
set the value of a global variable
Qore::Program::getTimeZone
TimeZone getTimeZone()
Returns the default local time zone for the object.
Qore::Program::getScriptDir
*string getScriptDir()
Returns the current script directory as a string or NOTHING if not set.
Qore::Program::setTimeZone
nothing setTimeZone(TimeZone zone)
Sets the default local time zone for the object.
Qore::Program::setScriptPath
nothing setScriptPath(*string path)
Sets (or clears) the script path (directory and filename) for the object.
Qore::Program::getProgramId
int getProgramId()
Get program id.
Qore::Program::importFunction
nothing importFunction(string func)
Imports a function into the program object's space; any calls to the imported function will run with ...
Qore::Program::loadModule
loadModule(string name, int warning_mask=WARN_MODULES)
Loads a Qore module into the Program object at run-time.
Qore::Program::setTimeZoneUTCOffset
nothing setTimeZoneUTCOffset(softint seconds_east)
Sets the default time zone for the Program object based on the number of seconds east of UTC; for zon...
Qore::Program::parsePending
*hash< ExceptionInfo > parsePending(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label=True)
Parses the text passed to pending lists in the Program object; does not resolve all references or com...
Qore::Program::define
nothing define(string def, auto val)
Sets a parse define for the current Program.
Qore::Program::loadUserModuleWithProgramWarn
*hash< ExceptionInfo > loadUserModuleWithProgramWarn(string name, Qore::Program pgm, int warning_mask=WARN_MODULES)
Loads a Qore user module into the Program object at run-time using the given Program object as the co...
Qore::Program::existsFunction
bool existsFunction(string name)
Checks if a user function exists in the program object.
Qore::Program::importClass
nothing importClass(string cls, *string new_name, *softbool inject, int module_visibility=CSP_UNCHANGED)
Imports a class into the program object's space; any calls to the imported class's code will run with...
Qore::Program::getCapabilityMask
static int getCapabilityMask()
Returns the capability mask of the current program.
Qore::Program::getProgram
ProgramControl getProgram()
Get ProgramControl.
Qore::Program::callFunction
auto callFunction(string name,...)
Calls a function in the program object and returns the return value.
Qore::Program::parseRollback
nothing parseRollback()
Removes all partially or fully-parsed code from the object along with other builtin objects; a Progra...
Qore::Program::importSystemClasses
importSystemClasses()
imports system classes into a Program container at runtime; will throw an exception if the Program wa...
Qore::Program::importSystemFunctions
importSystemFunctions()
imports system functions into a Program container at runtime; will throw an exception if the Program ...
Qore::Program::lockOptions
nothing lockOptions()
Locks parse options so that they cannot be changed.
Qore::Program::destructor
destructor()
Waits for all threads to finish executing, then deletes all global variables, dereferences the intern...
Qore::Program::getCallReference
code getCallReference(string identifier)
resolve the string as a call reference in the given Program
Qore::Program::getScriptPath
*string getScriptPath()
Returns the current script directory and filename if known, otherwise returns NOTHING.
Qore::Program::getParseOptionStringList
list< string > getParseOptionStringList()
returns a list of parse option strings for the program object
Qore::Program::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::Program::callFunctionArgs
auto callFunctionArgs(string name, *softlist< auto > vargs)
Calls a function in the program object giving the arguments to the function as a list and returns the...
Qore::Program::issueModuleCmd
nothing issueModuleCmd(string module, string cmd)
issues a module command for the given module
Qore::TimeZone
The TimeZone class provides access to time zone functionality.
Definition QC_TimeZone.dox.h:11
Qore::True
const True
logical True
Definition qc_qore.dox.h:98
Qore::False
const False
logical False
Definition qc_qore.dox.h:96
Qore::DOM_NETWORK
const DOM_NETWORK
provides network functionality
Definition QC_Program.dox.h:1567
Qore::DOM_INJECTION
const DOM_INJECTION
provides functionality related to code / dependency injection
Definition QC_Program.dox.h:1549
Qore::DOM_DATABASE
const DOM_DATABASE
provides access to databases
Definition QC_Program.dox.h:1513
Qore::DOM_MODULE
const DOM_MODULE
provides access to external modules
Definition QC_Program.dox.h:1561
Qore::DOM_EXTERNAL_PROCESS
const DOM_EXTERNAL_PROCESS
provides external process control functionality (can affect, start, or stop external processes)
Definition QC_Program.dox.h:1533
Qore::DOM_TERMINAL_IO
const DOM_TERMINAL_IO
provides terminal I/O functionality
Definition QC_Program.dox.h:1583
Qore::DOM_DEBUGGER
const DOM_DEBUGGER
provides debugging functionality
Definition QC_Program.dox.h:1517
Qore::DOM_PROCESS_CONTROL
const DOM_PROCESS_CONTROL
provides process control functionality (can affect or stop the current process)
Definition QC_Program.dox.h:1573
Qore::DOM_EXTERNAL_INFO
const DOM_EXTERNAL_INFO
provides access to external information (ex: hostname, pid, process uid, etc)
Definition QC_Program.dox.h:1527
Qore::DOM_THREAD_CLASS
const DOM_THREAD_CLASS
provides thread control functionality
Definition QC_Program.dox.h:1589
Qore::DOM_EMBEDDED_LOGIC
const DOM_EMBEDDED_LOGIC
provides dynamic parsing functionality
Definition QC_Program.dox.h:1521
Qore::DOM_UNCONTROLLED_API
const DOM_UNCONTROLLED_API
provides unchecked access to system functionality that could bypass Qore's sandboxing controls
Definition QC_Program.dox.h:1607
Qore::DOM_GUI
const DOM_GUI
provides GUI functionality
Definition QC_Program.dox.h:1545
Qore::DOM_REFLECTION
const DOM_REFLECTION
provides reflection functionality
Definition QC_Program.dox.h:1577
Qore::DOM_LOCALE_CONTROL
const DOM_LOCALE_CONTROL
provides access to functionality that changes locale information
Definition QC_Program.dox.h:1555
Qore::DOM_THREAD_INFO
const DOM_THREAD_INFO
provides access to information regarding threading (tid, active threads, etc)
Definition QC_Program.dox.h:1601
Qore::DOM_FILESYSTEM
const DOM_FILESYSTEM
provides access to the filesystem
Definition QC_Program.dox.h:1539
Qore::DOM_THREAD_CONTROL
const DOM_THREAD_CONTROL
provides the ability to check or manipulate threads (including starting new threads)
Definition QC_Program.dox.h:1595
Qore::CSP_SETPRIV
const CSP_SETPRIV
Imports the object with private visibility.
Definition QC_Program.dox.h:1495
Qore::CSP_SETPUB
const CSP_SETPUB
Imports the object with public visibility.
Definition QC_Program.dox.h:1497
Qore::CSP_UNCHANGED
const CSP_UNCHANGED
Imports the object with the same module visibility.
Definition QC_Program.dox.h:1499
Qore::PO_NO_GUI
const PO_NO_GUI
Disallows access to functionality that draws graphics to the display.
Definition QC_Program.dox.h:1835
Qore::PO_NO_GLOBAL_VARS
const PO_NO_GLOBAL_VARS
Disallows the use of global variables.
Definition QC_Program.dox.h:1830
Qore::PO_NO_USER_CLASSES
const PO_NO_USER_CLASSES
Prohibits user classes from being imported into the new Program object.
Definition QC_Program.dox.h:2014
Qore::PO_IN_MODULE
const PO_IN_MODULE
Only set by the system when in a user module Program.
Definition QC_Program.dox.h:1743
Qore::PO_NO_SYSTEM_API
const PO_NO_SYSTEM_API
Prohibits any code from being inherited into the Program object, including the system API.
Definition QC_Program.dox.h:1942
Qore::PO_BROKEN_LIST_PARSING
const PO_BROKEN_LIST_PARSING
allows for old pre-Qore 0.8.12 broken list rewriting in the parser
Definition QC_Program.dox.h:1685
Qore::PO_NO_EXTERNAL_ACCESS
const PO_NO_EXTERNAL_ACCESS
Prohibits any external access.
Definition QC_Program.dox.h:1810
Qore::PO_NO_PROCESS_CONTROL
const PO_NO_PROCESS_CONTROL
Disallows access to functions that would affect the current process (exit(), exec(),...
Definition QC_Program.dox.h:1922
Qore::PO_NO_THREAD_CONTROL
const PO_NO_THREAD_CONTROL
Disallows access to any thread-control functions and thread-relevant statements and operators.
Definition QC_Program.dox.h:1977
Qore::PO_POSITIVE_OPTIONS
const PO_POSITIVE_OPTIONS
mask of all parse options allowing for more freedom (instead of less)
Definition QC_Program.dox.h:2020
Qore::PO_REQUIRE_PROTOTYPES
const PO_REQUIRE_PROTOTYPES
Requires all function and method parameters and return types to have type declarations.
Definition QC_Program.dox.h:2033
Qore::PO_ALLOW_INJECTION
const PO_ALLOW_INJECTION
Allows code/dependency injections in the contained Program object.
Definition QC_Program.dox.h:1644
Qore::PO_LOCK_WARNINGS
const PO_LOCK_WARNINGS
Disallows changes to the warning mask.
Definition QC_Program.dox.h:1754
Qore::PO_NO_NETWORK
const PO_NO_NETWORK
Disallows access to network functionality.
Definition QC_Program.dox.h:1908
Qore::PO_NO_EXTERNAL_INFO
const PO_NO_EXTERNAL_INFO
Disallows access to functionality that provides information about the computing environment.
Definition QC_Program.dox.h:1815
Qore::PO_BROKEN_RANGE
const PO_BROKEN_RANGE
allows for old pre-Qore 0.9.5 handling of range() and xrange()
Definition QC_Program.dox.h:1715
Qore::DomainStringMap
const DomainStringMap
Maps from functional domain strings to functional domain bitfield integer codes.
Definition QC_Program.dox.h:1625
Qore::PO_NEW_STYLE
const PO_NEW_STYLE
Set a more C++ or Java type programming style; prohibits usage of the "$" character and also assumes ...
Definition QC_Program.dox.h:1760
Qore::PO_STRICT_BOOLEAN_EVAL
const PO_STRICT_BOOLEAN_EVAL
Sets strict mathematical boolean evaluation runtime mode (the qore default prior to v0....
Definition QC_Program.dox.h:2052
Qore::PO_LOCKDOWN
const PO_LOCKDOWN
Sets very restrictive access; this restriction is designed to allow code to only execute logic,...
Definition QC_Program.dox.h:1749
Qore::PO_NO_INHERIT_USER_HASHDECLS
const PO_NO_INHERIT_USER_HASHDECLS
Prohibits user hashdecls from being imported into the new Program object.
Definition QC_Program.dox.h:1881
Qore::PO_NO_DEBUGGING
const PO_NO_DEBUGGING
Forbids debugging of the current Program object; when this option is set, debuggers cannot attach to ...
Definition QC_Program.dox.h:1801
Qore::PO_NO_TOP_LEVEL_STATEMENTS
const PO_NO_TOP_LEVEL_STATEMENTS
Disallows top level code.
Definition QC_Program.dox.h:1987
Qore::PO_NO_INHERIT_USER_CLASSES
const PO_NO_INHERIT_USER_CLASSES
Prohibits user classes from being imported into the new Program object.
Definition QC_Program.dox.h:1869
Qore::PO_NO_REFLECTION
const PO_NO_REFLECTION
Disallows access to reflection.
Definition QC_Program.dox.h:1927
Qore::PO_BROKEN_SPRINTF
const PO_BROKEN_SPRINTF
Enables broken sprintf() handling where no argument is treated diffferently than NOTHING.
Definition QC_Program.dox.h:1727
Qore::PO_NO_INHERIT_PROGRAM_DATA
const PO_NO_INHERIT_PROGRAM_DATA
Do not inherit module-specific Program data from the parent.
Definition QC_Program.dox.h:1841
Qore::PO_NO_TRANSIENT
const PO_NO_TRANSIENT
Disallows the transient.
Definition QC_Program.dox.h:1992
Qore::PO_NO_CONSTANT_DEFS
const PO_NO_CONSTANT_DEFS
Disallows constant definitions.
Definition QC_Program.dox.h:1790
Qore::PO_NO_INHERIT_SYSTEM_FUNC_VARIANTS
const PO_NO_INHERIT_SYSTEM_FUNC_VARIANTS
Prohibits builtin/system function variants from being imported into the new Program object.
Definition QC_Program.dox.h:1859
Qore::PO_NO_SYSTEM_FUNC_VARIANTS
const PO_NO_SYSTEM_FUNC_VARIANTS
Prohibits builtin/system function variants from being imported into the new Program object.
Definition QC_Program.dox.h:1954
Qore::PO_BROKEN_INT_ASSIGNMENTS
const PO_BROKEN_INT_ASSIGNMENTS
allows for old pre-Qore 0.8.12 broken runtime int assignments where runtime type errors were ignored
Definition QC_Program.dox.h:1679
Qore::PO_NO_USER_API
const PO_NO_USER_API
Prohibits any user code from being inherited into the Program object.
Definition QC_Program.dox.h:2008
Qore::PO_NO_FILESYSTEM
const PO_NO_FILESYSTEM
Disallows access to the filesystem.
Definition QC_Program.dox.h:1825
Qore::DomainCodeMap
const DomainCodeMap
Maps from functional domain bitfield code values (as string keys) to functional domain names.
Definition QC_Program.dox.h:1619
Qore::PO_BROKEN_OPERATORS
const PO_BROKEN_OPERATORS
allows for old pre-Qore 0.8.12 broken runtime parsing of multi-character operators with spaces
Definition QC_Program.dox.h:1709
Qore::PO_REQUIRE_TYPES
const PO_REQUIRE_TYPES
Requires all function and method parameters, return types, variables, and object members to have type...
Definition QC_Program.dox.h:2040
Qore::PO_STRICT_TYPES
const PO_STRICT_TYPES
Sets strict type checking and automatically sets default values for lvalues with type restrictions fo...
Definition QC_Program.dox.h:2058
Qore::PO_ALLOW_RETURNS
const PO_ALLOW_RETURNS
Allows the use of the deprecated returns keyword.
Definition QC_Program.dox.h:1650
Qore::PO_NO_SUBROUTINE_DEFS
const PO_NO_SUBROUTINE_DEFS
Disallows subroutine (function) definitions.
Definition QC_Program.dox.h:1932
Qore::PO_NO_THREADS
const PO_NO_THREADS
Prohibits access to all threading information.
Definition QC_Program.dox.h:1965
Qore::PO_REQUIRE_OUR
const PO_REQUIRE_OUR
Requires global variables to be declared with our before use.
Definition QC_Program.dox.h:2025
Qore::PO_ALLOW_WEAK_REFERENCES
const PO_ALLOW_WEAK_REFERENCES
Allows the use of the weak assignment operator (:=).
Definition QC_Program.dox.h:1661
Qore::PO_NO_INHERIT_GLOBAL_VARS
const PO_NO_INHERIT_GLOBAL_VARS
Precludes global variables from being inherited into the new Program object.
Definition QC_Program.dox.h:1837
Qore::PO_BROKEN_LOOP_STATEMENT
const PO_BROKEN_LOOP_STATEMENT
allows for old pre-Qore 0.8.13 handling of break and continue
Definition QC_Program.dox.h:1703
Qore::PO_BROKEN_LOGIC_PRECEDENCE
const PO_BROKEN_LOGIC_PRECEDENCE
allows for old pre-Qore 0.8.12 precedence of logical and bitwise operators
Definition QC_Program.dox.h:1697
Qore::PO_BROKEN_REFERENCES
const PO_BROKEN_REFERENCES
allows for old pre-Qore 0.8.13 handling of reference and *reference
Definition QC_Program.dox.h:1721
Qore::PO_NO_UNCONTROLLED_APIS
const PO_NO_UNCONTROLLED_APIS
disallow access to "uncontrolled APIs" like external language bindings or direct generic system call ...
Definition QC_Program.dox.h:1998
Qore::PO_NO_API
const PO_NO_API
Prohibits any code from being inherited into the Program object, including the system API.
Definition QC_Program.dox.h:1775
Qore::PO_NO_CLASS_DEFS
const PO_NO_CLASS_DEFS
Disallows class definitions.
Definition QC_Program.dox.h:1785
Qore::PO_NO_INHERIT_USER_FUNC_VARIANTS
const PO_NO_INHERIT_USER_FUNC_VARIANTS
Precludes public user function variants from being inherited into the new Program object.
Definition QC_Program.dox.h:1877
Qore::PO_NO_NEW
const PO_NO_NEW
Disallows use of the new operator.
Definition QC_Program.dox.h:1917
Qore::PO_NO_LOCALE_CONTROL
const PO_NO_LOCALE_CONTROL
Disallows access to functionality that can change locale parameters.
Definition QC_Program.dox.h:1893
Qore::PO_NO_INHERIT_SYSTEM_HASHDECLS
const PO_NO_INHERIT_SYSTEM_HASHDECLS
Prohibits system hashdecls from being imported into the new Program object.
Definition QC_Program.dox.h:1863
Qore::PO_NO_CHILD_PO_RESTRICTIONS
const PO_NO_CHILD_PO_RESTRICTIONS
Allows child program objects to have fewer parse restrictions (i.e. more capabilies) than the parent ...
Definition QC_Program.dox.h:1780
Qore::PO_NO_NAMESPACE_DEFS
const PO_NO_NAMESPACE_DEFS
Disallows new namespace definitions.
Definition QC_Program.dox.h:1903
Qore::PO_STRONG_ENCAPSULATION
const PO_STRONG_ENCAPSULATION
disallows out-of-line class and namespace declarations
Definition QC_Program.dox.h:2064
Qore::PO_NO_TERMINAL_IO
const PO_NO_TERMINAL_IO
Disallows access to reading from and/or writing to the terminal.
Definition QC_Program.dox.h:1959
Qore::ParseOptionCmdStringMap
const ParseOptionCmdStringMap
Maps from parse option strings to parse option integer codes. Names are in form used in script or on ...
Definition QC_Program.dox.h:2076
Qore::PO_ALLOW_BARE_REFS
const PO_ALLOW_BARE_REFS
Prohibits the use of the '$' character in variable names, method calls, and object member references.
Definition QC_Program.dox.h:1631
Qore::PO_NO_EXTERNAL_PROCESS
const PO_NO_EXTERNAL_PROCESS
Disallows any access to external processes (with system(), backquote(), exec(), etc)
Definition QC_Program.dox.h:1820
Qore::PO_NO_SYSTEM_CLASSES
const PO_NO_SYSTEM_CLASSES
Prohibits system classes from being imported into the new Program object.
Definition QC_Program.dox.h:1948
Qore::PO_BROKEN_CAST
const PO_BROKEN_CAST
Allows for old pre-Qore 0.9.4 broken cast<> operator behavior where NOTHING was silently accepted.
Definition QC_Program.dox.h:1673
Qore::PO_BROKEN_LIST_RANGE
const PO_BROKEN_LIST_RANGE
allows for old pre-Qore 2.0 broken list range handling
Definition QC_Program.dox.h:1691
Qore::PO_NO_EMBEDDED_LOGIC
const PO_NO_EMBEDDED_LOGIC
Prohibits embedded logic from being used.
Definition QC_Program.dox.h:1803
Qore::PO_BROKEN_VARARGS
const PO_BROKEN_VARARGS
allows for old pre-Qore 1.17 handling of varargs
Definition QC_Program.dox.h:1733
Qore::PO_FREE_OPTIONS
const PO_FREE_OPTIONS
mask of options that have no effect on code access or code safety but just affect programming style
Definition QC_Program.dox.h:1739
Qore::PO_NO_IO
const PO_NO_IO
Prohibits all terminal and file I/O and GUI operations.
Definition QC_Program.dox.h:1888
Qore::PO_NO_THREAD_INFO
const PO_NO_THREAD_INFO
Disallows access to functionality that provides information about threading.
Definition QC_Program.dox.h:1982
Qore::PO_NO_DATABASE
const PO_NO_DATABASE
Disallows access to database functionality.
Definition QC_Program.dox.h:1795
Qore::ParseOptionCmdCodeMap
const ParseOptionCmdCodeMap
Maps from parse option code values (as string keys) to parse option names. Names are in form used in ...
Definition QC_Program.dox.h:2070
Qore::PO_ASSUME_LOCAL
const PO_ASSUME_LOCAL
Assume local variable scope when variables are first referenced if no my or our is present.
Definition QC_Program.dox.h:1667
Qore::PO_STRICT_ARGS
const PO_STRICT_ARGS
Prohibits access to builtin functions and methods flagged with RT_NOOP and also causes errors to be r...
Definition QC_Program.dox.h:2046
Qore::ParseOptionCodeMap
const ParseOptionCodeMap
Maps from parse option code values (as string keys) to parse option names.
Definition QC_Program.dox.h:2082
Qore::PO_NO_MODULES
const PO_NO_MODULES
Disallows loading modules with the %requires directive or at runtime with load_module()
Definition QC_Program.dox.h:1898
Qore::PO_ALLOW_DEBUGGER
const PO_ALLOW_DEBUGGER
Allows the use of functionality required to implement a debugger, mainly via DebugProgram.
Definition QC_Program.dox.h:1636
Qore::ParseOptionStringMap
const ParseOptionStringMap
Maps from parse option strings to parse option bitfield integer codes.
Definition QC_Program.dox.h:2088
Qore::PO_ALLOW_STATEMENT_NO_EFFECT
const PO_ALLOW_STATEMENT_NO_EFFECT
Allows for old pre-Qore 0.9 top-level statements having no effect.
Definition QC_Program.dox.h:1655
Qore::PO_NO_THREAD_CLASSES
const PO_NO_THREAD_CLASSES
Disallows access to any thread classes.
Definition QC_Program.dox.h:1970
Qore::PO_NO_INHERIT_USER_CONSTANTS
const PO_NO_INHERIT_USER_CONSTANTS
Prohibits user constants from being imported into the new Program object.
Definition QC_Program.dox.h:1875
Qore::PO_NO_INHERIT_SYSTEM_CONSTANTS
const PO_NO_INHERIT_SYSTEM_CONSTANTS
Prohibits system constants from being imported into the new Program object.
Definition QC_Program.dox.h:1853
Qore::PO_NO_INHERIT_SYSTEM_CLASSES
const PO_NO_INHERIT_SYSTEM_CLASSES
Prohibits system classes from being imported into the new Program object.
Definition QC_Program.dox.h:1847
Qore::PO_DEFAULT
const PO_DEFAULT
This option is the empty option, meaning no options are set.
Definition QC_Program.dox.h:1735
Qore::hash
hash< auto > hash(object obj)
Returns a hash of an object's members.
Qore::list
list< auto > list(...)
Returns a list of the arguments passed at the top level.
Qore::WARN_CALL_WITH_TYPE_ERRORS
const WARN_CALL_WITH_TYPE_ERRORS
Enables warnings when the parser determines that the argument types of a function or method call are ...
Definition QC_Program.dox.h:2106
Qore::WARN_BROKEN_LOGIC_PRECEDENCE
const WARN_BROKEN_LOGIC_PRECEDENCE
This warns before expressions affected by %broken-logic-precedence.
Definition QC_Program.dox.h:2102
Qore::WARN_DUPLICATE_HASH_KEY
const WARN_DUPLICATE_HASH_KEY
Enables a warning when an immediate hash is declared and at least one of the keys is repeated.
Definition QC_Program.dox.h:2137
Qore::WARN_WARNING_MASK_UNCHANGED
const WARN_WARNING_MASK_UNCHANGED
This warning means that the embedded code tried to change the warning mask, but it was locked,...
Definition QC_Program.dox.h:2202
Qore::WARN_NONEXISTENT_METHOD_CALL
const WARN_NONEXISTENT_METHOD_CALL
Indicates that the embedded code is calling an unknown method in a class.
Definition QC_Program.dox.h:2178
Qore::WARN_UNDECLARED_VAR
const WARN_UNDECLARED_VAR
Indicates that the embedded code referenced an undeclared variable that will be assumed to be a globa...
Definition QC_Program.dox.h:2186
Qore::WARN_NONE
const WARN_NONE
Represents no warning.
Definition QC_Program.dox.h:2172
Qore::WARN_DUPLICATE_BLOCK_VARS
const WARN_DUPLICATE_BLOCK_VARS
Enables a warning when a program declares a local variable more than once in the same block; note tha...
Definition QC_Program.dox.h:2129
Qore::WARN_UNREACHABLE_CODE
const WARN_UNREACHABLE_CODE
Indicates that code cannot be reached (for example; code in the same local block after an uncondition...
Definition QC_Program.dox.h:2194
Qore::WARN_MODULES
const WARN_MODULES
The default warning mask for user modules.
Definition QC_Program.dox.h:2170
Qore::WARN_UNKNOWN_WARNING
const WARN_UNKNOWN_WARNING
Indicates that the embedded code tried to enable or disable an unknown warning.
Definition QC_Program.dox.h:2190
Qore::WARN_UNREFERENCED_VARIABLE
const WARN_UNREFERENCED_VARIABLE
This warning is raised when a variable is declared in a block but never referenced.
Definition QC_Program.dox.h:2198
Qore::WARN_DEPRECATED
const WARN_DEPRECATED
Enables a warning when deprecated code is used.
Definition QC_Program.dox.h:2125
Qore::WARN_INVALID_OPERATION
const WARN_INVALID_OPERATION
Indicates that the embedded code performs some operation that is guaranteed to produce no result (for...
Definition QC_Program.dox.h:2157
Qore::WARN_DUPLICATE_GLOBAL_VARS
const WARN_DUPLICATE_GLOBAL_VARS
Indicates that the embedded code has declared the same global variable more than once.
Definition QC_Program.dox.h:2133
Qore::WARN_DEFAULT
const WARN_DEFAULT
The default warning mask.
Definition QC_Program.dox.h:2121
Qore::WARN_ALL
const WARN_ALL
Enables all warnings.
Definition QC_Program.dox.h:2096
Qore::WARN_EXCESS_ARGS
const WARN_EXCESS_ARGS
Enables a warning when a function or method call is made with more arguments than are used by the fun...
Definition QC_Program.dox.h:2145
Qore::WARN_INVALID_CATCH
const WARN_INVALID_CATCH
This warns when the catch variable has no type definition and types are required.
Definition QC_Program.dox.h:2153
Qore::WARN_RETURN_VALUE_IGNORED
const WARN_RETURN_VALUE_IGNORED
Enables a warning when a function or method call is made with no side effects and the return value is...
Definition QC_Program.dox.h:2182
Qore::WARN_DUPLICATE_LOCAL_VARS
const WARN_DUPLICATE_LOCAL_VARS
Enables a warning when a local variable with the same name is declared in a subblock (ie another loca...
Definition QC_Program.dox.h:2141
Qore
main Qore-language namespace
Definition Pseudo_QC_All.dox.h:3
Qore::SourceLocationInfo
source location information
Definition QC_Program.dox.h:8
Qore::SourceLocationInfo::endline
int endline
the ending source line number
Definition QC_Program.dox.h:12
Qore::SourceLocationInfo::builtin
bool builtin
if True then the code is builtin and there is no user source location
Definition QC_Program.dox.h:10
Qore::SourceLocationInfo::line
int line
the starting source line number
Definition QC_Program.dox.h:16
Qore::SourceLocationInfo::source
*string source
the source object or file name tag (used when multiple source objects are defined from the same sourc...
Definition QC_Program.dox.h:20
Qore::SourceLocationInfo::file
*string file
the file name or parse label for the code
Definition QC_Program.dox.h:14
Qore::SourceLocationInfo::offset
int offset
the offset line in the source (for when multiple source objects are defined from the same source)
Definition QC_Program.dox.h:18