Confdump Agent
1.4.0
|
Helper for all data output in main(). More...
#include <DataOutput.hpp>
Public Member Functions | |
DataOutput () | |
~DataOutput () | |
void | setSink (FILE *file) |
void | setSink (QString file) |
void | setSink (boost::shared_ptr< QIODevice > device) |
boost::shared_ptr < Confdump::Formatter > | createFormatter (Options::OutputFormat format) const |
Returns a Formatter with a configured QIODevice, ready to use. | |
QTextStream & | stream () const |
Output stream connected to the same device. | |
Private Attributes | |
boost::shared_ptr< QIODevice > | device_ |
boost::shared_ptr< QTextStream > | stream_ |
Helper for all data output in main().
Usage:
Definition at line 43 of file DataOutput.hpp.
Definition at line 27 of file DataOutput.cpp.
Definition at line 31 of file DataOutput.cpp.
boost::shared_ptr< Confdump::Formatter > Confdump::DataOutput::createFormatter | ( | Options::OutputFormat | format | ) | const |
Returns a Formatter with a configured QIODevice, ready to use.
Definition at line 35 of file DataOutput.cpp.
References Confdump::Options::TextFormat, and Confdump::Options::XmlFormat.
Referenced by main().
void Confdump::DataOutput::setSink | ( | FILE * | file | ) |
Definition at line 64 of file DataOutput.cpp.
Referenced by main().
void Confdump::DataOutput::setSink | ( | QString | file | ) |
Definition at line 72 of file DataOutput.cpp.
void Confdump::DataOutput::setSink | ( | boost::shared_ptr< QIODevice > | device | ) |
Definition at line 80 of file DataOutput.cpp.
QTextStream & Confdump::DataOutput::stream | ( | ) | const |
Output stream connected to the same device.
Definition at line 59 of file DataOutput.cpp.
Referenced by main().
boost::shared_ptr<QIODevice> Confdump::DataOutput::device_ [private] |
Definition at line 59 of file DataOutput.hpp.
boost::shared_ptr<QTextStream> Confdump::DataOutput::stream_ [private] |
Definition at line 60 of file DataOutput.hpp.