41 #ifndef _DWMWRITABLE_HH_ 42 #define _DWMWRITABLE_HH_ 45 #include <sys/types.h> 69 virtual std::ostream &
Write(std::ostream & os)
const = 0;
75 virtual ssize_t
Write(
int fd)
const = 0;
81 virtual size_t Write(FILE *f)
const = 0;
93 #endif // _DWMWRITABLE_HH_ virtual ~Writable()
Destructor.
Definition: DwmWritable.hh:64
virtual std::ostream & Write(std::ostream &os) const =0
Write to an ostream. Return the ostream.
virtual uint32_t StreamedLength() const =0
Returns the number of bytes that should be written if one of the Write() members is called...
Definition: DwmBZ2IO.hh:67
This class defines an interface for classes that can write their contents to an ostream, file descriptor or FILE pointer.
Definition: DwmWritable.hh:58