Qore Programming Language Reference Manual  0.8.7
 All Classes Namespaces Functions Variables Groups Pages
qc_qore.dox.h
1 
3 namespace Qore {
8 
14  const NT_CALLREF = NT_FUNCREF;
16  const NT_CLOSURE = NT_RUNTIME_CLOSURE;
18  const NT_DATE = NT_DATE;
20  const NT_FLOAT = NT_FLOAT;
22  const NT_HASH = NT_HASH;
24  const NT_INT = NT_INT;
26  const NT_LIST = NT_LIST;
30  const NT_NULL = NT_NULL;
38 };
39 
41 namespace Qore {
47 
49  const TypeCodeMap = (
50  "0": "nothing",
51  "1": "integer",
52  "2": "float",
53  "3": "string",
54  "4": "date",
55  "5": "bool",
56  "6": "NULL",
57  "7": "binary",
58  "8": "list",
59  "9": "hash",
60  "10": "object",
61  "11": "number",
62  "29": "call reference",
63  "32": "closure",
64  );
66  const TypeNameMap = (
67  "nothing": NT_NOTHING,
68  "integer": NT_INT,
69  "float": NT_FLOAT,
70  "number": NT_NUMBER,
71  "string": NT_STRING,
72  "date": NT_DATE,
73  "bool": NT_BOOLEAN,
74  "NULL": NT_NULL,
75  "binary": NT_BINARY,
76  "list": NT_LIST,
77  "hash": NT_HASH,
78  "object": NT_OBJECT,
79  "call reference": NT_FUNCREF,
80  "closure": NT_RUNTIME_CLOSURE,
81  );
83 };
84 
86 namespace Qore {
90 
92  const False = bool(false);
94  const True = bool(true);
96 };
97 
99 namespace Qore {
103 
105  const NOTHING = qore(&Nothing);
107  const NULL = qore(&Null);
109 };
110 
112 namespace Qore {
116 
118  const ET_System = "System";
120  const ET_User = "User";
122 };
123 
125 namespace Qore {
129 
131  const CT_Builtin = CT_BUILTIN;
133  const CT_NewThread = CT_NEWTHREAD;
135  const CT_Rethrow = CT_RETHROW;
137  const CT_User = CT_USER;
139 };
140 
142 namespace Qore {
146 
148  const Build = qore(new QoreBigIntNode(qore_build_number));
150  const BuildHost = qore(new QoreStringNode(qore_build_host));
152  const CFLAGS = qore(new QoreStringNode(qore_cflags));
154  const Compiler = qore(new QoreStringNode(qore_cplusplus_compiler));
156  const LDFLAGS = qore(new QoreStringNode(qore_ldflags));
158  const MACHINE_MSB = bool(Q_MACHINE_MSB);
160  const PlatformCPU = qore(new QoreStringNode(TARGET_ARCH));
162  const PlatformOS = qore(new QoreStringNode(TARGET_OS));
164  const VersionMajor = qore(new QoreBigIntNode(qore_version_major));
166  const VersionMinor = qore(new QoreBigIntNode(qore_version_minor));
168  const VersionString = qore(new QoreStringNode(qore_version_string));
170  const VersionSub = qore(new QoreBigIntNode(qore_version_sub));
172 };
173 
175 namespace Qore {
179 
181  const SOURCE_FILE = QORE_SOURCE_FILE;
183  const SOURCE_FTPCLIENT = QORE_SOURCE_FTPCLIENT;
185  const SOURCE_HTTPCLIENT = QORE_SOURCE_HTTPCLIENT;
187  const SOURCE_SOCKET = QORE_SOURCE_SOCKET;
189 };
190 
192 namespace Qore {
196 
198  const EVENT_MAP = (
199  "1": "PACKET_READ",
200  "2": "PACKET_SENT",
201  "3": "HTTP_CONTENT_LENGTH",
202  "4": "HTTP_CHUNKED_START",
203  "5": "HTTP_CHUNKED_END",
204  "6": "HTTP_REDIRECT",
205  "7": "CHANNEL_CLOSED",
206  "8": "DELETED",
207  "9": "FTP_SEND_MESSAGE",
208  "10": "FTP_MESSAGE_RECEIVED",
209  "11": "HOSTNAME_LOOKUP",
210  "12": "HOSTNAME_RESOLVED",
211  "13": "HTTP_SEND_MESSAGE",
212  "14": "HTTP_MESSAGE_RECEIVED",
213  "15": "HTTP_FOOTERS_RECEIVED",
214  "16": "HTTP_CHUNKED_DATA_RECEIVED",
215  "17": "HTTP_CHUNK_SIZE",
216  "18": "CONNECTING",
217  "19": "CONNECTED",
218  "20": "START_SSL",
219  "21": "SSL_ESTABLISHED",
220  "22": "OPEN_FILE",
221  "23": "FILE_OPENED",
222  "24": "DATA_READ",
223  "25": "DATA_WRITTEN",
224  );
227  "1": "SOCKET",
228  "2": "HTTPCLIENT",
229  "3": "FTPCLIENT",
230  "4": "FILE",
231  );
233 };
234 
236 namespace Qore {
240 
242  const EVENT_CHANNEL_CLOSED = QORE_EVENT_CHANNEL_CLOSED;
244  const EVENT_CONNECTED = QORE_EVENT_CONNECTED;
246  const EVENT_CONNECTING = QORE_EVENT_CONNECTING;
248  const EVENT_DATA_READ = QORE_EVENT_DATA_READ;
250  const EVENT_DATA_WRITTEN = QORE_EVENT_DATA_WRITTEN;
252  const EVENT_DELETED = QORE_EVENT_DELETED;
254  const EVENT_FILE_OPENED = QORE_EVENT_FILE_OPENED;
256  const EVENT_FTP_MESSAGE_RECEIVED = QORE_EVENT_FTP_MESSAGE_RECEIVED;
258  const EVENT_FTP_SEND_MESSAGE = QORE_EVENT_FTP_SEND_MESSAGE;
260  const EVENT_HOSTNAME_LOOKUP = QORE_EVENT_HOSTNAME_LOOKUP;
262  const EVENT_HOSTNAME_RESOLVED = QORE_EVENT_HOSTNAME_RESOLVED;
264  const EVENT_HTTP_CHUNKED_DATA_RECEIVED = QORE_EVENT_HTTP_CHUNKED_DATA_RECEIVED;
266  const EVENT_HTTP_CHUNKED_END = QORE_EVENT_HTTP_CHUNKED_END;
268  const EVENT_HTTP_CHUNKED_START = QORE_EVENT_HTTP_CHUNKED_START;
270  const EVENT_HTTP_CHUNK_SIZE = QORE_EVENT_HTTP_CHUNK_SIZE;
272  const EVENT_HTTP_CONTENT_LENGTH = QORE_EVENT_HTTP_CONTENT_LENGTH;
274  const EVENT_HTTP_FOOTERS_RECEIVED = QORE_EVENT_HTTP_FOOTERS_RECEIVED;
276  const EVENT_HTTP_MESSAGE_RECEIVED = QORE_EVENT_HTTP_MESSAGE_RECEIVED;
278  const EVENT_HTTP_REDIRECT = QORE_EVENT_HTTP_REDIRECT;
280  const EVENT_HTTP_SEND_MESSAGE = QORE_EVENT_HTTP_SEND_MESSAGE;
282  const EVENT_OPEN_FILE = QORE_EVENT_OPEN_FILE;
284  const EVENT_PACKET_READ = QORE_EVENT_PACKET_READ;
286  const EVENT_PACKET_SENT = QORE_EVENT_PACKET_SENT;
288  const EVENT_SSL_ESTABLISHED = QORE_EVENT_SSL_ESTABLISHED;
290  const EVENT_START_SSL = QORE_EVENT_START_SSL;
292 };
293 
295 namespace Qore {
302 
304  const stderr = qore(QC_FILE->execSystemConstructor(2));
306  const stdin = qore(QC_FILE->execSystemConstructor(0));
308  const stdout = qore(QC_FILE->execSystemConstructor(1));
310 };