console/kabcclient
#include <formatfactory.h>
Public Member Functions | |
FormatFactory () | |
~FormatFactory () | |
InputFormat * | inputFormat (const QByteArray &name) |
QByteArrayList | inputFormatList () const |
OutputFormat * | outputFormat (const QByteArray &name) |
QByteArrayList | outputFormatList () const |
Detailed Description
Factory for input parsers and output formatters.
The factory can be queried for the InputFormat and OutputFormat implementations it knows and can create.
Example: displaying all format names and their respective description
- See also
- InputFormat
- OutputFormat
Definition at line 102 of file formatfactory.h.
Constructor & Destructor Documentation
FormatFactory::FormatFactory | ( | ) |
Creates and initializes the factory.
Definition at line 27 of file formatfactory.cpp.
FormatFactory::~FormatFactory | ( | ) |
Destroys the factory and its internal data.
Definition at line 46 of file formatfactory.cpp.
Member Function Documentation
InputFormat * FormatFactory::inputFormat | ( | const QByteArray & | name | ) |
Creates an InputFormat instance for the given name.
- Warning
- Every call creates a new instance and the caller gains its ownership, i.e. has to delete it when it isn't used any longer.
- Parameters
-
name the input format name, as taken from the commandline
- Returns
- a new InputFormat instance of the input parser associated with the given name or
0
if the name is unknown to the factory
- See also
- inputFormatList()
- InputFormat
- outputFormat
Definition at line 53 of file formatfactory.cpp.
|
inline |
Returns a list of input parser names.
Each list entry is a simple string that can be used to identify the parser on the commandline. The factory method inputFormat() will check for exactly those strings.
- Returns
- a list of input parser names
Definition at line 128 of file formatfactory.h.
OutputFormat * FormatFactory::outputFormat | ( | const QByteArray & | name | ) |
Creates an OutputFormat instance for the given name.
- Warning
- Every call creates a new instance and the caller gains its ownership, i.e. has to delete it when it isn't used any longer.
- Parameters
-
name the output format name, as taken from the commandline
- Returns
- a new OutputFormat instance of the output formatter associated with the given name or
0
if the name is unknown to the factory
- See also
- inputFormatList()
- InputFormat
- outputFormat
Definition at line 81 of file formatfactory.cpp.
|
inline |
Returns a list of output formatter names.
Each list entry is a simple string that can be used to identify the formatter on the commandline. The factory method outputFormat() will check for exactly those strings.
- Returns
- a list of output formatter names
Definition at line 143 of file formatfactory.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.