ajresource.c
Datatypes: AjPResource AjPReslink AjPList AjPResquery AjPList AjPResterm AjPList none
Data resource data
Sections: constructors Data resource data destructors Casts data resource data modifiers casts
Constructors
Functions: ajResourceNew ajResourceNewDrcat ajResourceNewResource
Resource data constructor
Synopsis
Prototype
AjPResource ajResourceNew (
void
);
Type | Name | Read/Write | Description |
AjPResource | | RETURN | New object |
Returns
Description
Resource data constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Resource data constructor for an entry in DRCAT
Synopsis
Prototype
AjPResource ajResourceNewDrcat (
const AjPStr dbname
);
Type | Name | Read/Write | Description |
const AjPStr | dbname | Input | DRCAT identifier |
AjPResource | | RETURN | New object |
Input
dbname: | (Input) | DRCAT identifier |
Returns
Description
Resource data constructor for an entry in DRCAT
See Also
See other functions in this section
Availability
In release 6.4.0
Copy constructor for a public resource object
Synopsis
Prototype
AjPResource ajResourceNewResource (
const AjPResource res
);
Type | Name | Read/Write | Description |
const AjPResource | res | Input | Resource object |
AjPResource | | RETURN | Resource object |
Input
res: | (Input) | Resource object |
Returns
AjPResource: | Resource object |
Description
Copy constructor for a public resource 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 data resource data object.
Functions: ajResourceDel
Data resource data destructor
Synopsis
Prototype
void ajResourceDel (
AjPResource* Presource
);
Type | Name | Read/Write | Description |
AjPResource* | Presource | Delete | Data resource data object to delete |
void | | RETURN | |
Output
Presource: | (Delete) | Data resource data object to delete |
Returns
Description
Data resource data destructor
See Also
See other functions in this section
Availability
In release 6.4.0
Return values from a data resource data object
Functions: ajResourceGetDbdata ajResourceGetEntry ajResourceGetId ajResourceGetQryC ajResourceGetQryS
Returns a query database definition using a data resource data object.
Synopsis
Prototype
AjBool ajResourceGetDbdata (
const AjPResource resource,
AjPQuery qry,
AjBool function findformat
);
Type | Name | Read/Write | Description |
const AjPResource | resource | Input | Data resource data object. |
AjPQuery | qry | Output | Query object. |
AjBool function | findformat | Function | Find format function for datatype |
AjBool | | RETURN | True on success |
Input
resource: | (Input) | Data resource data object. |
findformat: | (Function) | Find format function for datatype |
Output
qry: | (Output) | Query object. |
Returns
Description
Returns a query database definition using a data resource data object.
See Also
See other functions in this section
Availability
In release 6.4.0
Return the complete text
Synopsis
Prototype
const AjPStr ajResourceGetEntry (
const AjPResource resource
);
Type | Name | Read/Write | Description |
const AjPResource | resource | Input | Data resource |
const AjPStr | | RETURN | Returned entry text |
Input
resource: | (Input) | Data resource |
Returns
const AjPStr: | Returned entry text |
Description
Return the complete text
See Also
See other functions in this section
Availability
In release 6.4.0
Return the identifier
Synopsis
Prototype
const AjPStr ajResourceGetId (
const AjPResource resource
);
Type | Name | Read/Write | Description |
const AjPResource | resource | Input | Data resource |
const AjPStr | | RETURN | Returned id |
Input
resource: | (Input) | Data resource |
Returns
Description
Return the identifier
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the query string of a data resource data object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajResourceGetQryC (
const AjPResource resource
);
Type | Name | Read/Write | Description |
const AjPResource | resource | Input | Data resource data object. |
const char* | | RETURN | Query as a character string. |
Input
resource: | (Input) | Data resource data object. |
Returns
const char*: | Query as a character string. |
Description
Returns the query string of a data resource data object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the query string of a data resource data object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajResourceGetQryS (
const AjPResource resource
);
Type | Name | Read/Write | Description |
const AjPResource | resource | Input | Data resource data object. |
const AjPStr | | RETURN | Query as a string. |
Input
resource: | (Input) | Data resource data object. |
Returns
const AjPStr: | Query as a string. |
Description
Returns the query string of a data resource data object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Data resource data modifiers
Functions: ajResourceClear
Resets all data for a data resource data object so that it can be reused.
Synopsis
Prototype
void ajResourceClear (
AjPResource resource
);
Type | Name | Read/Write | Description |
AjPResource | resource | Modify | Data resource data object |
void | | RETURN | |
Input & Output
resource: | (Modify) | Data resource data object |
Returns
Description
Resets all data for a data resource data object so that it can be reused.
See Also
See other functions in this section
Availability
In release 6.4.0
Return values
Functions: ajResourceTrace
Write debug report of a resource object
Synopsis
Prototype
void ajResourceTrace (
const AjPResource thys
);
Type | Name | Read/Write | Description |
const AjPResource | thys | Input | Resource object |
void | | RETURN | |
Input
thys: | (Input) | Resource object |
Returns
Description
Write debug report of a resource object
See Also
See other functions in this section
Availability
In release 6.4.0
Data resource link data
Sections: constructors Data resource link data destructors
Constructors
Functions: ajReslinkNew ajReslinkNewReslink
Constructor for a public resource link object
Synopsis
Prototype
AjPReslink ajReslinkNew (
void
);
Type | Name | Read/Write | Description |
AjPReslink | | RETURN | Resource link object |
Returns
AjPReslink: | Resource link object |
Description
Constructor for a public resource link object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for a public resource link object
Synopsis
Prototype
AjPReslink ajReslinkNewReslink (
const AjPReslink reslink
);
Type | Name | Read/Write | Description |
const AjPReslink | reslink | Input | Source resource link object |
AjPReslink | | RETURN | Resource link object |
Input
reslink: | (Input) | Source resource link object |
Returns
AjPReslink: | Resource link object |
Description
Constructor for a public resource link 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 data resource link data object.
Functions: ajReslinkDel
Destructor for a public resource link object
Synopsis
Prototype
void ajReslinkDel (
AjPReslink* Preslink
);
Type | Name | Read/Write | Description |
AjPReslink* | Preslink | Delete | Resource link object |
void | | RETURN | |
Output
Preslink: | (Delete) | Resource link object |
Returns
Description
Destructor for a public resource link object
See Also
See other functions in this section
Availability
In release 6.4.0
Resource link list operations
Sections: Resource link list operations
Manipulating lists of resource links
Functions: ajReslinklistClone
Copy a list of resource links to another list
Synopsis
Prototype
AjBool ajReslinklistClone (
const AjPList src,
AjPList dest
);
Type | Name | Read/Write | Description |
const AjPList | src | Input | Source list of resource links |
AjPList | dest | Output | Destination list of resource links |
AjBool | | RETURN | True on success |
Input
src: | (Input) | Source list of resource links |
Output
dest: | (Output) | Destination list of resource links |
Returns
Description
Copy a list of resource links to another list
See Also
See other functions in this section
Availability
In release 6.4.0
Data resource query data
Sections: constructors Data resource query data destructors
Constructors
Functions: ajResqueryNew ajResqueryNewResquery
Constructor for a public resource query object
Synopsis
Prototype
AjPResquery ajResqueryNew (
void
);
Type | Name | Read/Write | Description |
AjPResquery | | RETURN | Resource query object |
Returns
AjPResquery: | Resource query object |
Description
Constructor for a public resource query object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for a public resource query object
Synopsis
Prototype
AjPResquery ajResqueryNewResquery (
const AjPResquery qry
);
Type | Name | Read/Write | Description |
const AjPResquery | qry | Input | Source resource query object |
AjPResquery | | RETURN | Resource query object |
Input
qry: | (Input) | Source resource query object |
Returns
AjPResquery: | Resource query object |
Description
Constructor for a public resource query 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 data resource query data object.
Functions: ajResqueryDel
Destructor for a public resource query object
Synopsis
Prototype
void ajResqueryDel (
AjPResquery* Presquery
);
Type | Name | Read/Write | Description |
AjPResquery* | Presquery | Delete | Resource query object |
void | | RETURN | |
Output
Presquery: | (Delete) | Resource query object |
Returns
Description
Destructor for a public resource query object
See Also
See other functions in this section
Availability
In release 6.4.0
Resource query list operations
Sections: Resource query list operations
Manipulating lists of resource queries
Functions: ajResquerylistClone
Copy a list of resource queries to another list
Synopsis
Prototype
AjBool ajResquerylistClone (
const AjPList src,
AjPList dest
);
Type | Name | Read/Write | Description |
const AjPList | src | Input | Source list of resource queries |
AjPList | dest | Output | Destination list of resource queries |
AjBool | | RETURN | True on success |
Input
src: | (Input) | Source list of resource queries |
Output
dest: | (Output) | Destination list of resource queries |
Returns
Description
Copy a list of resource queries to another list
See Also
See other functions in this section
Availability
In release 6.4.0
Data resource term data
Sections: constructors Data resource term data destructors
Constructors
Functions: ajRestermNew ajRestermNewResterm
Constructor for a public resource term object
Synopsis
Prototype
AjPResterm ajRestermNew (
void
);
Type | Name | Read/Write | Description |
AjPResterm | | RETURN | Resource term object |
Returns
AjPResterm: | Resource term object |
Description
Constructor for a public resource term object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for a public resource term object
Synopsis
Prototype
AjPResterm ajRestermNewResterm (
const AjPResterm term
);
Type | Name | Read/Write | Description |
const AjPResterm | term | Input | Source resource term object |
AjPResterm | | RETURN | Resource term object |
Input
term: | (Input) | Source resource term object |
Returns
AjPResterm: | Resource term object |
Description
Constructor for a public resource term 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 data resource term data object.
Functions: ajRestermDel
Destructor for a public resource term object
Synopsis
Prototype
void ajRestermDel (
AjPResterm* Presterm
);
Type | Name | Read/Write | Description |
AjPResterm* | Presterm | Delete | Resource term object |
void | | RETURN | |
Output
Presterm: | (Delete) | Resource term object |
Returns
Description
Destructor for a public resource term object
See Also
See other functions in this section
Availability
In release 6.4.0
Resource term list operations
Sections: Resource term list operations
Manipulating lists of resource terms
Functions: ajRestermlistClone
Copy a list of resource terms to another list
Synopsis
Prototype
AjBool ajRestermlistClone (
const AjPList src,
AjPList dest
);
Type | Name | Read/Write | Description |
const AjPList | src | Input | Source list of resource terms |
AjPList | dest | Output | Destination list of resource terms |
AjBool | | RETURN | True on success |
Input
src: | (Input) | Source list of resource terms |
Output
dest: | (Output) | Destination list of resource terms |
Returns
Description
Copy a list of resource terms to another list
See Also
See other functions in this section
Availability
In release 6.4.0
Miscellaneous functions
Sections: exit
Functions called on exit from the program by ajExit to do
any necessary cleanup and to report internal statistics to the debug file
Functions: ajResourceExit
Cleans up data processing internal memory
Synopsis
Prototype
void ajResourceExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleans up data processing internal memory
See Also
See other functions in this section
Availability
In release 6.4.0