Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::IDataNodeReader Struct Referenceabstract

#include <mitkIDataNodeReader.h>

Public Member Functions

virtual ~IDataNodeReader ()
 
virtual int Read (const std::string &fileName, mitk::DataStorage &storage)=0
 

Detailed Description

This interface provides methods to load data from the local filesystem into a given mitk::DataStorage.

Deprecated:
(as of 2014_10) Use mitk::IFileReader instead

Definition at line 35 of file mitkIDataNodeReader.h.

Constructor & Destructor Documentation

virtual mitk::IDataNodeReader::~IDataNodeReader ( )
inlinevirtual

Definition at line 37 of file mitkIDataNodeReader.h.

Member Function Documentation

virtual int mitk::IDataNodeReader::Read ( const std::string &  fileName,
mitk::DataStorage storage 
)
pure virtual

Reads the local file given by fileName and constructs one or more mitk::DataNode instances which are added to the given mitk::DataStorage storage.

Parameters
fileNameThe absolute path to a local file.
storageThe mitk::DataStorage which will contain the constructed data nodes.
Returns
The number of constructed mitk::DataNode instances.
Note
Errors during reading the file or constructing the data node should be expressed by throwing appropriate exceptions.
See also
mitk::DataNodeFactory

The documentation for this struct was generated from the following file: