ajresource.c

Datatypes:
AjPResource Data resource data
AjPReslink Data resource link data
AjPList Resource link list operations
AjPResquery Data resource query data
AjPList Resource query list operations
AjPResterm Data resource term data
AjPList Resource term list operations
none Miscellaneous functions


Datatype: AjPResource

Function is for manipulating data resource data objects

Sections:
constructorsConstructors
Data resource data destructorsDestructors
CastsCasts
data resource data modifiersModifiers
castsCasts


AjPResource: constructors

Constructors

Functions:
ajResourceNewResource data constructor
ajResourceNewDrcatResource data constructor for an entry in DRCAT
ajResourceNewResourceCopy constructor for a public resource object


Function ajResourceNew

Resource data constructor

Prototype

AjPResource ajResourceNew (
      void
);

TypeNameRead/WriteDescription
AjPResource RETURNNew object

From EMBOSS 6.4.0


Function ajResourceNewDrcat

Resource data constructor for an entry in DRCAT

Prototype

AjPResource ajResourceNewDrcat (
      const AjPStr dbname
);

TypeNameRead/WriteDescription
const AjPStrdbnameInputDRCAT identifier
AjPResource RETURNNew object

From EMBOSS 6.4.0


Function ajResourceNewResource

Copy constructor for a public resource object

Prototype

AjPResource ajResourceNewResource (
      const AjPResource res
);

TypeNameRead/WriteDescription
const AjPResourceresInputResource object
AjPResource RETURNResource object

From EMBOSS 6.4.0


AjPResource: Data resource data destructors

Destruction destroys all internal data structures and frees the memory allocated for the data resource data object.

Functions:
ajResourceDelData resource data destructor


Function ajResourceDel

Data resource data destructor

Prototype

void ajResourceDel (
      AjPResource* Presource
);

TypeNameRead/WriteDescription
AjPResource*PresourceDeleteData resource data object to delete
void RETURN

From EMBOSS 6.4.0


AjPResource: Casts

Return values from a data resource data object

Functions:
ajResourceGetDbdataReturns a query database definition using a data resource data object.
ajResourceGetEntryReturn the complete text
ajResourceGetIdReturn the identifier
ajResourceGetQryCReturns 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.
ajResourceGetQrySReturns 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.


Function ajResourceGetDbdata

Returns a query database definition using a data resource data object.

Prototype

AjBool ajResourceGetDbdata (
      const AjPResource resource,
      AjPQuery qry,
      AjBool function findformat
);

TypeNameRead/WriteDescription
const AjPResourceresourceInputData resource data object.
AjPQueryqryOutputQuery object.
AjBool functionfindformatFunctionFind format function for datatype
AjBool RETURNTrue on success

From EMBOSS 6.4.0


Function ajResourceGetEntry

Return the complete text

Prototype

const AjPStr ajResourceGetEntry (
      const AjPResource resource
);

TypeNameRead/WriteDescription
const AjPResourceresourceInputData resource
const AjPStr RETURNReturned entry text

From EMBOSS 6.4.0


Function ajResourceGetId

Return the identifier

Prototype

const AjPStr ajResourceGetId (
      const AjPResource resource
);

TypeNameRead/WriteDescription
const AjPResourceresourceInputData resource
const AjPStr RETURNReturned id

From EMBOSS 6.4.0


Function ajResourceGetQryC

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.

Prototype

const char* ajResourceGetQryC (
      const AjPResource resource
);

TypeNameRead/WriteDescription
const AjPResourceresourceInputData resource data object.
const char* RETURNQuery as a character string.

From EMBOSS 6.4.0


Function ajResourceGetQryS

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.

Prototype

const AjPStr ajResourceGetQryS (
      const AjPResource resource
);

TypeNameRead/WriteDescription
const AjPResourceresourceInputData resource data object.
const AjPStr RETURNQuery as a string.

From EMBOSS 6.4.0


AjPResource: data resource data modifiers

Data resource data modifiers

Functions:
ajResourceClearResets all data for a data resource data object so that it can be reused.


Function ajResourceClear

Resets all data for a data resource data object so that it can be reused.

Prototype

void ajResourceClear (
      AjPResource resource
);

TypeNameRead/WriteDescription
AjPResourceresourceModifyData resource data object
void RETURN

From EMBOSS 6.4.0


AjPResource: casts

Return values

Functions:
ajResourceTraceWrite debug report of a resource object


Function ajResourceTrace

Write debug report of a resource object

Prototype

void ajResourceTrace (
      const AjPResource thys
);

TypeNameRead/WriteDescription
const AjPResourcethysInputResource object
void RETURN

From EMBOSS 6.4.0


Datatype: AjPReslink

Function is for manipulating data resource link data objects

Sections:
constructorsConstructors
Data resource link data destructorsDestructors


AjPReslink: constructors

Constructors

Functions:
ajReslinkNewConstructor for a public resource link object
ajReslinkNewReslinkConstructor for a public resource link object


Function ajReslinkNew

Constructor for a public resource link object

Prototype

AjPReslink ajReslinkNew (
      void
);

TypeNameRead/WriteDescription
AjPReslink RETURNResource link object

From EMBOSS 6.4.0


Function ajReslinkNewReslink

Constructor for a public resource link object

Prototype

AjPReslink ajReslinkNewReslink (
      const AjPReslink reslink
);

TypeNameRead/WriteDescription
const AjPReslinkreslinkInputSource resource link object
AjPReslink RETURNResource link object

From EMBOSS 6.4.0


AjPReslink: Data resource link data destructors

Destruction destroys all internal data structures and frees the memory allocated for the data resource link data object.

Functions:
ajReslinkDelDestructor for a public resource link object


Function ajReslinkDel

Destructor for a public resource link object

Prototype

void ajReslinkDel (
      AjPReslink* Preslink
);

TypeNameRead/WriteDescription
AjPReslink*PreslinkDeleteResource link object
void RETURN

From EMBOSS 6.4.0


Datatype: AjPList

Manipulating lists of resource links

Sections:
Resource link list operationsGeneral use


AjPList: Resource link list operations

Manipulating lists of resource links

Functions:
ajReslinklistCloneCopy a list of resource links to another list


Function ajReslinklistClone

Copy a list of resource links to another list

Prototype

AjBool ajReslinklistClone (
      const AjPList src,
      AjPList dest
);

TypeNameRead/WriteDescription
const AjPListsrcInputSource list of resource links
AjPListdestOutputDestination list of resource links
AjBool RETURNTrue on success

From EMBOSS 6.4.0


Datatype: AjPResquery

Function is for manipulating data resource query data objects

Sections:
constructorsConstructors
Data resource query data destructorsDestructors


AjPResquery: constructors

Constructors

Functions:
ajResqueryNewConstructor for a public resource query object
ajResqueryNewResqueryConstructor for a public resource query object


Function ajResqueryNew

Constructor for a public resource query object

Prototype

AjPResquery ajResqueryNew (
      void
);

TypeNameRead/WriteDescription
AjPResquery RETURNResource query object

From EMBOSS 6.4.0


Function ajResqueryNewResquery

Constructor for a public resource query object

Prototype

AjPResquery ajResqueryNewResquery (
      const AjPResquery qry
);

TypeNameRead/WriteDescription
const AjPResqueryqryInputSource resource query object
AjPResquery RETURNResource query object

From EMBOSS 6.4.0


AjPResquery: Data resource query data destructors

Destruction destroys all internal data structures and frees the memory allocated for the data resource query data object.

Functions:
ajResqueryDelDestructor for a public resource query object


Function ajResqueryDel

Destructor for a public resource query object

Prototype

void ajResqueryDel (
      AjPResquery* Presquery
);

TypeNameRead/WriteDescription
AjPResquery*PresqueryDeleteResource query object
void RETURN

From EMBOSS 6.4.0


Datatype: AjPList

Manipulating lists of resource queries

Sections:
Resource query list operationsGeneral use


AjPList: Resource query list operations

Manipulating lists of resource queries

Functions:
ajResquerylistCloneCopy a list of resource queries to another list


Function ajResquerylistClone

Copy a list of resource queries to another list

Prototype

AjBool ajResquerylistClone (
      const AjPList src,
      AjPList dest
);

TypeNameRead/WriteDescription
const AjPListsrcInputSource list of resource queries
AjPListdestOutputDestination list of resource queries
AjBool RETURNTrue on success

From EMBOSS 6.4.0


Datatype: AjPResterm

Function is for manipulating data resource term data objects

Sections:
constructorsConstructors
Data resource term data destructorsDestructors


AjPResterm: constructors

Constructors

Functions:
ajRestermNewConstructor for a public resource term object
ajRestermNewRestermConstructor for a public resource term object


Function ajRestermNew

Constructor for a public resource term object

Prototype

AjPResterm ajRestermNew (
      void
);

TypeNameRead/WriteDescription
AjPResterm RETURNResource term object

From EMBOSS 6.4.0


Function ajRestermNewResterm

Constructor for a public resource term object

Prototype

AjPResterm ajRestermNewResterm (
      const AjPResterm term
);

TypeNameRead/WriteDescription
const AjPRestermtermInputSource resource term object
AjPResterm RETURNResource term object

From EMBOSS 6.4.0


AjPResterm: Data resource term data destructors

Destruction destroys all internal data structures and frees the memory allocated for the data resource term data object.

Functions:
ajRestermDelDestructor for a public resource term object


Function ajRestermDel

Destructor for a public resource term object

Prototype

void ajRestermDel (
      AjPResterm* Presterm
);

TypeNameRead/WriteDescription
AjPResterm*PrestermDeleteResource term object
void RETURN

From EMBOSS 6.4.0


Datatype: AjPList

Manipulating lists of resource terms

Sections:
Resource term list operationsGeneral use


AjPList: Resource term list operations

Manipulating lists of resource terms

Functions:
ajRestermlistCloneCopy a list of resource terms to another list


Function ajRestermlistClone

Copy a list of resource terms to another list

Prototype

AjBool ajRestermlistClone (
      const AjPList src,
      AjPList dest
);

TypeNameRead/WriteDescription
const AjPListsrcInputSource list of resource terms
AjPListdestOutputDestination list of resource terms
AjBool RETURNTrue on success

From EMBOSS 6.4.0


Datatype: none

Functions to initialise and clean up internals

Sections:
exitMiscellaneous


Section: 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:
ajResourceExitCleans up data processing internal memory


Function ajResourceExit

Cleans up data processing internal memory

Prototype

void ajResourceExit (
      void
);

TypeNameRead/WriteDescription
void RETURN

From EMBOSS 6.4.0