ajtextwrite.c

Datatypes: AjPFile none


Datatype: AjPFile

Text data output

Sections: text data outputs


Section: text data outputs

These functions write the text data provided by the first argument

Functions: ajTextoutWrite


Function ajTextoutWrite

Write a text in a named format

Synopsis

Prototype
AjBool ajTextoutWrite (
      AjPOutfile outf,
      const AjPText text
);

TypeNameRead/WriteDescription
AjPOutfileoutfModifyOutput file
const AjPTexttextInputText object
AjBool RETURNTrue on success

Input
text:(Input)Text object
Input & Output
outf:(Modify)Output file
Returns
AjBool:True on success

Description

Write a text in a named format

See Also

See other functions in this section

Availability

In release 6.4.0

Datatype: none

Miscellaneous functions

Sections: Print


Section: Print

Printing to a file

Functions: ajTextoutprintBook ajTextoutprintHtml ajTextoutprintText ajTextoutprintWiki


Function ajTextoutprintBook

Reports the text format internals as Docbook text

Synopsis

Prototype
void ajTextoutprintBook (
      AjPFile outf
);

TypeNameRead/WriteDescription
AjPFileoutfModifyOutput file
void RETURN

Input & Output
outf:(Modify)Output file
Returns
void:No return value

Description

Reports the text format internals as Docbook text

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajTextoutprintHtml

Reports the internal data structures

Synopsis

Prototype
void ajTextoutprintHtml (
      AjPFile outf
);

TypeNameRead/WriteDescription
AjPFileoutfModifyOutput file
void RETURN

Input & Output
outf:(Modify)Output file
Returns
void:No return value

Description

Reports the internal data structures

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajTextoutprintText

Reports the internal data structures

Synopsis

Prototype
void ajTextoutprintText (
      AjPFile outf,
      AjBool full
);

TypeNameRead/WriteDescription
AjPFileoutfModifyOutput file
AjBoolfullInputFull report (usually ajFalse)
void RETURN

Input
full:(Input)Full report (usually ajFalse)
Input & Output
outf:(Modify)Output file
Returns
void:No return value

Description

Reports the internal data structures

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajTextoutprintWiki

Reports the text output format internals as wikitext

Synopsis

Prototype
void ajTextoutprintWiki (
      AjPFile outf
);

TypeNameRead/WriteDescription
AjPFileoutfModifyOutput file
void RETURN

Input & Output
outf:(Modify)Output file
Returns
void:No return value

Description

Reports the text output format internals as wikitext

See Also

See other functions in this section

Availability

In release 6.4.0

Section: cast

Values for output formats

Functions: ajTextoutformatFind ajTextoutformatTest


Function ajTextoutformatFind

Looks for the specified format(s) in the internal definitions and returns the index.

Sets iformat as the recognised format, and returns ajTrue.

Synopsis

Prototype
AjBool ajTextoutformatFind (
      const AjPStr format,
      ajint* iformat
);

TypeNameRead/WriteDescription
const AjPStrformatInputFormat required.
ajint*iformatOutputIndex
AjBool RETURNajTrue on success.

Input
format:(Input)Format required.
Output
iformat:(Output)Index
Returns
AjBool:ajTrue on success.

Description

Looks for the specified format(s) in the internal definitions and returns the index.

Sets iformat as the recognised format, and returns ajTrue.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajTextoutformatTest

Tests whether a named text output format is known

Synopsis

Prototype
AjBool ajTextoutformatTest (
      const AjPStr format
);

TypeNameRead/WriteDescription
const AjPStrformatInputFormat
AjBool RETURNajTrue if formats was accepted

Input
format:(Input)Format
Returns
AjBool:ajTrue if formats was accepted

Description

Tests whether a named text output format is known

See Also

See other functions in this section

Availability

In release 6.4.0

Section: Miscellaneous

Functions to initialise and clean up internals

Functions: ajTextoutExit


Function ajTextoutExit

Cleans up text data output internal memory

Synopsis

Prototype
void ajTextoutExit (
      void
);

TypeNameRead/WriteDescription
void RETURN

Returns
void:No return value

Description

Cleans up text data output internal memory

See Also

See other functions in this section

Availability

In release 6.4.0