Confdump Agent  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Public Member Functions | Private Attributes
Confdump::DataOutput Class Reference

Helper for all data output in main(). More...

#include <DataOutput.hpp>

List of all members.

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_

Detailed Description

Helper for all data output in main().

Usage:

Definition at line 43 of file DataOutput.hpp.


Constructor & Destructor Documentation

Definition at line 27 of file DataOutput.cpp.

Definition at line 31 of file DataOutput.cpp.


Member Function Documentation

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().


Member Data Documentation

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.


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