Top |
Functions
gsf_off_t | gsf_output_size () |
gboolean | gsf_output_close () |
gsf_off_t | gsf_output_tell () |
gboolean | gsf_output_seek () |
gboolean | gsf_output_write () |
gboolean | gsf_output_puts () |
gboolean | gsf_output_printf () |
gsf_off_t | gsf_output_vprintf () |
GsfOutfile * | gsf_output_container () |
char const * | gsf_output_name () |
gboolean | gsf_output_set_name_from_filename () |
GQuark | gsf_output_error_id () |
gboolean | gsf_output_set_error () |
GError const * | gsf_output_error () |
gboolean | gsf_output_is_closed () |
gboolean | gsf_output_wrap () |
gboolean | gsf_output_unwrap () |
Object Hierarchy
GObject ╰── GsfOutput ├── GsfOutputBzip ├── GsfOutputCsv ├── GsfOutputGZip ├── GsfOutputIconv ├── GsfOutputIOChannel ├── GsfOutputMemory ├── GsfOutputStdio ╰── GsfOutfile
Functions
gsf_output_size ()
gsf_off_t
gsf_output_size (GsfOutput *output
);
Determine the size of the output stream output
.
gsf_output_tell ()
gsf_off_t
gsf_output_tell (GsfOutput *output
);
Tell the current position in output
, similar to
gsf_output_seek ()
gboolean gsf_output_seek (GsfOutput *output
,gsf_off_t offset
,GSeekType whence
);
Reposition in output stream output
. whence
specifies what the offset is
relative to: the beginning of the stream (G_SEEK_SET
), current position in
the stream (G_SEEK_CUR
) or the end of the stream (G_SEEK_END
).
This function is similar to
[virtual Seek]
gsf_output_write ()
gboolean gsf_output_write (GsfOutput *output
,size_t num_bytes
,guint8 const *data
);
Write num_bytes
of data
to output
.
[virtual Write]
gsf_output_puts ()
gboolean gsf_output_puts (GsfOutput *output
,char const *line
);
Like fputs, this assumes that the line already ends with a newline
gsf_output_printf ()
gboolean gsf_output_printf (GsfOutput *output
,char const *format
,...
);
Output Varargs
to output
using the format string format
, similar to
gsf_output_vprintf ()
gsf_off_t gsf_output_vprintf (GsfOutput *output
,char const *format
,va_list args
);
Output args
to output
using the format string format
, similar to
[virtual Vprintf]
gsf_output_name ()
char const *
gsf_output_name (GsfOutput const *output
);
Give the name of output
.
gsf_output_set_name_from_filename ()
gboolean gsf_output_set_name_from_filename (GsfOutput *output
,char const *filename
);
gsf_output_set_error ()
gboolean gsf_output_set_error (GsfOutput *output
,gint code
,char const *format
,...
);
Types and Values
GsfOutput
typedef struct _GsfOutput GsfOutput;
Class representing an output stream, counterpart to GsfInput.
Property Details
The “container”
property
“container” GsfOutfile *
The container, optionally NULL
, in which this output lives.
Owner: GsfOutput
Flags: Read / Write
The “is-closed”
property
“is-closed” gboolean
TRUE
if the output has been closed.
Owner: GsfOutput
Flags: Read
Default value: FALSE
The “modtime”
property
“modtime” GDateTime *
The time the output was last updated. This must be set on object construction and represents the timestamp to put on the resulting file or GsfOutfile member. Not all derived classes will actually do anything with this property.
Owner: GsfOutput
Flags: Read / Write / Construct Only
The “name”
property
“name” char *
The output's name.
Owner: GsfOutput
Flags: Read / Write
Default value: NULL
The “position”
property
“position” gint64
The current position in the output.
Owner: GsfOutput
Flags: Read
Allowed values: >= 0
Default value: 0