Qore Programming Language Reference Manual  0.9.3.1
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(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 
160  const DirSep = qore(new QoreStringNode(QORE_DIR_SEP_STR));
162  const LDFLAGS = qore(new QoreStringNode(qore_ldflags));
164  const MACHINE_MSB = bool(Q_MACHINE_MSB);
166 
172  const PathSep = qore(new QoreStringNode(QORE_PATH_SEP_STR));
174  const Platform = ("OS": qore(new QoreStringNode(TARGET_OS)), "CPU": qore(new QoreStringNode(TARGET_ARCH)), "Unix": bool(Q_IS_UNIX), "Windows": bool(Q_IS_WINDOWS));
176  const PlatformCPU = qore(new QoreStringNode(TARGET_ARCH));
178  const PlatformOS = qore(new QoreStringNode(TARGET_OS));
180  const VersionMajor = qore(qore_version_major);
182  const VersionMinor = qore(qore_version_minor);
184  const VersionString = qore(new QoreStringNode(qore_version_string));
186  const VersionSub = qore(qore_version_sub);
188 };
189 
191 namespace Qore {
195 
197  const SOURCE_FILE = QORE_SOURCE_FILE;
199  const SOURCE_FTPCLIENT = QORE_SOURCE_FTPCLIENT;
201  const SOURCE_HTTPCLIENT = QORE_SOURCE_HTTPCLIENT;
203  const SOURCE_SOCKET = QORE_SOURCE_SOCKET;
205 };
206 
208 namespace Qore {
212 
214  const EVENT_MAP = (
215  "1": "PACKET_READ",
216  "2": "PACKET_SENT",
217  "3": "HTTP_CONTENT_LENGTH",
218  "4": "HTTP_CHUNKED_START",
219  "5": "HTTP_CHUNKED_END",
220  "6": "HTTP_REDIRECT",
221  "7": "CHANNEL_CLOSED",
222  "8": "DELETED",
223  "9": "FTP_SEND_MESSAGE",
224  "10": "FTP_MESSAGE_RECEIVED",
225  "11": "HOSTNAME_LOOKUP",
226  "12": "HOSTNAME_RESOLVED",
227  "13": "HTTP_SEND_MESSAGE",
228  "14": "HTTP_MESSAGE_RECEIVED",
229  "15": "HTTP_FOOTERS_RECEIVED",
230  "16": "HTTP_CHUNKED_DATA_RECEIVED",
231  "17": "HTTP_CHUNK_SIZE",
232  "18": "CONNECTING",
233  "19": "CONNECTED",
234  "20": "START_SSL",
235  "21": "SSL_ESTABLISHED",
236  "22": "OPEN_FILE",
237  "23": "FILE_OPENED",
238  "24": "DATA_READ",
239  "25": "DATA_WRITTEN",
240  );
243  "1": "SOCKET",
244  "2": "HTTPCLIENT",
245  "3": "FTPCLIENT",
246  "4": "FILE",
247  );
249 };
250 
252 namespace Qore {
256 
258  const EVENT_CHANNEL_CLOSED = QORE_EVENT_CHANNEL_CLOSED;
260  const EVENT_CONNECTED = QORE_EVENT_CONNECTED;
262  const EVENT_CONNECTING = QORE_EVENT_CONNECTING;
264  const EVENT_DATA_READ = QORE_EVENT_DATA_READ;
266  const EVENT_DATA_WRITTEN = QORE_EVENT_DATA_WRITTEN;
268  const EVENT_DELETED = QORE_EVENT_DELETED;
270  const EVENT_FILE_OPENED = QORE_EVENT_FILE_OPENED;
272  const EVENT_FTP_MESSAGE_RECEIVED = QORE_EVENT_FTP_MESSAGE_RECEIVED;
274  const EVENT_FTP_SEND_MESSAGE = QORE_EVENT_FTP_SEND_MESSAGE;
276  const EVENT_HOSTNAME_LOOKUP = QORE_EVENT_HOSTNAME_LOOKUP;
278  const EVENT_HOSTNAME_RESOLVED = QORE_EVENT_HOSTNAME_RESOLVED;
280  const EVENT_HTTP_CHUNKED_DATA_RECEIVED = QORE_EVENT_HTTP_CHUNKED_DATA_RECEIVED;
282  const EVENT_HTTP_CHUNKED_END = QORE_EVENT_HTTP_CHUNKED_END;
284  const EVENT_HTTP_CHUNKED_START = QORE_EVENT_HTTP_CHUNKED_START;
286  const EVENT_HTTP_CHUNK_SIZE = QORE_EVENT_HTTP_CHUNK_SIZE;
288  const EVENT_HTTP_CONTENT_LENGTH = QORE_EVENT_HTTP_CONTENT_LENGTH;
290  const EVENT_HTTP_FOOTERS_RECEIVED = QORE_EVENT_HTTP_FOOTERS_RECEIVED;
292  const EVENT_HTTP_MESSAGE_RECEIVED = QORE_EVENT_HTTP_MESSAGE_RECEIVED;
294  const EVENT_HTTP_REDIRECT = QORE_EVENT_HTTP_REDIRECT;
296  const EVENT_HTTP_SEND_MESSAGE = QORE_EVENT_HTTP_SEND_MESSAGE;
298  const EVENT_OPEN_FILE = QORE_EVENT_OPEN_FILE;
300  const EVENT_PACKET_READ = QORE_EVENT_PACKET_READ;
302  const EVENT_PACKET_SENT = QORE_EVENT_PACKET_SENT;
304  const EVENT_SSL_ESTABLISHED = QORE_EVENT_SSL_ESTABLISHED;
306  const EVENT_START_SSL = QORE_EVENT_START_SSL;
308 };
309 
311 namespace Qore {
318 
320  const stderr = qore(QC_FILE->execSystemConstructor(2));
322  const stderr_stream = qore(QC_FILEOUTPUTSTREAM->execSystemConstructor(2));
324  const stdin = qore(QC_FILE->execSystemConstructor(0));
326  const stdin_stream = qore(QC_FILEINPUTSTREAM->execSystemConstructor(0));
328  const stdout = qore(QC_FILE->execSystemConstructor(1));
330  const stdout_stream = qore(QC_FILEOUTPUTSTREAM->execSystemConstructor(1));
332 };
const EVENT_SOURCE_MAP
Maps from Event Source Constants (the keys) to descriptive strings (the values)
Definition: qc_qore.dox.h:242
const ET_System
Exception type code system exceptions (thrown in internal Qore code or in modules)
Definition: qc_qore.dox.h:118
const PathSep
platform-specific path separator character string
Definition: qc_qore.dox.h:172
const EVENT_CONNECTED
Raised when the socket connection has been established.
Definition: qc_qore.dox.h:260
const stdin
system constant for stdin (file descriptor 0)
Definition: qc_qore.dox.h:324
const EVENT_HOSTNAME_LOOKUP
Raised when a hostname lookup is started.
Definition: qc_qore.dox.h:276
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:180
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:298
const EVENT_HTTP_CONTENT_LENGTH
Raised when the HTTP "Content-Length" header is received.
Definition: qc_qore.dox.h:288
const EVENT_SSL_ESTABLISHED
Raised when SSL communication has been negotiated and established.
Definition: qc_qore.dox.h:304
const EVENT_CONNECTING
Raised right before a socket connection attempt is made.
Definition: qc_qore.dox.h:262
const EVENT_HTTP_CHUNKED_END
Raised when all HTTP chunked data has been received.
Definition: qc_qore.dox.h:282
const EVENT_FTP_MESSAGE_RECEIVED
Raised when an FTP reply is received on the control channel.
Definition: qc_qore.dox.h:272
const SOURCE_FTPCLIENT
FtpClient class source code
Definition: qc_qore.dox.h:199
const VersionSub
The integer Qore sub version number.
Definition: qc_qore.dox.h:186
const EVENT_HTTP_REDIRECT
Raised when an HTTP redirect message is received.
Definition: qc_qore.dox.h:294
const stdin_stream
system constant for stdin InputStream (file descriptor 0)
Definition: qc_qore.dox.h:326
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:290
const EVENT_HTTP_CHUNKED_START
Raised when HTTP chunked data is about to be received.
Definition: qc_qore.dox.h:284
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:306
const SOURCE_FILE
File class source code
Definition: qc_qore.dox.h:197
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:203
const Platform
hash of platform information
Definition: qc_qore.dox.h:174
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:268
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:302
const VersionMinor
The integer Qore minor version number.
Definition: qc_qore.dox.h:182
const EVENT_HTTP_CHUNK_SIZE
Raised when the next chunk size for HTTP chunked data is known.
Definition: qc_qore.dox.h:286
const stderr
system constant for stderr (file descriptor 2)
Definition: qc_qore.dox.h:320
const stderr_stream
system constant for stderr OutputStream (file descriptor 2)
Definition: qc_qore.dox.h:322
const EVENT_HOSTNAME_RESOLVED
Raised when a hostname lookup is resolved.
Definition: qc_qore.dox.h:278
const DirSep
platform-specific directory separator character string
Definition: qc_qore.dox.h:160
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:274
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:328
const EVENT_PACKET_READ
Raised when a network packet is received.
Definition: qc_qore.dox.h:300
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:176
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:292
const EVENT_DATA_READ
Raised when data has been read from a file.
Definition: qc_qore.dox.h:264
const EVENT_HTTP_SEND_MESSAGE
Raised when an HTTP message is sent.
Definition: qc_qore.dox.h:296
const stdout_stream
system constant for stdout OutputStream (file descriptor 1)
Definition: qc_qore.dox.h:330
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:280
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:270
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:164
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:266
const EVENT_MAP
Maps from Event Constants (the keys) to descriptive strings (the values)
Definition: qc_qore.dox.h:214
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:184
const PlatformOS
A string giving the platform operating-system name.
Definition: qc_qore.dox.h:178
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
const SOURCE_HTTPCLIENT
HTTPClient class source code
Definition: qc_qore.dox.h:201
const EVENT_CHANNEL_CLOSED
Raised when a socket or file is closed.
Definition: qc_qore.dox.h:258
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:162