Log4gCountingQuietWriter

Log4gCountingQuietWriter — Counts the number of bytes written

Synopsis

                    Log4gCountingQuietWriter;
                    Log4gCountingQuietWriterClass;
gulong              log4g_counting_quiet_writer_get_count
                                                        (Log4gQuietWriter *base);
Log4gQuietWriter *  log4g_counting_quiet_writer_new     (FILE *file,
                                                         GObject *error);
void                log4g_counting_quiet_writer_set_count
                                                        (Log4gQuietWriter *base,
                                                         gulong count);

Description

A quiet writer that counts the number of bytes it has written.

Details

Log4gCountingQuietWriter

typedef struct {
} Log4gCountingQuietWriter;

The Log4gCountingQuietWriter structure does not have any public members.


Log4gCountingQuietWriterClass

typedef struct {
} Log4gCountingQuietWriterClass;

The Log4gCountingQuietWriterClass structure does not have any public members.


log4g_counting_quiet_writer_get_count ()

gulong              log4g_counting_quiet_writer_get_count
                                                        (Log4gQuietWriter *base);

Retrieve the number of bytes written.

base :

A counting quiet writer object.

Returns :

The number of bytes written by base.

Since 0.1


log4g_counting_quiet_writer_new ()

Log4gQuietWriter *  log4g_counting_quiet_writer_new     (FILE *file,
                                                         GObject *error);

Create a new counting quiet writer object.

See: stdio(3), Log4gErrorHandlerInterface

file :

The an open stdio(3) stream to write to.

error :

The error handler to use.

Returns :

A new counting quiet writer object.

Since 0.1


log4g_counting_quiet_writer_set_count ()

void                log4g_counting_quiet_writer_set_count
                                                        (Log4gQuietWriter *base,
                                                         gulong count);

Set the number of bytes a counting quiet writer thinks it has written.

This function is mostly useful for resetting the count to zero.

base :

A counting quiet writer object.

count :

The number of bytes base will think it has written.

Since 0.1

See Also

Log4gQuietWriterClass