IO Class Reference

#include <qwt3d_io.h>

List of all members.

Classes

struct  Entry
struct  FormatCompare
struct  FormatCompare2
class  Functor
class  Wrapper
 Lightweight Functor encapsulating an IO::Function.

Public Types

typedef bool(* Function )(Plot3D *, QString const &fname)

Static Public Member Functions

static bool defineInputHandler (QString const &format, Function func)
static bool defineOutputHandler (QString const &format, Function func)
static bool defineInputHandler (QString const &format, Functor const &func)
static bool defineOutputHandler (QString const &format, Functor const &func)
static bool save (Plot3D *, QString const &fname, QString const &format)
static bool load (Plot3D *, QString const &fname, QString const &format)
static QStringList inputFormatList ()
static QStringList outputFormatList ()
static FunctoroutputHandler (QString const &format)
static FunctorinputHandler (QString const &format)


Detailed Description

IO provides a generic interface for standard and user written I/O handlers. It also provides functionality for the registering of such handlers in the framework.
The interface mimics roughly Qt's QImageIO functions for defining image input/output functions.

Member Typedef Documentation

typedef bool(* Function)(Plot3D *, QString const &fname)

The function type that can be processed by the define... members. An extension is the IO::Functor.


Member Function Documentation

bool defineInputHandler ( QString const &  format,
IO::Functor const &  func 
) [static]

Registers a new Functor for data input.
Every call overwrites a formerly registered handler for the same format string (case sensitive).

bool defineOutputHandler ( QString const &  format,
IO::Functor const &  func 
) [static]

Registers a new Functor for data output.
Every call overwrites a formerly registered handler for the same format string (case sensitive).

bool save ( Plot3D plot,
QString const &  fname,
QString const &  format 
) [static]

Applies a writing IO::Function or IO::Functor.

Parameters:
plot Plot with the content that should be saved
fname File name
format Output format
Returns:
The return value from the called Function/Functor. The function returns false, if no registered handler could be found.

bool load ( Plot3D plot,
QString const &  fname,
QString const &  format 
) [static]

Applies a reading IO::Function or IO::Functor.

Parameters:
plot Plot with the content that should be loaded
fname File name
format Input format
Returns:
The return value from the called Function/Functor. The function returns false, if no registered handler could be found.

QStringList inputFormatList (  )  [static]

Returns a list of currently registered input formats.

QStringList outputFormatList (  )  [static]

Returns a list of currently registered output formats.

IO::Functor * outputHandler ( QString const &  format  )  [static]

Returns the output functor in charge for format and 0 if non-existent.

IO::Functor * inputHandler ( QString const &  format  )  [static]

Returns the input functor in charge for format and 0 if non-existent.


The documentation for this class was generated from the following files:

Generated on Sun Jun 7 00:16:33 2009 for QwtPlot3D API by  doxygen 1.5.8