ajtaxread.c
Datatypes: AjPTaxin none AjPTable AjPTaxall none
Taxonomy input objects
Sections: Taxonomy input constructors taxonomy input destructors taxonomy input modifiers casts Taxonomy data inputs
All constructors return a new taxonomy input object by pointer. It
is the responsibility of the user to first destroy any previous
taxonomy input object. The target pointer does not need to be
initialised to NULL, but it is good programming practice to do so
anyway.
Functions: ajTaxinNew
Creates a new taxonomy input object.
Synopsis
Prototype
AjPTaxin ajTaxinNew (
void
);
Type | Name | Read/Write | Description |
AjPTaxin | | RETURN | New taxonomy input object. |
Returns
AjPTaxin: | New taxonomy input object. |
Description
Creates a new taxonomy input object.
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the taxonomy input object.
Functions: ajTaxinDel
Deletes a taxonomy input object.
Synopsis
Prototype
void ajTaxinDel (
AjPTaxin* pthis
);
Type | Name | Read/Write | Description |
AjPTaxin* | pthis | Delete | Taxonomy input |
void | | RETURN | |
Output
pthis: | (Delete) | Taxonomy input |
Returns
Description
Deletes a taxonomy input object.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use the contents of a taxonomy input object and
update them.
Functions: ajTaxinClear ajTaxinQryC ajTaxinQryS
Clears a taxonomy input object back to "as new" condition, except
for the query list which must be preserved.
Synopsis
Prototype
void ajTaxinClear (
AjPTaxin thys
);
Type | Name | Read/Write | Description |
AjPTaxin | thys | Output | Taxonomy input |
void | | RETURN | |
Output
thys: | (Output) | Taxonomy input |
Returns
Description
Clears a taxonomy input object back to "as new" condition, except
for the query list which must be preserved.
See Also
See other functions in this section
Availability
In release 6.4.0
Resets a taxonomy input object using a new Universal
Query Address
Synopsis
Prototype
void ajTaxinQryC (
AjPTaxin thys,
const char* txt
);
Type | Name | Read/Write | Description |
AjPTaxin | thys | Modify | Taxonomy input object. |
const char* | txt | Input | Query |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Taxonomy input object. |
Returns
Description
Resets a taxonomy input object using a new Universal
Query Address
See Also
See other functions in this section
Availability
In release 6.4.0
Resets a taxonomy input object using a new Universal
Query Address
Synopsis
Prototype
void ajTaxinQryS (
AjPTaxin thys,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPTaxin | thys | Modify | Taxonomy input object. |
const AjPStr | str | Input | Query |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Taxonomy input object. |
Returns
Description
Resets a taxonomy input object using a new Universal
Query Address
See Also
See other functions in this section
Availability
In release 6.4.0
Return values
Functions: ajTaxinTrace
Debug calls to trace the data in a taxonomy input object.
Synopsis
Prototype
void ajTaxinTrace (
const AjPTaxin thys
);
Type | Name | Read/Write | Description |
const AjPTaxin | thys | Input | Taxonomy input object. |
void | | RETURN | |
Input
thys: | (Input) | Taxonomy input object. |
Returns
Description
Debug calls to trace the data in a taxonomy input object.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions read the wxyxdesc data provided by the first argument
Functions: ajTaxinRead
If the file is not yet open, calls taxinQryProcess to convert the query
into an open file stream.
Uses taxinRead for the actual file reading.
Returns the results in the AjPTax object.
Synopsis
Prototype
AjBool ajTaxinRead (
AjPTaxin taxin,
AjPTax tax
);
Type | Name | Read/Write | Description |
AjPTaxin | taxin | Modify | Taxonomy data input definitions |
AjPTax | tax | Output | Taxonomy data returned. |
AjBool | | RETURN | ajTrue on success. |
Output
tax: | (Output) | Taxonomy data returned. |
Input & Output
taxin: | (Modify) | Taxonomy data input definitions |
Returns
AjBool: | ajTrue on success. |
Description
If the file is not yet open, calls taxinQryProcess to convert the query
into an open file stream.
Uses taxinRead for the actual file reading.
Returns the results in the AjPTax object.
See Also
See other functions in this section
Availability
In release 6.4.0
Miscellaneous
Sections: Print Miscellaneous Internals
Printing to a file
Functions: ajTaxinprintBook ajTaxinprintHtml ajTaxinprintText ajTaxinprintWiki
Reports the internal data structures as a Docbook table
Synopsis
Prototype
void ajTaxinprintBook (
AjPFile outf
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
void | | RETURN | |
Input & Output
Returns
Description
Reports the internal data structures as a Docbook table
See Also
See other functions in this section
Availability
In release 6.4.0
Reports the internal data structures as an HTML table
Synopsis
Prototype
void ajTaxinprintHtml (
AjPFile outf
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
void | | RETURN | |
Input & Output
Returns
Description
Reports the internal data structures as an HTML table
See Also
See other functions in this section
Availability
In release 6.4.0
Reports the internal data structures
Synopsis
Prototype
void ajTaxinprintText (
AjPFile outf,
AjBool full
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
AjBool | full | Input | Full report (usually ajFalse) |
void | | RETURN | |
Input
full: | (Input) | Full report (usually ajFalse) |
Input & Output
Returns
Description
Reports the internal data structures
See Also
See other functions in this section
Availability
In release 6.4.0
Reports the internal data structures as a wiki table
Synopsis
Prototype
void ajTaxinprintWiki (
AjPFile outf
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
void | | RETURN | |
Input & Output
Returns
Description
Reports the internal data structures as a wiki table
See Also
See other functions in this section
Availability
In release 6.4.0
Functions to initialise and clean up internals
Functions: ajTaxinExit
Cleans up taxonomy input internal memory
Synopsis
Prototype
void ajTaxinExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleans up taxonomy input internal memory
See Also
See other functions in this section
Availability
In release 6.4.0
Functions to return internal values
Functions: ajTaxinTypeGetFields ajTaxinTypeGetQlinks
Returns the list of known field names for ajTaxinRead
Synopsis
Prototype
const char* ajTaxinTypeGetFields (
void
);
Type | Name | Read/Write | Description |
const char* | | RETURN | List of field names |
Returns
const char*: | List of field names |
Description
Returns the list of known field names for ajTaxinRead
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the listof known query link operators for ajTaxinRead
Synopsis
Prototype
const char* ajTaxinTypeGetQlinks (
void
);
Type | Name | Read/Write | Description |
const char* | | RETURN | List of field names |
Returns
const char*: | List of field names |
Description
Returns the listof known query link operators for ajTaxinRead
See Also
See other functions in this section
Availability
In release 6.4.0
Internal call register table
Sections: Cast
Return a reference to the call table
Functions: ajTaxaccessGetDb ajTaxaccessMethodGetQlinks ajTaxaccessMethodGetScope ajTaxaccessMethodTest
Returns the table in which taxonomy database access details are registered
Synopsis
Prototype
AjPTable ajTaxaccessGetDb (
void
);
Type | Name | Read/Write | Description |
AjPTable | | RETURN | Access functions hash table |
Returns
AjPTable: | Access functions hash table |
Description
Returns the table in which taxonomy database access details are registered
See Also
See other functions in this section
Availability
In release 6.4.0
Tests for a named method for taxonomy data reading returns the
known query link operators
Synopsis
Prototype
const char* ajTaxaccessMethodGetQlinks (
const AjPStr method
);
Type | Name | Read/Write | Description |
const AjPStr | method | Input | Method required. |
const char* | | RETURN | Known link operators |
Input
method: | (Input) | Method required. |
Returns
const char*: | Known link operators |
Description
Tests for a named method for taxonomy data reading returns the
known query link operators
See Also
See other functions in this section
Availability
In release 6.4.0
Tests for a named method for taxonomy data reading and returns the scope
(entry, query or all).
Synopsis
Prototype
ajuint ajTaxaccessMethodGetScope (
const AjPStr method
);
Type | Name | Read/Write | Description |
const AjPStr | method | Input | Method required. |
ajuint | | RETURN | Scope flags |
Input
method: | (Input) | Method required. |
Returns
Description
Tests for a named method for taxonomy data reading and returns the scope
(entry, query or all).
See Also
See other functions in this section
Availability
In release 6.4.0
Tests for a named method for taxonomy data reading.
Synopsis
Prototype
AjBool ajTaxaccessMethodTest (
const AjPStr method
);
Type | Name | Read/Write | Description |
const AjPStr | method | Input | Method required. |
AjBool | | RETURN | ajTrue on success. |
Input
method: | (Input) | Method required. |
Returns
AjBool: | ajTrue on success. |
Description
Tests for a named method for taxonomy data reading.
See Also
See other functions in this section
Availability
In release 6.4.0
Taxon Input Stream
Sections: Taxon Input Constructors Taxon Input Stream Destructors taxon input stream modifiers taxon input stream casts taxon input
All constructors return a new taxon input stream object by pointer. It
is the responsibility of the user to first destroy any previous
taxon input object. The target pointer does not need to be
initialised to NULL, but it is good programming practice to do so
anyway.
Functions: ajTaxallNew
Creates a new taxon input stream object.
Synopsis
Prototype
AjPTaxall ajTaxallNew (
void
);
Type | Name | Read/Write | Description |
AjPTaxall | | RETURN | New taxon input stream object. |
Returns
AjPTaxall: | New taxon input stream object. |
Description
Creates a new taxon input stream object.
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the taxon input stream object.
Functions: ajTaxallDel
Deletes a taxon input stream object.
Synopsis
Prototype
void ajTaxallDel (
AjPTaxall* pthis
);
Type | Name | Read/Write | Description |
AjPTaxall* | pthis | Delete | taxon input stream |
void | | RETURN | |
Output
pthis: | (Delete) | taxon input stream |
Returns
Description
Deletes a taxon input stream object.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use the contents of a taxon input stream object and
update them.
Functions: ajTaxallClear
Clears a taxon input stream object back to "as new" condition, except
for the query list which must be preserved.
Synopsis
Prototype
void ajTaxallClear (
AjPTaxall thys
);
Type | Name | Read/Write | Description |
AjPTaxall | thys | Output | Taxon input stream |
void | | RETURN | |
Output
thys: | (Output) | Taxon input stream |
Returns
Description
Clears a taxon input stream object back to "as new" condition, except
for the query list which must be preserved.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions return the contents of a taxon input stream object
Functions: ajTaxallGettaxId
Returns the identifier of the current taxon in an input stream
Synopsis
Prototype
const AjPStr ajTaxallGettaxId (
const AjPTaxall thys
);
Type | Name | Read/Write | Description |
const AjPTaxall | thys | Input | Taxon input stream |
const AjPStr | | RETURN | Identifier |
Input
thys: | (Input) | Taxon input stream |
Returns
Description
Returns the identifier of the current taxon in an input stream
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use a taxon input stream object to read data
Functions: ajTaxallNext
Parse a taxon query into format, access, file and entry
Split at delimiters. Check for the first part as a valid format
Check for the remaining first part as a database name or as a file
that can be opened.
Anything left is an entryname spec.
Return the results in the AjPTax object but leave the file open for
future calls.
Synopsis
Prototype
AjBool ajTaxallNext (
AjPTaxall thys,
AjPTax* Ptax
);
Type | Name | Read/Write | Description |
AjPTaxall | thys | Output | Taxon input stream |
AjPTax* | Ptax | Modify | Taxon returned |
AjBool | | RETURN | ajTrue on success. |
Output
thys: | (Output) | Taxon input stream |
Input & Output
Ptax: | (Modify) | Taxon returned |
Returns
AjBool: | ajTrue on success. |
Description
Parse a taxon query into format, access, file and entry
Split at delimiters. Check for the first part as a valid format
Check for the remaining first part as a database name or as a file
that can be opened.
Anything left is an entryname spec.
Return the results in the AjPTax object but leave the file open for
future calls.
See Also
See other functions in this section
Availability
In release 6.4.0
Input formats
Sections: cast
Values for input formats
Functions: ajTaxinformatTest
Tests whether a named taxonomy data input format is known
Synopsis
Prototype
AjBool ajTaxinformatTest (
const AjPStr format
);
Type | Name | Read/Write | Description |
const AjPStr | format | Input | Format |
AjBool | | RETURN | ajTrue if formats was accepted |
Input
Returns
AjBool: | ajTrue if formats was accepted |
Description
Tests whether a named taxonomy data input format is known
See Also
See other functions in this section
Availability
In release 6.4.0