QC_Program.dox.h
namespace Qore {
class Program {
public:
auto callFunction(string name, ...);
public:
auto callFunctionArgs(string name, *softlist vargs);
public:
constructor(softint po = PO_DEFAULT);
public:
copy();
public:
nothing define(string def, auto val);
public:
/***/
destructor();
public:
nothing disableParseOptions(softint opt);
public:
bool existsFunction(string name);
public:
list findFunctionVariants(string function);
public:
*hash getAllDefines();
public:
auto getDefine(string def);
public:
auto getGlobalVariable(string varname, *reference<bool> rexists);
public:
hash getGlobalVars();
public:
int getParseOptions();
public:
ProgramControl getProgram();
public:
int getProgramId();
public:
*string getScriptDir();
public:
*string getScriptName();
public:
*string getScriptPath();
public:
list<int> getThreadList();
public:
TimeZone getTimeZone();
public:
softlist getUserFunctionList();
public:
nothing importClass(string cls, *string new_name, *softbool inject);
public:
nothing importFunction(string func);
public:
nothing importFunction(string func, string new_name, *softbool inject);
public:
nothing importGlobalVariable(string varname, bool readonly = False);
public:
nothing importHashDecl(string name, *string new_name);
public:
importSystemApi();
public:
importSystemClasses();
public:
importSystemConstants();
public:
importSystemFunctions();
public:
importSystemHashDecls();
public:
bool isDefined(string def);
public:
loadApplyToPrivateUserModule(string name);
public:
loadApplyToUserModule(string name, *softbool reinject);
public:
loadModule(string name);
public:
loadUserModuleWithProgram(string name, Qore::Program pgm);
public:
nothing lockOptions();
public:
*hash parse(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
public:
nothing parseCommit();
public:
*hash parseCommit(int warning_mask);
public:
*hash parsePending(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
public:
nothing parseRollback();
public:
nothing replaceParseOptions(softint opt);
public:
auto run();
public:
nothing setGlobalVarValue(string name, auto value);
public:
nothing setParseOptions(softint opt = PO_DEFAULT);
public:
nothing setScriptPath(*string path);
public:
bool setThreadInit(*code init);
public:
nothing setTimeZone(TimeZone zone);
public:
nothing setTimeZoneRegion(string region);
public:
nothing setTimeZoneUTCOffset(softint seconds_east);
public:
nothing undefine(string def);
};
const PO_ALLOW_BARE_REFS = PO_ALLOW_BARE_REFS;
const PO_ALLOW_DEBUGGER = PO_ALLOW_DEBUGGER;
const PO_ALLOW_INJECTION = PO_ALLOW_INJECTION;
const PO_ALLOW_WEAK_REFERENCES = PO_ALLOW_WEAK_REFERENCES;
const PO_ASSUME_LOCAL = PO_ASSUME_LOCAL;
const PO_BROKEN_INT_ASSIGNMENTS = PO_BROKEN_INT_ASSIGNMENTS;
const PO_BROKEN_LIST_PARSING = PO_BROKEN_LIST_PARSING;
const PO_BROKEN_LOGIC_PRECEDENCE = PO_BROKEN_LOGIC_PRECEDENCE;
const PO_BROKEN_LOOP_STATEMENT = PO_BROKEN_LOOP_STATEMENT;
const PO_BROKEN_OPERATORS = PO_BROKEN_OPERATORS;
const PO_BROKEN_REFERENCES = PO_BROKEN_REFERENCES;
const PO_DEFAULT = PO_DEFAULT;
const PO_FREE_OPTIONS = PO_FREE_OPTIONS;
const PO_IN_MODULE = PO_IN_MODULE;
const PO_LOCKDOWN = PO_LOCKDOWN;
const PO_LOCK_WARNINGS = PO_LOCK_WARNINGS;
const PO_NEW_STYLE = PO_NEW_STYLE;
const PO_NO_API = PO_NO_API;
const PO_NO_CHILD_PO_RESTRICTIONS = PO_NO_CHILD_PO_RESTRICTIONS;
const PO_NO_CLASS_DEFS = PO_NO_CLASS_DEFS;
const PO_NO_CONSTANT_DEFS = PO_NO_CONSTANT_DEFS;
const PO_NO_DATABASE = PO_NO_DATABASE;
const PO_NO_DEBUGGING = PO_NO_DEBUGGING;
const PO_NO_EMBEDDED_LOGIC = PO_NO_EMBEDDED_LOGIC;
const PO_NO_EXTERNAL_ACCESS = PO_NO_EXTERNAL_ACCESS;
const PO_NO_EXTERNAL_INFO = PO_NO_EXTERNAL_INFO;
const PO_NO_EXTERNAL_PROCESS = PO_NO_EXTERNAL_PROCESS;
const PO_NO_FILESYSTEM = PO_NO_FILESYSTEM;
const PO_NO_GLOBAL_VARS = PO_NO_GLOBAL_VARS;
const PO_NO_GUI = PO_NO_GUI;
const PO_NO_INHERIT_GLOBAL_VARS = PO_NO_INHERIT_GLOBAL_VARS;
const PO_NO_INHERIT_SYSTEM_CLASSES = PO_NO_INHERIT_SYSTEM_CLASSES;
const PO_NO_INHERIT_SYSTEM_CONSTANTS = PO_NO_INHERIT_SYSTEM_CONSTANTS;
const PO_NO_INHERIT_SYSTEM_FUNC_VARIANTS = PO_NO_INHERIT_SYSTEM_FUNC_VARIANTS;
const PO_NO_INHERIT_SYSTEM_HASHDECLS = PO_NO_INHERIT_SYSTEM_HASHDECLS;
const PO_NO_INHERIT_USER_CLASSES = PO_NO_INHERIT_USER_CLASSES;
const PO_NO_INHERIT_USER_CONSTANTS = PO_NO_INHERIT_USER_CONSTANTS;
const PO_NO_INHERIT_USER_FUNC_VARIANTS = PO_NO_INHERIT_USER_FUNC_VARIANTS;
const PO_NO_INHERIT_USER_HASHDECLS = PO_NO_INHERIT_USER_HASHDECLS;
const PO_NO_IO = PO_NO_IO;
const PO_NO_LOCALE_CONTROL = PO_NO_LOCALE_CONTROL;
const PO_NO_MODULES = PO_NO_MODULES;
const PO_NO_NAMESPACE_DEFS = PO_NO_NAMESPACE_DEFS;
const PO_NO_NETWORK = PO_NO_NETWORK;
const PO_NO_NEW = PO_NO_NEW;
const PO_NO_PROCESS_CONTROL = PO_NO_PROCESS_CONTROL;
const PO_NO_SUBROUTINE_DEFS = PO_NO_SUBROUTINE_DEFS;
const PO_NO_SYSTEM_API = PO_NO_SYSTEM_API;
const PO_NO_SYSTEM_CLASSES = PO_NO_INHERIT_SYSTEM_CLASSES;
const PO_NO_SYSTEM_FUNC_VARIANTS = PO_NO_INHERIT_SYSTEM_FUNC_VARIANTS;
const PO_NO_TERMINAL_IO = PO_NO_TERMINAL_IO;
const PO_NO_THREADS = PO_NO_THREADS;
const PO_NO_THREAD_CLASSES = PO_NO_THREAD_CLASSES;
const PO_NO_THREAD_CONTROL = PO_NO_THREAD_CONTROL;
const PO_NO_THREAD_INFO = PO_NO_THREAD_INFO;
const PO_NO_TOP_LEVEL_STATEMENTS = PO_NO_TOP_LEVEL_STATEMENTS;
const PO_NO_UNCONTROLLED_APIS = PO_NO_UNCONTROLLED_APIS;
const PO_NO_USER_API = PO_NO_USER_API;
const PO_NO_USER_CLASSES = PO_NO_INHERIT_USER_CLASSES;
const PO_POSITIVE_OPTIONS = PO_POSITIVE_OPTIONS;
const PO_REQUIRE_OUR = PO_REQUIRE_OUR;
const PO_REQUIRE_PROTOTYPES = PO_REQUIRE_PROTOTYPES;
const PO_REQUIRE_TYPES = PO_REQUIRE_TYPES;
const PO_STRICT_ARGS = PO_STRICT_ARGS;
const PO_STRICT_BOOLEAN_EVAL = PO_STRICT_BOOLEAN_EVAL;
const PO_STRONG_ENCAPSULATION = PO_STRONG_ENCAPSULATION;
const ParseOptionCmdCodeMap = qore(ParseOptionMap::getCodeToStringMap());
const ParseOptionCmdStringMap = qore(ParseOptionMap::getStringToCodeMap());
const ParseOptionCodeMap = qore(pomaps.getCodeToStringMap());
const ParseOptionStringMap = qore(pomaps.getStringToCodeMap());
const WARN_ALL = QP_WARN_ALL;
const WARN_BROKEN_LOGIC_PRECEDENCE = QP_WARN_BROKEN_LOGIC_PRECEDENCE;
const WARN_CALL_WITH_TYPE_ERRORS = QP_WARN_CALL_WITH_TYPE_ERRORS;
const WARN_DEFAULT = QP_WARN_DEFAULT;
const WARN_DEPRECATED = QP_WARN_DEPRECATED;
const WARN_DUPLICATE_BLOCK_VARS = QP_WARN_DUPLICATE_BLOCK_VARS;
const WARN_DUPLICATE_GLOBAL_VARS = QP_WARN_DUPLICATE_GLOBAL_VARS;
const WARN_DUPLICATE_HASH_KEY = QP_WARN_DUPLICATE_HASH_KEY;
const WARN_DUPLICATE_LOCAL_VARS = QP_WARN_DUPLICATE_LOCAL_VARS;
const WARN_EXCESS_ARGS = QP_WARN_EXCESS_ARGS;
const WARN_INVALID_OPERATION = QP_WARN_INVALID_OPERATION;
const WARN_MODULES = QP_WARN_MODULES;
const WARN_NONE = QP_WARN_NONE;
const WARN_NONEXISTENT_METHOD_CALL = QP_WARN_NONEXISTENT_METHOD_CALL;
const WARN_RETURN_VALUE_IGNORED = QP_WARN_RETURN_VALUE_IGNORED;
const WARN_UNDECLARED_VAR = QP_WARN_UNDECLARED_VAR;
const WARN_UNKNOWN_WARNING = QP_WARN_UNKNOWN_WARNING;
const WARN_UNREACHABLE_CODE = QP_WARN_UNREACHABLE_CODE;
const WARN_UNREFERENCED_VARIABLE = QP_WARN_UNREFERENCED_VARIABLE;
const WARN_WARNING_MASK_UNCHANGED = QP_WARN_WARNING_MASK_UNCHANGED;
};
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:1027
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:1066
Qore::Program::importGlobalVariable
nothing importGlobalVariable(string varname, bool readonly=False)
Imports a global variable into the program object&#39;s space.
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:1299
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:1463
Qore::Program::getScriptPath
*string getScriptPath()
Returns the current script directory and filename if known, otherwise returns NOTHING.
Qore::PO_LOCK_WARNINGS
const PO_LOCK_WARNINGS
Disallows changes to the warning mask.
Definition: QC_Program.dox.h:1060
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:1407
Qore::Program::importSystemClasses
importSystemClasses()
imports system classes into a Program container at runtime; will throw an exception if the Program wa...
Qore::Program::callFunctionArgs
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...
Qore::Program::getTimeZone
TimeZone getTimeZone()
Returns the default local time zone for the object.
Qore::PO_NO_THREAD_CLASSES
const PO_NO_THREAD_CLASSES
Disallows access to any thread classes.
Definition: QC_Program.dox.h:1263
Qore::Program::callFunction
auto callFunction(string name,...)
Calls a function in the program object and returns the return value.
Qore::PO_NO_SUBROUTINE_DEFS
const PO_NO_SUBROUTINE_DEFS
Disallows subroutine (function) definitions.
Definition: QC_Program.dox.h:1227
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:1045
Qore::Program::importHashDecl
nothing importHashDecl(string name, *string new_name)
Imports a typed hash declaration into the program object&#39;s space.
Qore::Program::setParseOptions
nothing setParseOptions(softint opt=PO_DEFAULT)
Sets parse options in the parse option mask for the Program object.
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:1355
Qore::PO_NO_EXTERNAL_ACCESS
const PO_NO_EXTERNAL_ACCESS
Prohibits any external access.
Definition: QC_Program.dox.h:1115
Qore::Program
Program objects allow Qore programs to support subprograms with the option to restrict capabilities...
Definition: QC_Program.dox.h:29
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:1447
Qore::PO_NO_NEW
const PO_NO_NEW
Disallows use of the new operator.
Definition: QC_Program.dox.h:1217
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:1349
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:1318
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:1237
Qore::Program::replaceParseOptions
nothing replaceParseOptions(softint opt)
Replaces the parse options for the Program object.
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:1003
Qore::Program::getProgram
ProgramControl getProgram()
Get ProgramControl.
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:1451
Qore::True
const True
logical True
Definition: qc_qore.dox.h:94
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:1294
Qore::PO_NO_GUI
const PO_NO_GUI
Disallows access to functionality that draws graphics to the display.
Definition: QC_Program.dox.h:1140
Qore::Program::setTimeZone
nothing setTimeZone(TimeZone zone)
Sets the default local time zone for the object.
Qore::PO_NO_DATABASE
const PO_NO_DATABASE
Disallows access to database functionality.
Definition: QC_Program.dox.h:1101
Qore::Program::getProgramId
int getProgramId()
Get program id.
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::loadApplyToPrivateUserModule
loadApplyToPrivateUserModule(string name)
Loads a Qore user module privately into the given Program container at run-time; after this call the ...
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:1086
Qore::PO_ALLOW_WEAK_REFERENCES
const PO_ALLOW_WEAK_REFERENCES
Allows the use of the weak assignment operator (:=).
Definition: QC_Program.dox.h:997
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:1033
Qore::Program::copy
copy()
Throws an exception to prevent objects of this class from being copied.
Qore::False
const False
logical False
Definition: qc_qore.dox.h:92
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:1427
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::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:1385
Qore::PO_REQUIRE_OUR
const PO_REQUIRE_OUR
Requires global variables to be declared with our before use.
Definition: QC_Program.dox.h:1310
Qore::list
list list(...)
Returns an untyped list of the arguments passed at the top level.
Qore::WARN_ALL
const WARN_ALL
Enables all warnings.
Definition: QC_Program.dox.h:1375
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:1284
Qore::ProgramControl
The ProgramControl class provides safe information about a Qore program.
Definition: QC_ProgramControl.dox.h:41
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:1015
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:1170
Qore::WARN_DEPRECATED
const WARN_DEPRECATED
Enables a warning when deprecated code is used.
Definition: QC_Program.dox.h:1403
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:1142
Qore::Program::existsFunction
bool existsFunction(string name)
Checks if a user function exists in the program object.
Qore::PO_NO_CLASS_DEFS
const PO_NO_CLASS_DEFS
Disallows class definitions.
Definition: QC_Program.dox.h:1091
Qore::Program::setThreadInit
bool setThreadInit(*code init)
Sets a call reference or closure to run every time a new thread is started.
Qore::Program::getThreadList
list< int > getThreadList()
returns a list of thread IDs active in this Program
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:1305
Qore::Program::disableParseOptions
nothing disableParseOptions(softint opt)
Removes the given parse options to the current parse option mask.
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:1325
Qore::Program::lockOptions
nothing lockOptions()
Locks parse options so that they cannot be changed.
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:1415
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:1148
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:1164
Qore::Program::importFunction
nothing importFunction(string func)
Imports a function into the program object&#39;s space; any calls to the imported function will run with ...
Qore::TimeZone
The TimeZone class provides access to time zone functionality.
Definition: QC_TimeZone.dox.h:6
Qore::PO_ALLOW_BARE_REFS
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
Qore::PO_NO_GLOBAL_VARS
const PO_NO_GLOBAL_VARS
Disallows the use of global variables.
Definition: QC_Program.dox.h:1135
Qore::PO_NO_THREADS
const PO_NO_THREADS
Prohibits access to all threading information.
Definition: QC_Program.dox.h:1258
Qore::Program::setGlobalVarValue
nothing setGlobalVarValue(string name, auto value)
set the value of a global variable
Qore::Program::getScriptName
*string getScriptName()
Returns the current script name as a string or NOTHING if not set.
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::PO_NO_LOCALE_CONTROL
const PO_NO_LOCALE_CONTROL
Disallows access to functionality that can change locale parameters.
Definition: QC_Program.dox.h:1193
Qore::PO_NO_FILESYSTEM
const PO_NO_FILESYSTEM
Disallows access to the filesystem.
Definition: QC_Program.dox.h:1130
Qore::WARN_NONE
const WARN_NONE
Represents no warning.
Definition: QC_Program.dox.h:1441
Qore::Program::parsePending
*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...
Qore::WARN_BROKEN_LOGIC_PRECEDENCE
const WARN_BROKEN_LOGIC_PRECEDENCE
This warns before expressions affected by %broken-logic-precedence.
Definition: QC_Program.dox.h:1381
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:1081
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:1419
Qore::PO_NO_NAMESPACE_DEFS
const PO_NO_NAMESPACE_DEFS
Disallows new namespace definitions.
Definition: QC_Program.dox.h:1203
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:1178
Qore::Program::setScriptPath
nothing setScriptPath(*string path)
Sets (or clears) the script path (directory and filename) for the object.
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:1337
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:1247
Qore::PO_DEFAULT
const PO_DEFAULT
This option is the empty option, meaning no options are set.
Definition: QC_Program.dox.h:1041
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:1021
Qore::PO_NO_PROCESS_CONTROL
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
Qore::Program::loadApplyToUserModule
loadApplyToUserModule(string name, *softbool reinject)
Loads a Qore user module into the given Program container at run-time; after this call the Program ob...
Qore::Program::define
nothing define(string def, auto val)
Sets a parse define for the current Program.
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::PO_NO_IO
const PO_NO_IO
Prohibits all terminal and file I/O and GUI operations.
Definition: QC_Program.dox.h:1188
Qore::PO_NO_CONSTANT_DEFS
const PO_NO_CONSTANT_DEFS
Disallows constant definitions.
Definition: QC_Program.dox.h:1096
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::parseCommit
nothing parseCommit()
Commits and pending code processed with Program::parsePending() to the Program object after resolving...
Qore::Program::importClass
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...
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:1242
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:1331
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:1455
Qore::Program::parseRollback
nothing parseRollback()
Rolls back any pending code processed with Program::parsePending() that has not yet been committed to...
Qore::Program::getGlobalVars
hash getGlobalVars()
returns a hash of global variables
Qore::Program::importSystemHashDecls
importSystemHashDecls()
imports system hashdecls into a Program container at runtime; will throw an exception if the Program ...
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:1459
Qore::Program::getUserFunctionList
softlist getUserFunctionList()
Returns a list of strings of all user functions defined in the program object.
Qore::Program::undefine
nothing undefine(string def)
Unsets a parse define for the current Program.
Qore::Program::importSystemApi
importSystemApi()
imports system classes and functions into a Program container at runtime; will throw an exception if ...
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:1055
Qore::Program::getParseOptions
int getParseOptions()
Returns the current binary-or&#39;ed parse option mask for the Program object.
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:1467
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:1154
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:1107
Qore::Program::destructor
destructor()
Waits for all threads to finish executing, then deletes all global variables, dereferences the intern...
Qore::Program::getDefine
auto getDefine(string def)
Retrieves the value of the given parse define in the current Program.
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:1125
Qore::Program::getScriptDir
*string getScriptDir()
Returns the current script directory as a string or NOTHING if not set.
Qore::PO_NO_NETWORK
const PO_NO_NETWORK
Disallows access to network functionality.
Definition: QC_Program.dox.h:1208
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:1176
Qore::Program::findFunctionVariants
list findFunctionVariants(string function)
finds all variants of a function or class method and returns a list of the results ...
Qore::PO_NO_TOP_LEVEL_STATEMENTS
const PO_NO_TOP_LEVEL_STATEMENTS
Disallows top level code.
Definition: QC_Program.dox.h:1278
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:1198
Qore::Program::loadUserModuleWithProgram
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...
Qore::Program::importSystemConstants
importSystemConstants()
imports system constants into a Program container at runtime; will throw an exception if the Program ...
Qore::ParseOptionStringMap
const ParseOptionStringMap
Maps from parse option strings to parse option integer codes.
Definition: QC_Program.dox.h:1367
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:983
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
Qore::ParseOptionCodeMap
const ParseOptionCodeMap
Maps from parse option code values (as string keys) to parse option names.
Definition: QC_Program.dox.h:1361
Qore::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::Program::getAllDefines
*hash getAllDefines()
Retrieves all parse defines in the current Program.
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:1423
Qore::PO_IN_MODULE
const PO_IN_MODULE
Only set by the system when in a user module Program.
Definition: QC_Program.dox.h:1049
Qore::WARN_MODULES
const WARN_MODULES
The default warning mask for user modules.
Definition: QC_Program.dox.h:1439
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:1182
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:1252
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:1471
Qore::PO_NO_EMBEDDED_LOGIC
const PO_NO_EMBEDDED_LOGIC
Prohibits embedded logic from being used.
Definition: QC_Program.dox.h:1109
Qore::Program::importSystemFunctions
importSystemFunctions()
imports system functions into a Program container at runtime; will throw an exception if the Program ...
Qore::WARN_DEFAULT
const WARN_DEFAULT
The default warning mask.
Definition: QC_Program.dox.h:1399
Qore::PO_ALLOW_INJECTION
const PO_ALLOW_INJECTION
Allows code/dependency injections in the contained Program object.
Definition: QC_Program.dox.h:991
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:1120
Qore::Program::constructor
constructor(softint po=PO_DEFAULT)
Creates the program object and optionally sets program capabilities (parse options) ...
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:1160
Qore::Program::parse
*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.
Qore::PO_NO_THREAD_CONTROL
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
Qore::PO_STRONG_ENCAPSULATION
const PO_STRONG_ENCAPSULATION
disallows out-of-line class and namespace declarations
Definition: QC_Program.dox.h:1343
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:1009
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:1411
Qore::PO_NO_THREAD_INFO
const PO_NO_THREAD_INFO
Disallows access to functionality that provides information about threading.
Definition: QC_Program.dox.h:1273
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:1039
Qore::Program::loadModule
loadModule(string name)
Loads a Qore module into the Program object at run-time.