Qore Programming Language Reference Manual  0.8.9
 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 };
const EVENT_SOURCE_MAP
Maps from Event Source Constants (the keys) to descriptive strings (the values)
Definition: qc_qore.dox.h:226
const ET_System
Exception type code system exceptions (thrown in internal Qore code or in modules) ...
Definition: qc_qore.dox.h:118
const EVENT_CONNECTED
Raised when the socket connection has been established.
Definition: qc_qore.dox.h:244
const stdin
system constant for stdin (file descriptor 0)
Definition: qc_qore.dox.h:306
const EVENT_HOSTNAME_LOOKUP
Raised when a hostname lookup is started.
Definition: qc_qore.dox.h:260
const NT_NOTHING
type code for no value (NOTHING)
Definition: qc_qore.dox.h:28
const VersionMajor
The integer Qore major version number.
Definition: qc_qore.dox.h:164
const Compiler
A string giving the C++ compiler used to build Qore.
Definition: qc_qore.dox.h:154
const EVENT_OPEN_FILE
Raised right before a file is opened.
Definition: qc_qore.dox.h:282
const EVENT_HTTP_CONTENT_LENGTH
Raised when the HTTP "Content-Length" header is received.
Definition: qc_qore.dox.h:272
const EVENT_SSL_ESTABLISHED
Raised when SSL communication has been negotiated and established.
Definition: qc_qore.dox.h:288
const EVENT_CONNECTING
Raised right before a socket connection attempt is made.
Definition: qc_qore.dox.h:246
const EVENT_HTTP_CHUNKED_END
Raised when all HTTP chunked data has been received.
Definition: qc_qore.dox.h:266
const EVENT_FTP_MESSAGE_RECEIVED
Raised when an FTP reply is received on the control channel.
Definition: qc_qore.dox.h:256
const SOURCE_FTPCLIENT
FtpClient class source code
Definition: qc_qore.dox.h:183
const VersionSub
The integer Qore sub version number.
Definition: qc_qore.dox.h:170
const EVENT_HTTP_REDIRECT
Raised when an HTTP redirect message is received.
Definition: qc_qore.dox.h:278
const True
logical True
Definition: qc_qore.dox.h:94
const NT_FLOAT
type code for float values
Definition: qc_qore.dox.h:20
const NT_LIST
type code for list values
Definition: qc_qore.dox.h:26
const EVENT_HTTP_FOOTERS_RECEIVED
Raised when HTTP footers are received.
Definition: qc_qore.dox.h:274
const EVENT_HTTP_CHUNKED_START
Raised when HTTP chunked data is about to be received.
Definition: qc_qore.dox.h:268
const NULL
logical False
Definition: qc_qore.dox.h:107
const NT_STRING
type code for string values
Definition: qc_qore.dox.h:36
const CT_User
Call type for user code.
Definition: qc_qore.dox.h:137
const NT_CALLREF
type code for call references
Definition: qc_qore.dox.h:14
const EVENT_START_SSL
Raised when socket SSL negotiation starts.
Definition: qc_qore.dox.h:290
const SOURCE_FILE
File class source code
Definition: qc_qore.dox.h:181
const BuildHost
The host name of the host used to build the Qore library.
Definition: qc_qore.dox.h:150
const False
logical False
Definition: qc_qore.dox.h:92
const SOURCE_SOCKET
Socket class source code
Definition: qc_qore.dox.h:187
const NT_CLOSURE
type code for closures
Definition: qc_qore.dox.h:16
const EVENT_DELETED
Raised when the object being monitored is deleted.
Definition: qc_qore.dox.h:252
const NT_DATE
type code for date/time values
Definition: qc_qore.dox.h:18
const EVENT_PACKET_SENT
Raised when a network packet is sent.
Definition: qc_qore.dox.h:286
const VersionMinor
The integer Qore minor version number.
Definition: qc_qore.dox.h:166
const EVENT_HTTP_CHUNK_SIZE
Raised when the next chunk size for HTTP chunked data is known.
Definition: qc_qore.dox.h:270
const stderr
system constant for stderr (file descriptor 2)
Definition: qc_qore.dox.h:304
const EVENT_HOSTNAME_RESOLVED
Raised when a hostname lookup is resolved.
Definition: qc_qore.dox.h:262
const NT_INT
type code for integer values
Definition: qc_qore.dox.h:24
const NT_BOOLEAN
type code for boolean values
Definition: qc_qore.dox.h:12
const EVENT_FTP_SEND_MESSAGE
Raised immediately before an FTP control message is sent.
Definition: qc_qore.dox.h:258
const NT_NULL
type code for NULL
Definition: qc_qore.dox.h:30
const stdout
system constant for stdout (file descriptor 1)
Definition: qc_qore.dox.h:308
const EVENT_PACKET_READ
Raised when a network packet is received.
Definition: qc_qore.dox.h:284
const NOTHING
a constant representing the lack of a value
Definition: qc_qore.dox.h:105
const PlatformCPU
The string for the platform's CPU architecture.
Definition: qc_qore.dox.h:160
const NT_BINARY
type code for binary values
Definition: qc_qore.dox.h:10
const CFLAGS
A string giving the C++ compiler flags used to build Qore.
Definition: qc_qore.dox.h:152
const CT_Builtin
Call type for builtin code.
Definition: qc_qore.dox.h:131
const EVENT_HTTP_MESSAGE_RECEIVED
Raised when an HTTP message is received.
Definition: qc_qore.dox.h:276
const EVENT_DATA_READ
Raised when data has been read from a file.
Definition: qc_qore.dox.h:248
const EVENT_HTTP_SEND_MESSAGE
Raised when an HTTP message is sent.
Definition: qc_qore.dox.h:280
const TypeNameMap
type name map, looks up type codes from type names
Definition: qc_qore.dox.h:66
const EVENT_HTTP_CHUNKED_DATA_RECEIVED
Raised when a block of HTTP chunked data is received.
Definition: qc_qore.dox.h:264
const NT_NUMBER
type code for number values
Definition: qc_qore.dox.h:32
const Build
The integer Qore build number.
Definition: qc_qore.dox.h:148
const EVENT_FILE_OPENED
Raised when a file has been successfully opened.
Definition: qc_qore.dox.h:254
const MACHINE_MSB
True if the current machine uses big-endian or MSB byte order or False if the current machine uses li...
Definition: qc_qore.dox.h:158
const NT_HASH
type code for hash values
Definition: qc_qore.dox.h:22
const EVENT_DATA_WRITTEN
Raised when data has been written to a file.
Definition: qc_qore.dox.h:250
const EVENT_MAP
Maps from Event Constants (the keys) to descriptive strings (the values)
Definition: qc_qore.dox.h:198
const NT_OBJECT
type code for objects
Definition: qc_qore.dox.h:34
const VersionString
The full Qore version string.
Definition: qc_qore.dox.h:168
const PlatformOS
A string giving the platform operating-system name.
Definition: qc_qore.dox.h:162
const SOURCE_HTTPCLIENT
HTTPClient class source code
Definition: qc_qore.dox.h:185
const EVENT_CHANNEL_CLOSED
Raised when a socket or file is closed.
Definition: qc_qore.dox.h:242
const TypeCodeMap
type code map, looks up type names from type code values
Definition: qc_qore.dox.h:49
const ET_User
Exception type for user exceptions (thrown by the throw statement)
Definition: qc_qore.dox.h:120
const CT_Rethrow
Call type for an exception thrown by the rethrow statement.
Definition: qc_qore.dox.h:135
const CT_NewThread
Call type for the start of a new thread by the background operator.
Definition: qc_qore.dox.h:133
const LDFLAGS
A string giving the linker flags used to build Qore.
Definition: qc_qore.dox.h:156