ajfile


Enum AjEOutfileType

AJAX Outfile Type enumeration

Enumerated value(s)

Name
ajEOutfileTypeUnknownUnknown - none of these
ajEOutfileTypeAssemblyAssembly
ajEOutfileTypeCodonCodon usage
ajEOutfileTypeCPDBClean PDB
ajEOutfileTypeDiscreteDiscrete data
ajEOutfileTypeDistanceDistance matrix data
ajEOutfileTypeFrequencyFrequency data
ajEOutfileTypeMatrixInteger matrix data
ajEOutfileTypeMatrixFFloating point matrix data
ajEOutfileTypeOBOOBO ontology data
ajEOutfileTypePropertiesPhylogenetic properties
ajEOutfileTypeRefseqReference sequence data
ajEOutfileTypeResourceData resource catalogue data
ajEOutfileTypeSCOPSCOP data
ajEOutfileTypeTaxonNCBI taxonomy data
ajEOutfileTypeTextText data
ajEOutfileTypeTreePhylogenetic tree data
ajEOutfileTypeURLURL data
ajEOutfileTypeVariationVariation data
ajEOutfileTypeXmlXML data


Data type AjPFile

Ajax file object. Holds information for an open (unbuffered) input or output file.

On output, conversion code "%F" writes the filename.

Alias name(s)

Name
AjSFile
AjOFile

Attributes

NameTypeDescription
fpFILE*C file pointer
NameAjPStrFile name as used when opening
PrintnameAjPStrFile name in a clean form for reporting
ListAjPListList of file names (first is open)
EndAjBoolTrue if EOF has been reached
AppAjBoolTrue if file was opened for append.
BuffAjPStrBuffer for latest line read
Workbufferchar*Block as a buffer for fgets etc
Readblockchar*Block as a buffer for fread
FileposajlongFile offset for start of latest read
BlocksizeajuintRead block maximum size
BlockposajuintRead block position
BlocklenajuintRead block length used
BuffsizeajuintBuffer size (zero for default size)
HandleajintAJAX file number 0 if unused
Pidpid_tProcess PID if any (non-WIN32 only)
ProcessHANDLEProcess handle (WIN32 only)
ThreadHANDLEThread handle (WIN32 only)


Data type AjPFilebufflist

Ajax file buffer, holding a simple linked list of buffered lines. This does not use the AjPList objects.

This is a substructure of the AjPFilebuff object.

Alias name(s)

Name
AjSFilebufflist
AjSOilebufflist

Attributes

NameTypeDescription
LineAjPStrString : this line
Nextstruct AjSFilebufflist*Next line in the list, NULL for last
FposajlongFile offset for start of this line


Data type AjPFilebuff

Ajax buffered file object. Holds information for a buffered input file.

Alias name(s)

Name
AjSFilebuff
AjOFilebuff

Attributes

NameTypeDescription
FileAjPFileThe input file - data to be buffered
LinesAjPFilebufflistAll lines ... where the data really is
FreelinesAjPFilebufflistFree list of lines for reuse
CurrAjPFilebufflistCurrent line in Lines list
PrevAjPFilebufflistPrevious line (points to Curr for delete)
LastAjPFilebufflistLast line for quick appending
FreelastAjPFilebufflistLast free line for quick append
NobuffAjBoolif true, do not buffer the file
PosajintPosition in list
SizeajintSize of list
FreeSizeajintSize of free list
FposajlongFile position in File


Data type AjPDir

Ajax directory object. Holds information for an open input directory.

Alias name(s)

Name
AjSDir
AjODir

Attributes

NameTypeDescription
NameAjPStrPath
PrintnameAjPStrDirectory path in a clean form for reporting
PrefixAjPStrDefault filename prefix
ExtensionAjPStrDefault file extension


Data type AjPDirout

Ajax output directory object. Holds information for an open output directory.

Alias name(s)

Name
AjSDirout
AjODirout

Attributes

NameTypeDescription
NameAjPStrPath
PrintnameAjPStrDirectory path in a clean form for reporting
ExtensionAjPStrDefault file extension
CreatedAjBoolNew directory created
Paddingchar[4]Padding to alignment boundary


Data type AjPOutfile

Ajax file object. Holds information for an open (unbuffered) input or output file.

On output, conversion code "%F" writes the filename.

Alias name(s)

Name
AjSOutfile
AjOOutfile

Attributes

NameTypeDescription
FileAjPFileFile object
TypeAjPStrNamed data file type
FormatstrAjPStrFormat specific for this data type
Cleanupvoid functionFunction to write remaining lines on closing
OutDatavoid*Format data for reuse, e.g. multiple entry output
ItypeajuintIndex number for Type
FormatajintIndex for Formatstr for this data type
RecordsajuintNumber of records written
Paddingchar[4]Padding to alignment boundary