Datatypes:
AjPQuery | Query object |
AjPQueryField | Query fields |
AjPList | Query field list |
AjPStr | Query string |
Sections:
Query Constructors | Constructors |
Query Destructors | Destructors |
Query Casts | Casts |
Modifiers | Modifiers |
Debug | Miscellaneous |
exit | Miscellaneous |
Functions:
ajQueryNew | Creates a new query object for a specific datatype from the AJDATATYPE enumerated types |
AjPQuery ajQueryNew ( const AjEDataType datatype );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjEDataType | datatype | Input | Enumerated datatype |
AjPQuery | RETURN | New query object. |
From EMBOSS 6.4.0
Functions:
ajQueryDel | Deletes a query object |
void ajQueryDel ( AjPQuery* pthis );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery* | pthis | Delete | Address of query object |
void | RETURN |
From EMBOSS 6.4.0
Functions:
ajQueryGetDatatype | Returns the query datatype from a query |
ajQueryGetFormat | Returns the format name from a query |
ajQueryGetId | Returns the ID query string from a query |
ajQueryGetQuery | Returns a report of the query string from a query |
ajQueryGetallFields | Returns the standard sequence query string from a query |
const char* ajQueryGetDatatype ( const AjPQuery query );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPQuery | query | Input | Query |
const char* | RETURN | Standard name for query datatype |
From EMBOSS 6.4.0
const AjPStr ajQueryGetFormat ( const AjPQuery query );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPQuery | query | Input | Query |
const AjPStr | RETURN | Format name |
From EMBOSS 6.4.0
const AjPStr ajQueryGetId ( const AjPQuery query );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPQuery | query | Input | Query |
const AjPStr | RETURN | Wildcard ID query string |
From EMBOSS 6.4.0
AjBool ajQueryGetQuery ( const AjPQuery query, AjPStr* Pdest );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPQuery | query | Input | Query |
AjPStr* | Pdest | Output | Query string |
AjBool | RETURN | True on success |
From EMBOSS 6.4.0
const AjPList ajQueryGetallFields ( const AjPQuery query );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPQuery | query | Input | Query |
const AjPList | RETURN | List of field objects |
From EMBOSS 6.4.0
AjBool ajQueryIsSet ( const AjPQuery thys );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPQuery | thys | Input | Query object. |
AjBool | RETURN | ajTrue if query should be made. ajFalse if the query includes all entries. |
From EMBOSS 6.4.0
AjBool ajQueryKnownFieldC ( const AjPQuery thys, const char* fieldtxt );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPQuery | thys | Input | Query object |
const char* | fieldtxt | Input | field name |
AjBool | RETURN | ajTrue if the field is defined |
From EMBOSS 6.4.0
AjBool ajQueryKnownFieldS ( const AjPQuery thys, const AjPStr field );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPQuery | thys | Input | Query object |
const AjPStr | field | Input | field name |
AjBool | RETURN | ajTrue if the field is defined |
From EMBOSS 6.4.0
Functions:
ajQueryAddFieldAndC | Adds a query with an 'AND' operator |
ajQueryAddFieldAndS | Adds a query with an 'AND' operator |
ajQueryAddFieldElseC | Adds a query with an 'ELSE' operator |
ajQueryAddFieldElseS | Adds a query with an 'ELSE' operator |
ajQueryAddFieldEorC | Adds a query with an 'EOR' operator |
ajQueryAddFieldEorS | Adds a query with an 'EOR' operator |
ajQueryAddFieldNotC | Adds a query with a 'NOT' operator |
ajQueryAddFieldNotS | Adds a query with a 'NOT' operator |
ajQueryAddFieldOrC | Adds a query with an 'OR' operator |
ajQueryAddFieldOrS | Adds a query with an 'OR' operator |
ajQueryClear | Resets a query object to a clean state for reuse. Keep the begin, end and reverse values. |
ajQuerySetWild | Tests whether a query includes wild cards in any element, or can return more than one entry (keyword and some other search terms will find multiple entries) |
ajQueryStarclear | Clears elements of a query object if they are simply "*" because this is equivalent to a null string. |
AjBool ajQueryAddFieldAndC ( AjPQuery thys, const char* fieldtxt, const char* wildquerytxt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery | thys | Modify | Query object |
const char* | fieldtxt | Input | field name |
const char* | wildquerytxt | Input | wildcard query string |
AjBool | RETURN | ajTrue on success |
From EMBOSS 6.4.0
AjBool ajQueryAddFieldAndS ( AjPQuery thys, const AjPStr field, const AjPStr wildquery );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery | thys | Modify | Query object |
const AjPStr | field | Input | field name |
const AjPStr | wildquery | Input | wildcard query string |
AjBool | RETURN | ajTrue on success |
From EMBOSS 6.4.0
AjBool ajQueryAddFieldElseC ( AjPQuery thys, const char* fieldtxt, const char* wildquerytxt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery | thys | Modify | Query object |
const char* | fieldtxt | Input | field name |
const char* | wildquerytxt | Input | wildcard query string |
AjBool | RETURN | ajTrue on success |
From EMBOSS 6.4.0
AjBool ajQueryAddFieldElseS ( AjPQuery thys, const AjPStr field, const AjPStr wildquery );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery | thys | Modify | Query object |
const AjPStr | field | Input | field name |
const AjPStr | wildquery | Input | wildcard query string |
AjBool | RETURN | ajTrue on success |
From EMBOSS 6.4.0
AjBool ajQueryAddFieldEorC ( AjPQuery thys, const char* fieldtxt, const char* wildquerytxt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery | thys | Modify | Query object |
const char* | fieldtxt | Input | field name |
const char* | wildquerytxt | Input | wildcard query string |
AjBool | RETURN | ajTrue on success |
From EMBOSS 6.4.0
AjBool ajQueryAddFieldEorS ( AjPQuery thys, const AjPStr field, const AjPStr wildquery );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery | thys | Modify | Query object |
const AjPStr | field | Input | field name |
const AjPStr | wildquery | Input | wildcard query string |
AjBool | RETURN | ajTrue on success |
From EMBOSS 6.4.0
AjBool ajQueryAddFieldNotC ( AjPQuery thys, const char* fieldtxt, const char* wildquerytxt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery | thys | Modify | Query object |
const char* | fieldtxt | Input | field name |
const char* | wildquerytxt | Input | wildcard query string |
AjBool | RETURN | ajTrue on success |
From EMBOSS 6.4.0
AjBool ajQueryAddFieldNotS ( AjPQuery thys, const AjPStr field, const AjPStr wildquery );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery | thys | Modify | Query object |
const AjPStr | field | Input | field name |
const AjPStr | wildquery | Input | wildcard query string |
AjBool | RETURN | ajTrue on success |
From EMBOSS 6.4.0
AjBool ajQueryAddFieldOrC ( AjPQuery thys, const char* fieldtxt, const char* wildquerytxt );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery | thys | Modify | Query object |
const char* | fieldtxt | Input | field name |
const char* | wildquerytxt | Input | wildcard query string |
AjBool | RETURN | ajTrue on success |
From EMBOSS 6.4.0
AjBool ajQueryAddFieldOrS ( AjPQuery thys, const AjPStr field, const AjPStr wildquery );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery | thys | Modify | Query object |
const AjPStr | field | Input | field name |
const AjPStr | wildquery | Input | wildcard query string |
AjBool | RETURN | ajTrue on success |
From EMBOSS 6.4.0
void ajQueryClear ( AjPQuery thys );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery | thys | Modify | query object |
void | RETURN |
From EMBOSS 6.4.0
AjBool ajQuerySetWild ( AjPQuery thys );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery | thys | Modify | Query object. |
AjBool | RETURN | ajTrue if query had wild cards. |
From EMBOSS 6.4.0
void ajQueryStarclear ( AjPQuery thys );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQuery | thys | Modify | Query object. |
void | RETURN |
From EMBOSS 6.4.0
Functions:
ajQueryTrace | Debug calls to trace the data in a query object. |
void ajQueryTrace ( const AjPQuery thys );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPQuery | thys | Input | query object. |
void | RETURN |
From EMBOSS 6.4.0
Functions:
ajQueryExit | Cleans up query processing internal memory |
void ajQueryExit ( void );
Type | Name | Read/Write | Description |
---|---|---|---|
void | RETURN |
From EMBOSS 6.4.0
Sections:
constructors | Constructors |
Query Field Destructors | Destructors |
Functions:
ajQueryfieldNewC | Constructor for a query field |
ajQueryfieldNewS | Constructor for a query field |
AjPQueryField ajQueryfieldNewC ( const char* fieldtxt, const char* wildtxt, AjEQryLink oper );
Type | Name | Read/Write | Description |
---|---|---|---|
const char* | fieldtxt | Input | Field name |
const char* | wildtxt | Input | Wildcard query string |
AjEQryLink | oper | Input | Operator |
AjPQueryField | RETURN | Query field |
From EMBOSS 6.4.0
AjPQueryField ajQueryfieldNewS ( const AjPStr field, const AjPStr wild, AjEQryLink oper );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPStr | field | Input | Field name |
const AjPStr | wild | Input | Wildcard query string |
AjEQryLink | oper | Input | Operator |
AjPQueryField | RETURN | Query field |
From EMBOSS 6.4.0
Functions:
ajQueryfieldDel | Destructor for a query field |
void ajQueryfieldDel ( AjPQueryField* Pthis );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPQueryField* | Pthis | Delete | Query field object to be deleted |
void | RETURN |
From EMBOSS 6.4.0
Sections:
Debug | Miscellaneous |
Functions:
ajQuerylistTrace | Traces the nodes in a query list |
void ajQuerylistTrace ( const AjPList list );
Type | Name | Read/Write | Description |
---|---|---|---|
const AjPList | list | Input | The query list |
void | RETURN |
From EMBOSS 6.4.0
Sections:
Query string parsing | Modifiers |
Functions:
ajQuerystrParseFormat | Parses a query (USA, UFO or general query). |
ajQuerystrParseListfile | Parses a query (USA, UFO or general query). |
ajQuerystrParseRange | Parses a query (USA, UFO or general query). |
ajQuerystrParseRead | Parses a query (USA, UFO or general query). |
const AjPStr ajQuerystrParseFormat ( AjPStr* Pqry, AjPTextin textin, AjBool function findformat );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pqry | Modify | Query string |
AjPTextin | textin | Modify | Text input object |
AjBool function | findformat | Function | Function to validate format name |
const AjPStr | RETURN | Format name if found |
From EMBOSS 6.4.0
AjBool ajQuerystrParseListfile ( AjPStr* Pqry );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pqry | Modify | Query string |
AjBool | RETURN | True if found |
From EMBOSS 6.4.0
AjBool ajQuerystrParseRange ( AjPStr* Pqry, ajint* Pbegin, ajint* Pend, AjBool* Prev );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pqry | Modify | Query string |
ajint* | Pbegin | Modify | Begin position |
ajint* | Pend | Modify | End position |
AjBool* | Prev | Modify | Reverse orientation |
AjBool | RETURN | True if range was found. |
From EMBOSS 6.4.0
AjBool ajQuerystrParseRead ( AjPStr* Pqry, AjPTextin textin, AjBool function findformat, AjBool* Pnontext );
Type | Name | Read/Write | Description |
---|---|---|---|
AjPStr* | Pqry | Modify | Query string |
AjPTextin | textin | Modify | Text input structure. |
AjBool function | findformat | Function | Function to validate format name |
AjBool* | Pnontext | Output | True if access is a non-text method |
AjBool | RETURN | ajTrue on success. |
From EMBOSS 6.4.0