embdata.c


Function embDataListDel

Deletes the tables of data list. Calls ajTablestrFree for each table in the list, and then calls ajListFree to free the actual list.

Prototype

void embDataListDel (
      AjPList* data
);

TypeNameRead/WriteDescription
AjPList*dataOutputis the list of data tables to delete
void RETURN

From EMBOSS 1.0.0


Function embDataListRead

General routine for reading in data from a file. The keys and values of each table are stored as AjPStr.

Prototype

void embDataListRead (
      AjPList data,
      AjPFile pfile
);

TypeNameRead/WriteDescription
AjPListdataOutputis the list of data tables.
AjPFilepfileModifypointer to the data file
void RETURN

From EMBOSS 2.9.0


Function embDataListGetTables

Returns a list of data tables as requested. The data must already have been read in and stored as a list of tables. An unsigned integer is used to request tables. The first table has a value of 1, the second a value of 2, the third a value of 4, the fourth a value of 8 etc. For example a value of 10 would request the second and fourth tables from the list in that order. Only returns a list of pointers to the data. It does not copy the tables.

Prototype

void embDataListGetTables (
      const AjPList fullList,
      AjPList returnList,
      ajuint required
);

TypeNameRead/WriteDescription
const AjPListfullListInputThe list containing all the tables of data
AjPListreturnListOutputThe new list containing just the tables requested
ajuintrequiredInputused to request tables. A value of 1 requests the first table, a value of 16 requests the fifth table, a value of 14 returns the second third and fourth tables in the original list.
void RETURN

From EMBOSS 1.0.0


Function embDataListGetTable

Returns a single table of data from the list of data tables. The data must already have been read in and stored as a list of tables. An unsigned integer is used to request a table. The first table in the list has a value of 1, the second a value of 2, the third a value of 4, the fourth a value of 8 etc. For example a value of 64 would request the seventh data table in the list. When looking for which table to return the position of the lowest set bit in the value determines which table is returned i.e. a value of 66 would request the second table (not the seventh)

Prototype

AjPTable embDataListGetTable (
      const AjPList fullList,
      ajuint required
);

TypeNameRead/WriteDescription
const AjPListfullListInputThe list containing all the tables of data
ajuintrequiredInputused to request a table. A value of 1 requests the first table, a value of 16 requests the fifth table, a value of 14 returns the second table in the original list.
AjPTable RETURNthe data table. Key and value are stored as AjPStrs

From EMBOSS 1.0.0