Qore Programming Language Reference Manual  0.8.7
 All Classes Namespaces Functions Variables Groups Pages
QC_Program.dox.h
1 
2 namespace Qore {
4 
29 class Program {
30 
31 public:
33 
51 any callFunction(string name, ...);
52 
53 public:
55 
73 any callFunctionArgs(string name, *softlist vargs);
74 
75 public:
77 
98  constructor(softint po = PO_DEFAULT);
99 
100 public:
102 
104  copy();
105 
106 public:
108 
116 nothing define(string def, any val);
117 
118 public:
120 /***/
121  destructor();
122 
123 public:
125 
140 nothing disableParseOptions(softint opt);
141 
142 public:
144 
159 bool existsFunction(string name);
160 
161 public:
163 
172 any getDefine(string def);
173 
174 public:
176 
187 any getGlobalVariable(string varname, *reference rexists);
188 
189 public:
191 
198 int getParseOptions();
199 
200 public:
202 
211 *string getScriptDir();
212 
213 public:
215 
224 *string getScriptName();
225 
226 public:
228 
237 *string getScriptPath();
238 
239 public:
241 
249 
250 public:
252 
260 
261 public:
263 
277 nothing importClass(string cls);
278 
279 public:
281 
296 nothing importFunction(string func);
297 
298 public:
300 
316 nothing importFunction(string func, string new_name);
317 
318 public:
320 
333 nothing importGlobalVariable(string varname, bool readonly = False);
334 
335 public:
337 
346 bool isDefined(string def);
347 
348 public:
350 
370  loadModule(string name);
371 
372 public:
374 
379 nothing lockOptions();
380 
381 public:
383 
418 *hash parse(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
419 
420 public:
422 
437 nothing parseCommit();
438 
439 public:
441 
460 *hash parseCommit(int warning_mask);
461 
462 public:
464 
502 *hash parsePending(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
503 
504 public:
506 
517 nothing parseRollback();
518 
519 public:
521 
535 nothing replaceParseOptions(softint opt);
536 
537 public:
539 
546 any run();
547 
548 public:
550 
565 nothing setParseOptions(softint opt = PO_DEFAULT);
566 
567 public:
569 
576 nothing setScriptPath(*string path);
577 
578 public:
580 
588 nothing setTimeZone(TimeZone zone);
589 
590 public:
592 
603 nothing setTimeZoneRegion(string region);
604 
605 public:
607 
625 nothing setTimeZoneUTCOffset(softint seconds_east);
626 
627 public:
629 
636 nothing undefine(string def);
637 };
642 
644 
650 
658 
662 
666 
672 
677 
683 
688 
693 
698 
705 
711 
716 
721 
726 
731 
740 
746 
751 
756 
761 
766 
775 
780 
789 
794 
800 
805 
810 
815 
822 
826 
831 
839 
846 
852 
858 
862 
864  const WARN_ALL = QP_WARN_ALL;
866 
868  const WARN_CALL_WITH_TYPE_ERRORS = QP_WARN_CALL_WITH_TYPE_ERRORS;
870 
881  const WARN_DEFAULT = QP_WARN_DEFAULT;
883 
885  const WARN_DEPRECATED = QP_WARN_DEPRECATED;
887 
889  const WARN_DUPLICATE_BLOCK_VARS = QP_WARN_DUPLICATE_BLOCK_VARS;
891 
893  const WARN_DUPLICATE_GLOBAL_VARS = QP_WARN_DUPLICATE_GLOBAL_VARS;
895 
897  const WARN_DUPLICATE_HASH_KEY = QP_WARN_DUPLICATE_HASH_KEY;
899 
901  const WARN_DUPLICATE_LOCAL_VARS = QP_WARN_DUPLICATE_LOCAL_VARS;
903 
905  const WARN_EXCESS_ARGS = QP_WARN_EXCESS_ARGS;
907 
909  const WARN_INVALID_OPERATION = QP_WARN_INVALID_OPERATION;
911 
920  const WARN_MODULES = QP_WARN_MODULES;
922  const WARN_NONE = QP_WARN_NONE;
924 
928  const WARN_NONEXISTENT_METHOD_CALL = QP_WARN_NONEXISTENT_METHOD_CALL;
930 
932  const WARN_RETURN_VALUE_IGNORED = QP_WARN_RETURN_VALUE_IGNORED;
934 
936  const WARN_UNDECLARED_VAR = QP_WARN_UNDECLARED_VAR;
938 
940  const WARN_UNKNOWN_WARNING = QP_WARN_UNKNOWN_WARNING;
942 
944  const WARN_UNREACHABLE_CODE = QP_WARN_UNREACHABLE_CODE;
946 
948  const WARN_UNREFERENCED_VARIABLE = QP_WARN_UNREFERENCED_VARIABLE;
950 
952  const WARN_WARNING_MASK_UNCHANGED = QP_WARN_WARNING_MASK_UNCHANGED;
954 };