#include <qwt3d_io.h>
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 Functor * | outputHandler (QString const &format) |
static Functor * | inputHandler (QString const &format) |
The function type that can be processed by the define... members. An extension is the IO::Functor.
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.
plot | Plot with the content that should be saved | |
fname | File name | |
format | Output format |
bool load | ( | Plot3D * | plot, | |
QString const & | fname, | |||
QString const & | format | |||
) | [static] |
Applies a reading IO::Function or IO::Functor.
plot | Plot with the content that should be loaded | |
fname | File name | |
format | Input format |
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.