ajfiledata.c

Datatypes:
AjPFile File object


Datatype: AjPFile

Function is for manipulating input files and returns or takes at least one AjPFile argument.

Sections:
File ConstructorsConstructors
data file valuesGeneral use
file exitMiscellaneous


AjPFile: File Constructors

Functions:
ajDatafileNewInNameCReturns an allocated data file pointer (AjPFile) if file exists a) in . b) in ./.embossdata c) ~/ d) ~/.embossdata e) $DATA
ajDatafileNewInNameSReturns an allocated data file pointer (AjPFile) if file exists a) in . b) in ./.embossdata c) ~/ d) ~/.embossdata e) $DATA
ajDatafileNewInNamePathSReturns an allocated AjFileInNew pointer (AjPFile) if file exists in the EMBOSS/data/(dir) directory, or is found in the usual directories by ajDatafileNewInNameS
ajDatafileNewOutNameSReturns an allocated output data file pointer (AjPFile) to a file in the emboss_DATA area


Function ajDatafileNewInNameC

Returns an allocated data file pointer (AjPFile) if file exists a) in . b) in ./.embossdata c) ~/ d) ~/.embossdata e) $DATA

Prototype

AjPFile ajDatafileNewInNameC (
      const char* name
);

TypeNameRead/WriteDescription
const char*nameInputFilename.
AjPFile RETURNfile pointer

From EMBOSS 6.0.0


Function ajDatafileNewInNameS

Returns an allocated data file pointer (AjPFile) if file exists a) in . b) in ./.embossdata c) ~/ d) ~/.embossdata e) $DATA

Prototype

AjPFile ajDatafileNewInNameS (
      const AjPStr name
);

TypeNameRead/WriteDescription
const AjPStrnameInputFilename
AjPFile RETURNfile pointer

From EMBOSS 6.0.0


Function ajDatafileNewInNamePathS

Returns an allocated AjFileInNew pointer (AjPFile) if file exists in the EMBOSS/data/(dir) directory, or is found in the usual directories by ajDatafileNewInNameS

Prototype

AjPFile ajDatafileNewInNamePathS (
      const AjPStr name,
      const AjPStr path
);

TypeNameRead/WriteDescription
const AjPStrnameInputFilename in AjStr.
const AjPStrpathInputData directory name in AjStr.
AjPFile RETURNfile pointer

From EMBOSS 6.0.0


Function ajDatafileNewOutNameS

Returns an allocated output data file pointer (AjPFile) to a file in the emboss_DATA area

Prototype

AjPFile ajDatafileNewOutNameS (
      const AjPStr name
);

TypeNameRead/WriteDescription
const AjPStrnameInputFilename in AjStr.
AjPFile RETURNfile pointer.

From EMBOSS 6.0.0


AjPFile: data file values

Functions:
ajDatafileValuePathGet the path to the active data directory


Function ajDatafileValuePath

Get the path to the active data directory

Prototype

const AjPStr ajDatafileValuePath (
      void
);

TypeNameRead/WriteDescription
const AjPStr RETURNpath.

From EMBOSS 6.0.0


AjPFile: file exit

Functions:
ajDatafileExitPrints a summary of file usage with debug calls


Function ajDatafileExit

Prints a summary of file usage with debug calls

Prototype

void ajDatafileExit (
      void
);

TypeNameRead/WriteDescription
void RETURN

From EMBOSS 6.0.0