Output
Object Hierarchy:
Description:
[
CCode ( type_id =
"gsf_output_get_type ()" ) ]
public abstract class Output :
Object
Class representing an output stream, counterpart to Input.
Content:
Properties:
- public Outfile container { owned get; set; }
The container, optionally null, in
which this output lives.
- public bool is_closed { get; }
true if the output has been closed.
- public DateTime modtime { get; construct; }
The time the output was last updated.
- public string name { owned get; set; }
- public int64 position { get; }
The current position in the output.
- public int64 size { get; }
The current file size.
Static methods:
Creation methods:
Methods:
- public virtual bool close ()
Close a stream.
- public unowned Error? error ()
- public unowned DateTime? get_modtime ()
- public bool printf (string format, ...)
Output Varargs to this
using the format string format, similar to <citerefentry><refentrytitle>printf</refentrytitle> <
manvolnum>3</manvolnum></citerefentry>.
- public bool puts (string line)
Like fputs, this assumes that the line already ends with a newline
- public virtual bool seek (off_t offset, SeekType whence)
Reposition in output stream this.
- public bool set_container (Outfile? container)
<note>This is a utility routine that should only be used by
derived outputs.
- public bool set_error (int code, string format, ...)
<note>This is a utility routine that should only be used by
derived outputs.
- public bool set_modtime (DateTime? modtime)
- public bool set_name (string? name)
<note>This is a utility routine that should only be used by
derived outputs.
- public bool set_name_from_filename (string? filename)
<note>This is a utility routine that should only be used by
derived outputs.
- public off_t tell ()
Tell the current position in this,
similar to <citerefentry><refentrytitle>ftell</refentrytitle> <manvolnum>3</manvolnum></citerefentry
>.
- public virtual off_t vprintf (string format, va_list args)
Output args to this
using the format string format, similar to <citerefentry><refentrytitle>vprintf</refentrytitle> <
manvolnum>3</manvolnum></citerefentry>.
- public virtual bool write (uint8[] data)
Write data.length of data to
this.
Fields:
Inherited Members:
All known members inherited from class GLib.Object