nux-1.14.0
nux::AsyncFileWriter::Impl Class Reference

CAUTION: right now this class is not thread aware. More...

List of all members.

Public Member Functions

 Impl (AsyncFileWriter *owner, std::string const &filename)
void Write (std::string const &data)
void Close ()
void ProcessAsync ()

Static Public Member Functions

static void AppendAsyncCallback (GFile *source, GAsyncResult *res, Impl *impl)
static void WriteAsyncCallback (GOutputStream *source, GAsyncResult *res, Impl *impl)
static void CloseAsyncCallback (GOutputStream *source, GAsyncResult *res, Impl *impl)

Public Attributes

AsyncFileWriterowner_
GCancellable * cancel_
GFile * file_
GFileOutputStream * output_stream_
bool close_pending_
bool pending_async_call_
std::stringstream pending_content_
std::string data_to_write_

Detailed Description

CAUTION: right now this class is not thread aware.

It assumes that all the write calls are coming from a single thread. Perhaps we need to fix this?

Definition at line 39 of file AsyncFileWriter.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends