Qore Programming Language Reference Manual  0.8.13
QC_Program.dox.h
1 namespace Qore {
4 
29 class Program {
30 
31 public:
33 
51 auto callFunction(string name, ...);
52 
53 public:
55 
73 auto callFunctionArgs(string name, *softlist vargs);
74 
75 public:
77 
102  constructor(softint po = PO_DEFAULT);
103 
104 public:
106 
108  copy();
109 
110 public:
112 
120 nothing define(string def, auto val);
121 
122 public:
124 /***/
125  destructor();
126 
127 public:
129 
144 nothing disableParseOptions(softint opt);
145 
146 public:
148 
163 bool existsFunction(string name);
164 
165 public:
167 
177 list findFunctionVariants(string function);
178 
179 public:
181 
193 
194 public:
196 
205 auto getDefine(string def);
206 
207 public:
209 
220 auto getGlobalVariable(string varname, *reference<bool> rexists);
221 
222 public:
224 
239 
240 public:
242 
249 int getParseOptions();
250 
251 public:
253 
261 
262 public:
264 
272 int getProgramId();
273 
274 public:
276 
285 *string getScriptDir();
286 
287 public:
289 
298 *string getScriptName();
299 
300 public:
302 
311 *string getScriptPath();
312 
313 public:
315 
327 list<int> getThreadList();
328 
329 public:
331 
339 
340 public:
342 
349 softlist getUserFunctionList();
350 
351 public:
353 
371 nothing importClass(string cls, *string new_name, *softbool inject);
372 
373 public:
375 
390 nothing importFunction(string func);
391 
392 public:
394 
413 nothing importFunction(string func, string new_name, *softbool inject);
414 
415 public:
417 
430 nothing importGlobalVariable(string varname, bool readonly = False);
431 
432 public:
434 
449 nothing importHashDecl(string name, *string new_name);
450 
451 public:
453 
464  importSystemApi();
465 
466 public:
468 
480 
481 public:
483 
495 
496 public:
498 
510 
511 public:
513 
525 
526 public:
528 
537 bool isDefined(string def);
538 
539 public:
541 
561  loadApplyToPrivateUserModule(string name);
562 
563 public:
565 
586  loadApplyToUserModule(string name, *softbool reinject);
587 
588 public:
590 
615  loadModule(string name);
616 
617 public:
619 
646  loadUserModuleWithProgram(string name, Qore::Program pgm);
647 
648 public:
650 
655 nothing lockOptions();
656 
657 public:
659 
696 *hash parse(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
697 
698 public:
700 
717 nothing parseCommit();
718 
719 public:
721 
742 *hash parseCommit(int warning_mask);
743 
744 public:
746 
786 *hash parsePending(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
787 
788 public:
790 
803 nothing parseRollback();
804 
805 public:
807 
821 nothing replaceParseOptions(softint opt);
822 
823 public:
825 
832 auto run();
833 
834 public:
836 
852 nothing setGlobalVarValue(string name, auto value);
853 
854 public:
856 
871 nothing setParseOptions(softint opt = PO_DEFAULT);
872 
873 public:
875 
882 nothing setScriptPath(*string path);
883 
884 public:
886 
906 bool setThreadInit(*code init);
907 
908 public:
910 
918 nothing setTimeZone(TimeZone zone);
919 
920 public:
922 
933 nothing setTimeZoneRegion(string region);
934 
935 public:
937 
955 nothing setTimeZoneUTCOffset(softint seconds_east);
956 
957 public:
959 
966 nothing undefine(string def);
967 };
972 
974 
980 
985 
993 
999 
1005 
1011 
1017 
1023 
1029 
1035 
1043 
1047 
1051 
1057 
1062 
1068 
1083 
1088 
1093 
1098 
1103 
1111 
1117 
1122 
1127 
1132 
1137 
1144 
1150 
1156 
1162 
1166 
1172 
1180 
1184 
1190 
1195 
1200 
1205 
1210 
1219 
1224 
1229 
1239 
1244 
1249 
1254 
1260 
1265 
1270 
1275 
1280 
1286 
1296 
1301 
1307 
1312 
1320 
1327 
1333 
1339 
1345 
1349  const ParseOptionCmdCodeMap = qore(ParseOptionMap::getCodeToStringMap());
1351 
1355  const ParseOptionCmdStringMap = qore(ParseOptionMap::getStringToCodeMap());
1357 
1361  const ParseOptionCodeMap = qore(pomaps.getCodeToStringMap());
1363 
1367  const ParseOptionStringMap = qore(pomaps.getStringToCodeMap());
1369 
1373 
1375  const WARN_ALL = QP_WARN_ALL;
1377 
1381  const WARN_BROKEN_LOGIC_PRECEDENCE = QP_WARN_BROKEN_LOGIC_PRECEDENCE;
1383 
1385  const WARN_CALL_WITH_TYPE_ERRORS = QP_WARN_CALL_WITH_TYPE_ERRORS;
1387 
1399  const WARN_DEFAULT = QP_WARN_DEFAULT;
1401 
1403  const WARN_DEPRECATED = QP_WARN_DEPRECATED;
1405 
1407  const WARN_DUPLICATE_BLOCK_VARS = QP_WARN_DUPLICATE_BLOCK_VARS;
1409 
1411  const WARN_DUPLICATE_GLOBAL_VARS = QP_WARN_DUPLICATE_GLOBAL_VARS;
1413 
1415  const WARN_DUPLICATE_HASH_KEY = QP_WARN_DUPLICATE_HASH_KEY;
1417 
1419  const WARN_DUPLICATE_LOCAL_VARS = QP_WARN_DUPLICATE_LOCAL_VARS;
1421 
1423  const WARN_EXCESS_ARGS = QP_WARN_EXCESS_ARGS;
1425 
1427  const WARN_INVALID_OPERATION = QP_WARN_INVALID_OPERATION;
1429 
1439  const WARN_MODULES = QP_WARN_MODULES;
1441  const WARN_NONE = QP_WARN_NONE;
1443 
1447  const WARN_NONEXISTENT_METHOD_CALL = QP_WARN_NONEXISTENT_METHOD_CALL;
1449 
1451  const WARN_RETURN_VALUE_IGNORED = QP_WARN_RETURN_VALUE_IGNORED;
1453 
1455  const WARN_UNDECLARED_VAR = QP_WARN_UNDECLARED_VAR;
1457 
1459  const WARN_UNKNOWN_WARNING = QP_WARN_UNKNOWN_WARNING;
1461 
1463  const WARN_UNREACHABLE_CODE = QP_WARN_UNREACHABLE_CODE;
1465 
1467  const WARN_UNREFERENCED_VARIABLE = QP_WARN_UNREFERENCED_VARIABLE;
1469 
1471  const WARN_WARNING_MASK_UNCHANGED = QP_WARN_WARNING_MASK_UNCHANGED;
1473 };
const PO_BROKEN_LOOP_STATEMENT
allows for old pre-Qore 0.8.13 handling of break and continue
Definition: QC_Program.dox.h:1027
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:1066
nothing importGlobalVariable(string varname, bool readonly=False)
Imports a global variable into the program object&#39;s space.
const PO_NO_USER_CLASSES
Prohibits user classes from being imported into the new Program object.
Definition: QC_Program.dox.h:1299
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:1463
*string getScriptPath()
Returns the current script directory and filename if known, otherwise returns NOTHING.
const PO_LOCK_WARNINGS
Disallows changes to the warning mask.
Definition: QC_Program.dox.h:1060
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:1407
importSystemClasses()
imports system classes into a Program container at runtime; will throw an exception if the Program wa...
auto callFunctionArgs(string name, *softlist vargs)
Calls a function in the program object giving the arguments to the function as a list and returns the...
TimeZone getTimeZone()
Returns the default local time zone for the object.
const PO_NO_THREAD_CLASSES
Disallows access to any thread classes.
Definition: QC_Program.dox.h:1263
auto callFunction(string name,...)
Calls a function in the program object and returns the return value.
const PO_NO_SUBROUTINE_DEFS
Disallows subroutine (function) definitions.
Definition: QC_Program.dox.h:1227
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:1045
nothing importHashDecl(string name, *string new_name)
Imports a typed hash declaration into the program object&#39;s space.
nothing setParseOptions(softint opt=PO_DEFAULT)
Sets parse options in the parse option mask for the Program object.
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:1355
const PO_NO_EXTERNAL_ACCESS
Prohibits any external access.
Definition: QC_Program.dox.h:1115
Program objects allow Qore programs to support subprograms with the option to restrict capabilities...
Definition: QC_Program.dox.h:29
const WARN_NONEXISTENT_METHOD_CALL
Indicates that the embedded code is calling an unknown method in a class.
Definition: QC_Program.dox.h:1447
const PO_NO_NEW
Disallows use of the new operator.
Definition: QC_Program.dox.h:1217
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:1349
const PO_REQUIRE_PROTOTYPES
Requires all function and method parameters and return types to have type declarations.
Definition: QC_Program.dox.h:1318
const PO_NO_SYSTEM_API
Prohibits any code from being inherited into the Program object, including the system API...
Definition: QC_Program.dox.h:1237
nothing replaceParseOptions(softint opt)
Replaces the parse options for the Program object.
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:1003
ProgramControl getProgram()
Get ProgramControl.
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:1451
const True
logical True
Definition: qc_qore.dox.h:94
const PO_NO_USER_API
Prohibits any user code from being inherited into the Program object.
Definition: QC_Program.dox.h:1294
const PO_NO_GUI
Disallows access to functionality that draws graphics to the display.
Definition: QC_Program.dox.h:1140
nothing setTimeZone(TimeZone zone)
Sets the default local time zone for the object.
const PO_NO_DATABASE
Disallows access to database functionality.
Definition: QC_Program.dox.h:1101
int getProgramId()
Get program id.
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...
loadApplyToPrivateUserModule(string name)
Loads a Qore user module privately into the given Program container at run-time; after this call the ...
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:1086
const PO_ALLOW_WEAK_REFERENCES
Allows the use of the weak assignment operator (:=).
Definition: QC_Program.dox.h:997
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:1033
copy()
Throws an exception to prevent objects of this class from being copied.
const False
logical False
Definition: qc_qore.dox.h:92
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:1427
auto getGlobalVariable(string varname, *reference< bool > rexists)
Returns a the value of the global variable identified by the first string argument.
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:1385
const PO_REQUIRE_OUR
Requires global variables to be declared with our before use.
Definition: QC_Program.dox.h:1310
list list(...)
Returns an untyped list of the arguments passed at the top level.
const WARN_ALL
Enables all warnings.
Definition: QC_Program.dox.h:1375
const PO_NO_UNCONTROLLED_APIS
disallow access to "uncontrolled APIs" like external language bindings or direct generic system call ...
Definition: QC_Program.dox.h:1284
The ProgramControl class provides safe information about a Qore program.
Definition: QC_ProgramControl.dox.h:41
const PO_BROKEN_LIST_PARSING
allows for old pre-Qore 0.8.12 broken list rewriting in the parser
Definition: QC_Program.dox.h:1015
const PO_NO_INHERIT_USER_CLASSES
Prohibits user classes from being imported into the new Program object.
Definition: QC_Program.dox.h:1170
const WARN_DEPRECATED
Enables a warning when deprecated code is used.
Definition: QC_Program.dox.h:1403
const PO_NO_INHERIT_GLOBAL_VARS
Precludes global variables from being inherited into the new Program object.
Definition: QC_Program.dox.h:1142
bool existsFunction(string name)
Checks if a user function exists in the program object.
const PO_NO_CLASS_DEFS
Disallows class definitions.
Definition: QC_Program.dox.h:1091
bool setThreadInit(*code init)
Sets a call reference or closure to run every time a new thread is started.
list< int > getThreadList()
returns a list of thread IDs active in this Program
const PO_POSITIVE_OPTIONS
mask of all parse options allowing for more freedom (instead of less)
Definition: QC_Program.dox.h:1305
nothing disableParseOptions(softint opt)
Removes the given parse options to the current parse option mask.
const PO_REQUIRE_TYPES
Requires all function and method parameters, return types, variables, and object members to have type...
Definition: QC_Program.dox.h:1325
nothing lockOptions()
Locks parse options so that they cannot be changed.
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:1415
const PO_NO_INHERIT_SYSTEM_CLASSES
Prohibits system classes from being imported into the new Program object.
Definition: QC_Program.dox.h:1148
const PO_NO_INHERIT_SYSTEM_HASHDECLS
Prohibits system hashdecls from being imported into the new Program object.
Definition: QC_Program.dox.h:1164
nothing importFunction(string func)
Imports a function into the program object&#39;s space; any calls to the imported function will run with ...
The TimeZone class provides access to time zone functionality.
Definition: QC_TimeZone.dox.h:6
const PO_ALLOW_BARE_REFS
Prohibits the use of the &#39;$&#39; character in variable names, method calls, and object member references...
Definition: QC_Program.dox.h:978
const PO_NO_GLOBAL_VARS
Disallows the use of global variables.
Definition: QC_Program.dox.h:1135
const PO_NO_THREADS
Prohibits access to all threading information.
Definition: QC_Program.dox.h:1258
nothing setGlobalVarValue(string name, auto value)
set the value of a global variable
*string getScriptName()
Returns the current script name as a string or NOTHING if not set.
bool isDefined(string def)
Returns True if the given parse define is defined in the current Program (does not have to have a val...
const PO_NO_LOCALE_CONTROL
Disallows access to functionality that can change locale parameters.
Definition: QC_Program.dox.h:1193
const PO_NO_FILESYSTEM
Disallows access to the filesystem.
Definition: QC_Program.dox.h:1130
const WARN_NONE
Represents no warning.
Definition: QC_Program.dox.h:1441
*hash 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...
const WARN_BROKEN_LOGIC_PRECEDENCE
This warns before expressions affected by %broken-logic-precedence.
Definition: QC_Program.dox.h:1381
const PO_NO_API
Prohibits any code from being inherited into the Program object, including the system API...
Definition: QC_Program.dox.h:1081
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:1419
const PO_NO_NAMESPACE_DEFS
Disallows new namespace definitions.
Definition: QC_Program.dox.h:1203
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:1178
nothing setScriptPath(*string path)
Sets (or clears) the script path (directory and filename) for the object.
const PO_STRICT_BOOLEAN_EVAL
Sets strict mathematical boolean evaluation runtime mode (the qore default prior to v0...
Definition: QC_Program.dox.h:1337
const PO_NO_SYSTEM_FUNC_VARIANTS
Prohibits builtin/system function variants from being imported into the new Program object...
Definition: QC_Program.dox.h:1247
const PO_DEFAULT
This option is the empty option, meaning no options are set.
Definition: QC_Program.dox.h:1041
const PO_BROKEN_LOGIC_PRECEDENCE
allows for old pre-Qore 0.8.12 precedence of logical and bitwise operators
Definition: QC_Program.dox.h:1021
const PO_NO_PROCESS_CONTROL
Disallows access to functions that would affect the current process (exit(), exec(), fork(), etc)
Definition: QC_Program.dox.h:1222
loadApplyToUserModule(string name, *softbool reinject)
Loads a Qore user module into the given Program container at run-time; after this call the Program ob...
nothing define(string def, auto val)
Sets a parse define for the current Program.
nothing setTimeZoneRegion(string region)
Sets the default local time zone for the object from a path to a zoneinfo time zone region file...
const PO_NO_IO
Prohibits all terminal and file I/O and GUI operations.
Definition: QC_Program.dox.h:1188
const PO_NO_CONSTANT_DEFS
Disallows constant definitions.
Definition: QC_Program.dox.h:1096
auto run()
Runs the program and optionally returns a value if the top-level code exits with a return statement...
nothing parseCommit()
Commits and pending code processed with Program::parsePending() to the Program object after resolving...
nothing importClass(string cls, *string new_name, *softbool inject)
Imports a class into the program object&#39;s space; any calls to the imported class&#39;s code will run with...
const PO_NO_SYSTEM_CLASSES
Prohibits system classes from being imported into the new Program object.
Definition: QC_Program.dox.h:1242
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:1331
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:1455
nothing parseRollback()
Rolls back any pending code processed with Program::parsePending() that has not yet been committed to...
hash getGlobalVars()
returns a hash of global variables
importSystemHashDecls()
imports system hashdecls into a Program container at runtime; will throw an exception if the Program ...
const WARN_UNKNOWN_WARNING
Indicates that the embedded code tried to enable or disable an unknown warning.
Definition: QC_Program.dox.h:1459
softlist getUserFunctionList()
Returns a list of strings of all user functions defined in the program object.
nothing undefine(string def)
Unsets a parse define for the current Program.
importSystemApi()
imports system classes and functions into a Program container at runtime; will throw an exception if ...
const PO_LOCKDOWN
Sets very restrictive access; this restriction is designed to allow code to only execute logic...
Definition: QC_Program.dox.h:1055
int getParseOptions()
Returns the current binary-or&#39;ed parse option mask for the Program object.
const WARN_UNREFERENCED_VARIABLE
This warning is raised when a variable is declared in a block but never referenced.
Definition: QC_Program.dox.h:1467
const PO_NO_INHERIT_SYSTEM_CONSTANTS
Prohibits system constants from being imported into the new Program object.
Definition: QC_Program.dox.h:1154
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:1107
destructor()
Waits for all threads to finish executing, then deletes all global variables, dereferences the intern...
auto getDefine(string def)
Retrieves the value of the given parse define in the current Program.
const PO_NO_EXTERNAL_PROCESS
Disallows any access to external processes (with system(), backquote(), exec(), etc) ...
Definition: QC_Program.dox.h:1125
*string getScriptDir()
Returns the current script directory as a string or NOTHING if not set.
const PO_NO_NETWORK
Disallows access to network functionality.
Definition: QC_Program.dox.h:1208
const PO_NO_INHERIT_USER_CONSTANTS
Prohibits user constants from being imported into the new Program object.
Definition: QC_Program.dox.h:1176
list findFunctionVariants(string function)
finds all variants of a function or class method and returns a list of the results ...
const PO_NO_TOP_LEVEL_STATEMENTS
Disallows top level code.
Definition: QC_Program.dox.h:1278
const PO_NO_MODULES
Disallows loading modules with the %requires directive or at runtime with load_module() ...
Definition: QC_Program.dox.h:1198
loadUserModuleWithProgram(string name, Qore::Program pgm)
Loads a Qore user module into the Program object at run-time using the given Program object as the co...
importSystemConstants()
imports system constants into a Program container at runtime; will throw an exception if the Program ...
const ParseOptionStringMap
Maps from parse option strings to parse option integer codes.
Definition: QC_Program.dox.h:1367
const PO_ALLOW_DEBUGGER
Allows the use of functionality required to implement a debugger, mainly via DebugProgram.
Definition: QC_Program.dox.h:983
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
const ParseOptionCodeMap
Maps from parse option code values (as string keys) to parse option names.
Definition: QC_Program.dox.h:1361
hash hash(object obj)
Returns a hash of an object&#39;s members.
*hash getAllDefines()
Retrieves all parse defines in the current Program.
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:1423
const PO_IN_MODULE
Only set by the system when in a user module Program.
Definition: QC_Program.dox.h:1049
const WARN_MODULES
The default warning mask for user modules.
Definition: QC_Program.dox.h:1439
const PO_NO_INHERIT_USER_HASHDECLS
Prohibits user hashdecls from being imported into the new Program object.
Definition: QC_Program.dox.h:1182
const PO_NO_TERMINAL_IO
Disallows access to reading from and/or writing to the terminal.
Definition: QC_Program.dox.h:1252
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:1471
const PO_NO_EMBEDDED_LOGIC
Prohibits embedded logic from being used.
Definition: QC_Program.dox.h:1109
importSystemFunctions()
imports system functions into a Program container at runtime; will throw an exception if the Program ...
const WARN_DEFAULT
The default warning mask.
Definition: QC_Program.dox.h:1399
const PO_ALLOW_INJECTION
Allows code/dependency injections in the contained Program object.
Definition: QC_Program.dox.h:991
const PO_NO_EXTERNAL_INFO
Disallows access to functionality that provides information about the computing environment.
Definition: QC_Program.dox.h:1120
constructor(softint po=PO_DEFAULT)
Creates the program object and optionally sets program capabilities (parse options) ...
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:1160
*hash 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.
const PO_NO_THREAD_CONTROL
Disallows access to any thread-control functions and thread-relevant statements and operators (for ex...
Definition: QC_Program.dox.h:1268
const PO_STRONG_ENCAPSULATION
disallows out-of-line class and namespace declarations
Definition: QC_Program.dox.h:1343
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:1009
const WARN_DUPLICATE_GLOBAL_VARS
Indicates that the embedded code has declared the same global variable more than once.
Definition: QC_Program.dox.h:1411
const PO_NO_THREAD_INFO
Disallows access to functionality that provides information about threading.
Definition: QC_Program.dox.h:1273
const PO_BROKEN_REFERENCES
allows for old pre-Qore 0.8.13 handling of reference and *reference
Definition: QC_Program.dox.h:1039
loadModule(string name)
Loads a Qore module into the Program object at run-time.