29 #ifndef CDPL_UTIL_COMPRESSEDDATAWRITER_HPP
30 #define CDPL_UTIL_COMPRESSEDDATAWRITER_HPP
48 template <
typename WriterImpl,
typename CompStream,
typename DataType =
typename WriterImpl::DataType>
59 operator const void*()
const;
73 template <
typename WriterImpl,
typename DecompStream,
typename DataType>
75 stream(ios), writer(stream)
77 writer.setParent(
this);
81 template <
typename WriterImpl,
typename DecompStream,
typename DataType>
90 template <
typename WriterImpl,
typename DecompStream,
typename DataType>
97 template <
typename WriterImpl,
typename DecompStream,
typename DataType>
100 return writer.operator
const void*();
103 template <
typename WriterImpl,
typename DecompStream,
typename DataType>
106 return writer.operator!();
Provides I/O-streams capable of performing compression and decompression.
Definition of the class CDPL::Base::DataWriter.
void invokeIOCallbacks(double progress) const
Invokes all registered I/O callback functions with the argument *this.
An interface for writing data objects of a given type to an arbitrary data sink.
Definition: DataWriter.hpp:63
typename WriterImpl::DataType DataType
The type of the written data objects.
Definition: DataWriter.hpp:74
CompressedDataWriter.
Definition: CompressedDataWriter.hpp:50
CompressedDataWriter(std::iostream &ios)
Definition: CompressedDataWriter.hpp:74
CompressedDataWriter & write(const DataType &obj)
Definition: CompressedDataWriter.hpp:83
bool operator!() const
Tells whether the writer is in a bad state.
Definition: CompressedDataWriter.hpp:104
void close()
Writes format dependent data (if required) to mark the end of output.
Definition: CompressedDataWriter.hpp:91
The namespace of the Chemical Data Processing Library.