DataIOFactory Class Reference
[Datasets]

The factory that provides concrete data importers / exporters given a file extension. More...

#include <data_io_factory.h>

List of all members.

Public Types

typedef boost::shared_ptr<
DataIO
data_io_type

Public Member Functions

 DataIOFactory ()
 ~DataIOFactory ()
data_io_type createDataIO (std::string extension) throw (FormatNotSupportedException)

Protected Types

typedef std::map< std::string,
data_io_type
data_io_map_type
typedef std::pair< std::string,
data_io_type
data_io_map_pair_type

Protected Attributes

data_io_map_type data_io_map_


Detailed Description

The factory that provides concrete data importers / exporters given a file extension.

The DataIOFactory creates concrete DataIO objects based on the file extension of the dataset files. These IO objects are capable of reading datasets stored in a certain format and writing dataset to disc using that format.

Author:
Tobias Gross (tobias.gross@imedgine.org)

Christian Koerner (christian.koerner@imedgine.org)

Alexander Lex (alexander.lex@imedgine.org)

Marc Streit (marc.streit@imedgine.org)

Martin Reininger (martin.reininger@imedgine.org)

Definition at line 45 of file data_io_factory.h.


Member Typedef Documentation

typedef std::pair<std::string, data_io_type> data_io_map_pair_type [protected]
 

a pair containing an extension and a data io type

Definition at line 89 of file data_io_factory.h.

typedef std::map<std::string, data_io_type> data_io_map_type [protected]
 

the type definining a mapping of extension to data io type

Definition at line 83 of file data_io_factory.h.

typedef boost::shared_ptr<DataIO> data_io_type
 

A shared pointer holding a DataIO object

Definition at line 53 of file data_io_factory.h.


Constructor & Destructor Documentation

DataIOFactory  ) 
 

Constructor

Definition at line 22 of file data_io_factory.cpp.

~DataIOFactory  ) 
 

Destructor

Definition at line 28 of file data_io_factory.cpp.


Member Function Documentation

DataIOFactory::data_io_type createDataIO std::string  extension  )  throw (FormatNotSupportedException)
 

Provides the conrete DataIO implementation for the format associated with the given file extension.

Parameters:
extension The file extension of the dataset file (e.g. hdr)
Returns:
The DataIO object that is capable of reading and writing these format associated with the given extension

Definition at line 34 of file data_io_factory.cpp.


Member Data Documentation

data_io_map_type data_io_map_ [protected]
 

a map holding the mapping from extension to data io type

Definition at line 95 of file data_io_factory.h.


The documentation for this class was generated from the following files:
Generated on Sun Aug 13 18:20:01 2006 for iMEDgine by  doxygen 1.4.6