CWB
|
This file contains definitions of messages that can be passed via the Corpus Query Interface. More...
This file contains definitions of messages that can be passed via the Corpus Query Interface.
They are broken down into (a) CQi responses that can be sent by the server (b) CQi requests that the clienyt can send to the server (c) some other bits and pieces.
This file should be #included into any program that wishes to use CQi but note that as there are no functions defined for a CQi client program, there are no accompanying source, object or library files.
#define CQI_ASK_FEATURE 0x12 |
Referenced by interpreter().
#define CQI_ASK_FEATURE_CL_2_3 0x1202 |
Referenced by interpreter().
#define CQI_ASK_FEATURE_CQI_1_0 0x1201 |
Referenced by interpreter().
#define CQI_ASK_FEATURE_CQP_2_3 0x1203 |
Referenced by interpreter().
#define CQI_CL 0x14 |
Referenced by interpreter().
#define CQI_CL_ALG2CPOS 0x1410 |
Referenced by interpreter().
#define CQI_CL_ATTRIBUTE_SIZE 0x1401 |
Referenced by interpreter().
#define CQI_CL_CPOS2ALG 0x140A |
Referenced by interpreter().
#define CQI_CL_CPOS2ID 0x1407 |
Referenced by interpreter().
#define CQI_CL_CPOS2LBOUND 0x1420 |
Referenced by interpreter().
#define CQI_CL_CPOS2RBOUND 0x1421 |
Referenced by interpreter().
#define CQI_CL_CPOS2STR 0x1408 |
Referenced by interpreter().
#define CQI_CL_CPOS2STRUC 0x1409 |
Referenced by interpreter().
#define CQI_CL_DROP_ATTRIBUTE 0x1403 |
Referenced by interpreter().
#define CQI_CL_ERROR 0x04 |
#define CQI_CL_ERROR_CORPUS_ACCESS 0x0405 |
Referenced by send_cl_error().
#define CQI_CL_ERROR_INTERNAL 0x0407 |
Referenced by send_cl_error().
#define CQI_CL_ERROR_NO_SUCH_ATTRIBUTE 0x0401 |
Referenced by cqi_lookup_attribute().
#define CQI_CL_ERROR_OUT_OF_MEMORY 0x0406 |
Referenced by send_cl_error().
#define CQI_CL_ERROR_OUT_OF_RANGE 0x0403 |
Referenced by send_cl_error().
#define CQI_CL_ERROR_REGEX 0x0404 |
Referenced by send_cl_error().
#define CQI_CL_ERROR_WRONG_ATTRIBUTE_TYPE 0x0402 |
Referenced by cqi_lookup_attribute(), and send_cl_error().
#define CQI_CL_ID2CPOS 0x140C |
Referenced by interpreter().
#define CQI_CL_ID2FREQ 0x1406 |
Referenced by interpreter().
#define CQI_CL_ID2STR 0x1405 |
Referenced by interpreter().
#define CQI_CL_IDLIST2CPOS 0x140D |
Referenced by interpreter().
#define CQI_CL_LEXICON_SIZE 0x1402 |
Referenced by interpreter().
#define CQI_CL_REGEX2ID 0x140E |
Referenced by interpreter().
#define CQI_CL_STR2ID 0x1404 |
Referenced by interpreter().
#define CQI_CL_STRUC2CPOS 0x140F |
Referenced by interpreter().
#define CQI_CL_STRUC2STR 0x140B |
Referenced by interpreter().
#define CQI_CONST_FALSE 0x00 |
#define CQI_CONST_FIELD_KEYWORD 0x09 |
Referenced by cqi_field_name(), do_cqi_cqp_dump_subcorpus(), and do_cqi_cqp_subcorpus_has_field().
#define CQI_CONST_FIELD_MATCH 0x10 |
Referenced by cqi_field_name(), do_cqi_cqp_dump_subcorpus(), and do_cqi_cqp_subcorpus_has_field().
#define CQI_CONST_FIELD_MATCHEND 0x11 |
Referenced by cqi_field_name(), do_cqi_cqp_dump_subcorpus(), and do_cqi_cqp_subcorpus_has_field().
#define CQI_CONST_FIELD_TARGET 0x00 |
Referenced by cqi_field_name(), do_cqi_cqp_dump_subcorpus(), and do_cqi_cqp_subcorpus_has_field().
#define CQI_CONST_FIELD_TARGET_0 0x00 |
#define CQI_CONST_FIELD_TARGET_1 0x01 |
#define CQI_CONST_FIELD_TARGET_2 0x02 |
#define CQI_CONST_FIELD_TARGET_3 0x03 |
#define CQI_CONST_FIELD_TARGET_4 0x04 |
#define CQI_CONST_FIELD_TARGET_5 0x05 |
#define CQI_CONST_FIELD_TARGET_6 0x06 |
#define CQI_CONST_FIELD_TARGET_7 0x07 |
#define CQI_CONST_FIELD_TARGET_8 0x08 |
#define CQI_CONST_FIELD_TARGET_9 0x09 |
#define CQI_CONST_NO 0x00 |
Referenced by do_cqi_cqp_subcorpus_has_field(), and interpreter().
#define CQI_CONST_TRUE 0x01 |
#define CQI_CONST_YES 0x01 |
Referenced by do_cqi_cqp_subcorpus_has_field(), and interpreter().
#define CQI_CORPUS 0x13 |
Referenced by interpreter().
#define CQI_CORPUS_ALIGNMENT_ATTRIBUTES 0x1308 |
Referenced by interpreter().
#define CQI_CORPUS_CHARSET 0x1303 |
Referenced by interpreter().
#define CQI_CORPUS_DROP_CORPUS 0x130B |
#define CQI_CORPUS_FULL_NAME 0x1309 |
Referenced by interpreter().
#define CQI_CORPUS_INFO 0x130A |
#define CQI_CORPUS_LIST_CORPORA 0x1301 |
Referenced by interpreter().
#define CQI_CORPUS_POSITIONAL_ATTRIBUTES 0x1305 |
Referenced by interpreter().
#define CQI_CORPUS_PROPERTIES 0x1304 |
Referenced by interpreter().
#define CQI_CORPUS_STRUCTURAL_ATTRIBUTE_HAS_VALUES 0x1307 |
Referenced by interpreter().
#define CQI_CORPUS_STRUCTURAL_ATTRIBUTES 0x1306 |
Referenced by interpreter().
#define CQI_CQP 0x15 |
Referenced by interpreter().
#define CQI_CQP_DROP_SUBCORPUS 0x1509 |
Referenced by interpreter().
#define CQI_CQP_DUMP_SUBCORPUS 0x1505 |
Referenced by interpreter().
#define CQI_CQP_ERROR 0x05 |
#define CQI_CQP_ERROR_GENERAL 0x0501 |
Referenced by do_cqi_cqp_fdist_1(), do_cqi_cqp_fdist_2(), and do_cqi_cqp_query().
#define CQI_CQP_ERROR_INVALID_FIELD 0x0503 |
Referenced by do_cqi_cqp_dump_subcorpus(), do_cqi_cqp_fdist_1(), do_cqi_cqp_fdist_2(), and do_cqi_cqp_subcorpus_has_field().
#define CQI_CQP_ERROR_NO_SUCH_CORPUS 0x0502 |
Referenced by cqi_find_corpus(), cqi_lookup_attribute(), do_cqi_corpus_attributes(), and do_cqi_corpus_full_name().
#define CQI_CQP_ERROR_OUT_OF_RANGE 0x0504 |
Referenced by do_cqi_cqp_dump_subcorpus().
#define CQI_CQP_FDIST_1 0x1510 |
Referenced by interpreter().
#define CQI_CQP_FDIST_2 0x1511 |
Referenced by interpreter().
#define CQI_CQP_LIST_SUBCORPORA 0x1502 |
Referenced by interpreter().
#define CQI_CQP_QUERY 0x1501 |
Referenced by interpreter().
#define CQI_CQP_SUBCORPUS_HAS_FIELD 0x1504 |
Referenced by interpreter().
#define CQI_CQP_SUBCORPUS_SIZE 0x1503 |
Referenced by interpreter().
#define CQI_CTRL 0x11 |
Referenced by interpreter().
#define CQI_CTRL_BYE 0x1102 |
Referenced by interpreter().
#define CQI_CTRL_CONNECT 0x1101 |
Referenced by interpreter(), and main().
#define CQI_CTRL_LAST_GENERAL_ERROR 0x1105 |
Referenced by interpreter().
#define CQI_CTRL_PING 0x1104 |
Referenced by interpreter().
#define CQI_CTRL_USER_ABORT 0x1103 |
Referenced by interpreter().
#define CQI_DATA 0x03 |
#define CQI_DATA_BOOL 0x0302 |
Referenced by cqi_data_bool().
#define CQI_DATA_BOOL_LIST 0x0306 |
Referenced by cqi_data_bool_list().
#define CQI_DATA_BYTE 0x0301 |
Referenced by cqi_data_byte().
#define CQI_DATA_BYTE_LIST 0x0305 |
Referenced by cqi_data_byte_list().
#define CQI_DATA_INT 0x0303 |
Referenced by cqi_data_int().
#define CQI_DATA_INT_INT 0x0309 |
Referenced by cqi_data_int_int().
#define CQI_DATA_INT_INT_INT_INT 0x030A |
Referenced by cqi_data_int_int_int_int().
#define CQI_DATA_INT_LIST 0x0307 |
#define CQI_DATA_INT_TABLE 0x030B |
Referenced by do_cqi_cqp_fdist_1(), and do_cqi_cqp_fdist_2().
#define CQI_DATA_STRING 0x0304 |
Referenced by cqi_data_string().
#define CQI_DATA_STRING_LIST 0x0308 |
#define CQI_ERROR 0x02 |
#define CQI_ERROR_CONNECT_REFUSED 0x0202 |
Referenced by main().
#define CQI_ERROR_GENERAL_ERROR 0x0201 |
Referenced by cqi_general_error().
#define CQI_ERROR_SYNTAX_ERROR 0x0204 |
#define CQI_ERROR_USER_ABORT 0x0203 |
#define CQI_MAJOR_VERSION 0x00 |
Referenced by cqiserver_welcome().
#define CQI_MINOR_VERSION 0x01 |
Referenced by cqiserver_welcome().
#define CQI_PAD 0x00 |
Referenced by cqi_read_command().
#define CQI_PORT 4877 |
Referenced by accept_connection().
#define CQI_STATUS 0x01 |
#define CQI_STATUS_BYE_OK 0x0103 |
Referenced by interpreter().
#define CQI_STATUS_CONNECT_OK 0x0102 |
Referenced by main().
#define CQI_STATUS_OK 0x0101 |
#define CQI_STATUS_PING_OK 0x0104 |
Referenced by interpreter().