ajvarread.c
Datatypes: AjPVarin none AjPTable AjPVarall none
Variation input objects
Sections: Variation input constructors variation input destructors variation input modifiers casts Variation data inputs
All constructors return a new variation input object by pointer. It
is the responsibility of the user to first destroy any previous
variation input object. The target pointer does not need to be
initialised to NULL, but it is good programming practice to do so
anyway.
Functions: ajVarinNew
Creates a new variation input object.
Synopsis
Prototype
AjPVarin ajVarinNew (
void
);
Type | Name | Read/Write | Description |
AjPVarin | | RETURN | New variation input object. |
Returns
AjPVarin: | New variation input object. |
Description
Creates a new variation 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 variation input object.
Functions: ajVarinDel
Deletes a variation input object.
Synopsis
Prototype
void ajVarinDel (
AjPVarin* pthis
);
Type | Name | Read/Write | Description |
AjPVarin* | pthis | Delete | Variation input |
void | | RETURN | |
Output
pthis: | (Delete) | Variation input |
Returns
Description
Deletes a variation input object.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use the contents of a variation input object and
update them.
Functions: ajVarinClear ajVarinQryC ajVarinQryS
Clears a variation input object back to "as new" condition, except
for the query list which must be preserved.
Synopsis
Prototype
void ajVarinClear (
AjPVarin thys
);
Type | Name | Read/Write | Description |
AjPVarin | thys | Output | Variation input |
void | | RETURN | |
Output
thys: | (Output) | Variation input |
Returns
Description
Clears a variation 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 variation input object using a new Universal
Query Address
Synopsis
Prototype
void ajVarinQryC (
AjPVarin thys,
const char* txt
);
Type | Name | Read/Write | Description |
AjPVarin | thys | Modify | Variation input object. |
const char* | txt | Input | Query |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Variation input object. |
Returns
Description
Resets a variation input object using a new Universal
Query Address
See Also
See other functions in this section
Availability
In release 6.4.0
Resets a variation input object using a new Universal
Query Address
Synopsis
Prototype
void ajVarinQryS (
AjPVarin thys,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPVarin | thys | Modify | Variation input object. |
const AjPStr | str | Input | Query |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Variation input object. |
Returns
Description
Resets a variation 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: ajVarinTrace
Debug calls to trace the data in a variation input object.
Synopsis
Prototype
void ajVarinTrace (
const AjPVarin thys
);
Type | Name | Read/Write | Description |
const AjPVarin | thys | Input | Variation input object. |
void | | RETURN | |
Input
thys: | (Input) | Variation input object. |
Returns
Description
Debug calls to trace the data in a variation 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: ajVarinRead
If the file is not yet open, calls varinQryProcess to convert the query
into an open file stream.
Uses varinRead for the actual file reading.
Returns the results in the AjPVar object.
Synopsis
Prototype
AjBool ajVarinRead (
AjPVarin varin,
AjPVar var
);
Type | Name | Read/Write | Description |
AjPVarin | varin | Modify | Variation data input definitions |
AjPVar | var | Output | Variation data returned. |
AjBool | | RETURN | ajTrue on success. |
Output
var: | (Output) | Variation data returned. |
Input & Output
varin: | (Modify) | Variation data input definitions |
Returns
AjBool: | ajTrue on success. |
Description
If the file is not yet open, calls varinQryProcess to convert the query
into an open file stream.
Uses varinRead for the actual file reading.
Returns the results in the AjPVar 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: ajVarinprintBook ajVarinprintHtml ajVarinprintText ajVarinprintWiki
Reports the internal data structures as a Docbook table
Synopsis
Prototype
void ajVarinprintBook (
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 ajVarinprintHtml (
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 ajVarinprintText (
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 ajVarinprintWiki (
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: ajVarinExit
Cleans up variation input internal memory
Synopsis
Prototype
void ajVarinExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleans up variation input internal memory
See Also
See other functions in this section
Availability
In release 6.4.0
Functions to return internal values
Functions: ajVarinTypeGetFields ajVarinTypeGetQlinks
Returns the list of known field names for ajVarinRead
Synopsis
Prototype
const char* ajVarinTypeGetFields (
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 ajVarinRead
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the listof known query link operators for ajVarinRead
Synopsis
Prototype
const char* ajVarinTypeGetQlinks (
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 ajVarinRead
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: ajVaraccessGetDb ajVaraccessMethodGetQlinks ajVaraccessMethodGetScope ajVaraccessMethodTest
Returns the table in which variation database access details are registered
Synopsis
Prototype
AjPTable ajVaraccessGetDb (
void
);
Type | Name | Read/Write | Description |
AjPTable | | RETURN | Access functions hash table |
Returns
AjPTable: | Access functions hash table |
Description
Returns the table in which variation 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 var data reading returns the
known query link operators
Synopsis
Prototype
const char* ajVaraccessMethodGetQlinks (
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 var 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 variation data reading and returns the scope
(entry, query or all).
Synopsis
Prototype
ajuint ajVaraccessMethodGetScope (
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 variation 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 variation data reading.
Synopsis
Prototype
AjBool ajVaraccessMethodTest (
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 variation data reading.
See Also
See other functions in this section
Availability
In release 6.4.0
Variation Input Stream
Sections: Variation Input Constructors Variation Input Stream Destructors Variation input stream modifiers Variation input stream casts Variation input
All constructors return a new variation input stream object by pointer. It
is the responsibility of the user to first destroy any previous
variation input object. The target pointer does not need to be
initialised to NULL, but it is good programming practice to do so
anyway.
Functions: ajVarallNew
Creates a new variation input stream object.
Synopsis
Prototype
AjPVarall ajVarallNew (
void
);
Type | Name | Read/Write | Description |
AjPVarall | | RETURN | New variation input stream object. |
Returns
AjPVarall: | New variation input stream object. |
Description
Creates a new variation 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 variation input stream object.
Functions: ajVarallDel
Deletes a variation input stream object.
Synopsis
Prototype
void ajVarallDel (
AjPVarall* pthis
);
Type | Name | Read/Write | Description |
AjPVarall* | pthis | Delete | Variation input stream |
void | | RETURN | |
Output
pthis: | (Delete) | Variation input stream |
Returns
Description
Deletes a variation input stream object.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use the contents of a variation input stream object and
update them.
Functions: ajVarallClear
Clears a variation input stream object back to "as new" condition, except
for the query list which must be preserved.
Synopsis
Prototype
void ajVarallClear (
AjPVarall thys
);
Type | Name | Read/Write | Description |
AjPVarall | thys | Output | Variation input stream |
void | | RETURN | |
Output
thys: | (Output) | Variation input stream |
Returns
Description
Clears a variation 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 variation input stream object
Functions: ajVarallGetvarId
Returns the identifier of the current variation in an input stream
Synopsis
Prototype
const AjPStr ajVarallGetvarId (
const AjPVarall thys
);
Type | Name | Read/Write | Description |
const AjPVarall | thys | Input | Variation input stream |
const AjPStr | | RETURN | Identifier |
Input
thys: | (Input) | Variation input stream |
Returns
Description
Returns the identifier of the current variation in an input stream
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use a variation input stream object to read data
Functions: ajVarallNext
Parse a variation 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 AjPVar object but leave the file open for
future calls.
Synopsis
Prototype
AjBool ajVarallNext (
AjPVarall thys,
AjPVar* Pvar
);
Type | Name | Read/Write | Description |
AjPVarall | thys | Output | Variation input stream |
AjPVar* | Pvar | Modify | Variation returned |
AjBool | | RETURN | ajTrue on success. |
Output
thys: | (Output) | Variation input stream |
Input & Output
Pvar: | (Modify) | Variation returned |
Returns
AjBool: | ajTrue on success. |
Description
Parse a variation 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 AjPVar 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: ajVarinformatTerm ajVarinformatTest
Tests whether a variation data input format term is known
Synopsis
Prototype
AjBool ajVarinformatTerm (
const AjPStr term
);
Type | Name | Read/Write | Description |
const AjPStr | term | Input | Format term EDAM ID |
AjBool | | RETURN | ajTrue if term was accepted |
Input
term: | (Input) | Format term EDAM ID |
Returns
AjBool: | ajTrue if term was accepted |
Description
Tests whether a variation data input format term is known
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a named variation data input format is known
Synopsis
Prototype
AjBool ajVarinformatTest (
const AjPStr format
);
Type | Name | Read/Write | Description |
const AjPStr | format | Input | Format |
AjBool | | RETURN | ajTrue if format was accepted |
Input
Returns
AjBool: | ajTrue if format was accepted |
Description
Tests whether a named variation data input format is known
See Also
See other functions in this section
Availability
In release 6.4.0