Back to index

nux  3.0.0
Classes | Public Member Functions | Public Attributes | Private Attributes
nux::AsyncFileWriter Class Reference

Write to a file asynchronously. More...

#include <AsyncFileWriter.h>

Collaboration diagram for nux::AsyncFileWriter:
Collaboration graph
[legend]

List of all members.

Classes

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

Public Member Functions

 AsyncFileWriter (std::string const &filename)
 ~AsyncFileWriter ()
void Write (std::string const &data)
void Close ()
bool IsClosing () const

Public Attributes

sigc::signal< void > opened
sigc::signal< void > closed

Private Attributes

Implpimpl

Detailed Description

Write to a file asynchronously.

This uses the GIO async functions, and as such depend on the gobject main loop.

Definition at line 37 of file AsyncFileWriter.h.


Constructor & Destructor Documentation

nux::AsyncFileWriter::AsyncFileWriter ( std::string const &  filename)

Definition at line 222 of file AsyncFileWriter.cpp.

  : pimpl(new Impl(this, filename))
{}

Definition at line 226 of file AsyncFileWriter.cpp.

{
  delete pimpl;
}

Member Function Documentation

Definition at line 236 of file AsyncFileWriter.cpp.

{
  pimpl->Close();
}

Here is the call graph for this function:

Definition at line 241 of file AsyncFileWriter.cpp.

{
  return pimpl->close_pending_;
}
void nux::AsyncFileWriter::Write ( std::string const &  data)

Definition at line 231 of file AsyncFileWriter.cpp.

{
  pimpl->Write(data);
}

Here is the call graph for this function:


Member Data Documentation

sigc::signal<void> nux::AsyncFileWriter::closed

Definition at line 54 of file AsyncFileWriter.h.

sigc::signal<void> nux::AsyncFileWriter::opened

Definition at line 53 of file AsyncFileWriter.h.

Definition at line 57 of file AsyncFileWriter.h.


The documentation for this class was generated from the following files: