AnalyzeDataIO Class Reference
[Datasets]

The data importer / exporter for the ANALYZE data format. More...

#include <analyze_data_io.h>

Inherits DataIO.

Inheritance diagram for AnalyzeDataIO:

Inheritance graph
[legend]
Collaboration diagram for AnalyzeDataIO:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AnalyzeDataIO ()
virtual ~AnalyzeDataIO ()
virtual std::pair< dataset_pointer_type,
dataset_type
loadDataset (std::string filename, dataset_key_type dataset_key)
virtual void writeDataset (dataset_pointer_type dataset, std::string filename) throw (InvalidCastException)

Protected Member Functions

template<class PixelDatasetType>
pixel_dataset_pointer_type read (std::string filename, dataset_key_type dataset_key)
template<class PixelDatasetPointerType>
void write (PixelDatasetPointerType dataset, std::string filename)

Detailed Description

The data importer / exporter for the ANALYZE data format.

Implementation of the DataIO interface for ANALYZE data format. It can be used to read and write pixel datasets of arbitary pixel type.

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 46 of file analyze_data_io.h.


Constructor & Destructor Documentation

AnalyzeDataIO  ) 
 

Constructor

Definition at line 30 of file analyze_data_io.cpp.

~AnalyzeDataIO  )  [virtual]
 

Destructor

Definition at line 36 of file analyze_data_io.cpp.


Member Function Documentation

std::pair< dataset_pointer_type, dataset_type > loadDataset std::string  filename,
dataset_key_type  dataset_key
[virtual]
 

Load an dataset from a file in ANALYZE format

Parameters:
filename The file to read the dataset from
dataset_key The unique key the dataset will be identified with
Returns:
A pair of a pointer to the loaded dataset and the type of of the loaded dataset

Implements DataIO.

Definition at line 43 of file analyze_data_io.cpp.

pixel_dataset_pointer_type read std::string  filename,
dataset_key_type  dataset_key
[protected]
 

Does the actual reading

Parameters:
PixelDatasetType The type of the target dataset
filename The file to read the dataset from
dataset_key The unique key the dataset will be identified with

Definition at line 110 of file analyze_data_io.h.

void write PixelDatasetPointerType  dataset,
std::string  filename
[protected]
 

Does the actual writing

Parameters:
PixelDatasetPointerType The type of pointer to the dataset to write
dataset The dataset to write
filename The file to write the dataset to

Definition at line 129 of file analyze_data_io.h.

void writeDataset dataset_pointer_type  dataset,
std::string  filename
throw (InvalidCastException) [virtual]
 

Write a dataset to a file in ANALYZE format

Parameters:
dataset The dataset to write
filename The file to write the dataset to

Implements DataIO.

Definition at line 148 of file analyze_data_io.cpp.


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