ajurlread.c
Datatypes: AjPUrlin none AjPTable AjPUrlall none
Url input objects
Sections: Url input constructors url input destructors url input modifiers casts Url data inputs
All constructors return a new url input object by pointer. It
is the responsibility of the user to first destroy any previous
url input object. The target pointer does not need to be
initialised to NULL, but it is good programming practice to do so
anyway.
Functions: ajUrlinNew
Creates a new url input object.
Synopsis
Prototype
AjPUrlin ajUrlinNew (
void
);
Type | Name | Read/Write | Description |
AjPUrlin | | RETURN | New url input object. |
Returns
AjPUrlin: | New url input object. |
Description
Creates a new url 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 url input object.
Functions: ajUrlinDel
Deletes an url input object.
Synopsis
Prototype
void ajUrlinDel (
AjPUrlin* pthis
);
Type | Name | Read/Write | Description |
AjPUrlin* | pthis | Delete | Url input |
void | | RETURN | |
Output
Returns
Description
Deletes an url input object.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use the contents of an url input object and
update them.
Functions: ajUrlinClear ajUrlinQryC ajUrlinQryS
Clears an url input object back to "as new" condition, except
for the query list which must be preserved.
Synopsis
Prototype
void ajUrlinClear (
AjPUrlin thys
);
Type | Name | Read/Write | Description |
AjPUrlin | thys | Output | Url input |
void | | RETURN | |
Output
Returns
Description
Clears an url 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 an url input object using a new Universal
Query Address
Synopsis
Prototype
void ajUrlinQryC (
AjPUrlin thys,
const char* txt
);
Type | Name | Read/Write | Description |
AjPUrlin | thys | Modify | Url input object. |
const char* | txt | Input | Query |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Url input object. |
Returns
Description
Resets an url input object using a new Universal
Query Address
See Also
See other functions in this section
Availability
In release 6.4.0
Resets an url input object using a new Universal
Query Address
Synopsis
Prototype
void ajUrlinQryS (
AjPUrlin thys,
const AjPStr str
);
Type | Name | Read/Write | Description |
AjPUrlin | thys | Modify | Url input object. |
const AjPStr | str | Input | Query |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Url input object. |
Returns
Description
Resets an url 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: ajUrlinTrace
Debug calls to trace the data in an url input object.
Synopsis
Prototype
void ajUrlinTrace (
const AjPUrlin thys
);
Type | Name | Read/Write | Description |
const AjPUrlin | thys | Input | Url input object. |
void | | RETURN | |
Input
thys: | (Input) | Url input object. |
Returns
Description
Debug calls to trace the data in an url 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: ajUrlinRead
If the file is not yet open, calls urlinQryProcess to convert the query
into an open file stream.
Uses urlinRead for the actual file reading.
Returns the results in the AjPUrl object.
Synopsis
Prototype
AjBool ajUrlinRead (
AjPUrlin urlin,
AjPUrl url
);
Type | Name | Read/Write | Description |
AjPUrlin | urlin | Modify | Url data input definitions |
AjPUrl | url | Output | Url data returned. |
AjBool | | RETURN | ajTrue on success. |
Output
url: | (Output) | Url data returned. |
Input & Output
urlin: | (Modify) | Url data input definitions |
Returns
AjBool: | ajTrue on success. |
Description
If the file is not yet open, calls urlinQryProcess to convert the query
into an open file stream.
Uses urlinRead for the actual file reading.
Returns the results in the AjPUrl 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: ajUrlinprintBook ajUrlinprintHtml ajUrlinprintText ajUrlinprintWiki
Reports the internal data structures as a Docbook table
Synopsis
Prototype
void ajUrlinprintBook (
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 ajUrlinprintHtml (
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 ajUrlinprintText (
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 ajUrlinprintWiki (
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: ajUrlinExit
Cleans up url input internal memory
Synopsis
Prototype
void ajUrlinExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleans up url input internal memory
See Also
See other functions in this section
Availability
In release 6.4.0
Functions to return internal values
Functions: ajUrlinTypeGetFields ajUrlinTypeGetQlinks
Returns the listof known field names for ajUrlinRead
Synopsis
Prototype
const char* ajUrlinTypeGetFields (
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 field names for ajUrlinRead
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the list of known query link operators for ajUrlinRead
Synopsis
Prototype
const char* ajUrlinTypeGetQlinks (
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 query link operators for ajUrlinRead
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: ajUrlaccessGetDb ajUrlaccessMethodGetQlinks ajUrlaccessMethodGetScope ajUrlaccessMethodTest
Returns the table in which url database access details are registered
Synopsis
Prototype
AjPTable ajUrlaccessGetDb (
void
);
Type | Name | Read/Write | Description |
AjPTable | | RETURN | Access functions hash table |
Returns
AjPTable: | Access functions hash table |
Description
Returns the table in which url 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 url data reading returns the
known query link operators
Synopsis
Prototype
const char* ajUrlaccessMethodGetQlinks (
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 url 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 url data reading and returns the scope
(entry, query or all).
Synopsis
Prototype
ajuint ajUrlaccessMethodGetScope (
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 url 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 url data reading.
Synopsis
Prototype
AjBool ajUrlaccessMethodTest (
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 url data reading.
See Also
See other functions in this section
Availability
In release 6.4.0
Url Input Stream
Sections: Url Input Constructors Url Input Stream Destructors Url input stream modifiers Url input stream casts url input
All constructors return a new url input stream object by pointer. It
is the responsibility of the user to first destroy any previous
url input object. The target pointer does not need to be
initialised to NULL, but it is good programming practice to do so
anyway.
Functions: ajUrlallNew
Creates a new url input stream object.
Synopsis
Prototype
AjPUrlall ajUrlallNew (
void
);
Type | Name | Read/Write | Description |
AjPUrlall | | RETURN | New url input stream object. |
Returns
AjPUrlall: | New url input stream object. |
Description
Creates a new url 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 url input stream object.
Functions: ajUrlallDel
Deletes a url input stream object.
Synopsis
Prototype
void ajUrlallDel (
AjPUrlall* pthis
);
Type | Name | Read/Write | Description |
AjPUrlall* | pthis | Delete | Url input stream |
void | | RETURN | |
Output
pthis: | (Delete) | Url input stream |
Returns
Description
Deletes a url input stream object.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use the contents of a url input stream object and
update them.
Functions: ajUrlallClear
Clears a url input stream object back to "as new" condition, except
for the query list which must be preserved.
Synopsis
Prototype
void ajUrlallClear (
AjPUrlall thys
);
Type | Name | Read/Write | Description |
AjPUrlall | thys | Output | Url input stream |
void | | RETURN | |
Output
thys: | (Output) | Url input stream |
Returns
Description
Clears a url 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 url input stream object
Functions: ajUrlallGeturlId
Returns the identifier of the current url in an input stream
Synopsis
Prototype
const AjPStr ajUrlallGeturlId (
const AjPUrlall thys
);
Type | Name | Read/Write | Description |
const AjPUrlall | thys | Input | Url input stream |
const AjPStr | | RETURN | Identifier |
Input
thys: | (Input) | Url input stream |
Returns
Description
Returns the identifier of the current url in an input stream
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use a url input stream object to read data
Functions: ajUrlallNext
Parse a url 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 AjPUrl object but leave the file open for
future calls.
Synopsis
Prototype
AjBool ajUrlallNext (
AjPUrlall thys,
AjPUrl* Purl
);
Type | Name | Read/Write | Description |
AjPUrlall | thys | Output | Url input stream |
AjPUrl* | Purl | Modify | Url returned |
AjBool | | RETURN | ajTrue on success. |
Output
thys: | (Output) | Url input stream |
Input & Output
Purl: | (Modify) | Url returned |
Returns
AjBool: | ajTrue on success. |
Description
Parse a url 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 AjPUrl 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: ajUrlinformatTerm ajUrlinformatTest
Tests whether a url data input format term is known
Synopsis
Prototype
AjBool ajUrlinformatTerm (
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 url data input format term is known
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a named url data input format is known
Synopsis
Prototype
AjBool ajUrlinformatTest (
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 url data input format is known
See Also
See other functions in this section
Availability
In release 6.4.0