Public Types | Public Member Functions | Protected Member Functions

mitk::IOAdapter< T > Class Template Reference
[IO Classes]

IOAdapter class is an adapter class for instantiation of IO process objects. Additional this interface defines the function CanReadFile(). This interface allows the target (object) the access to the adaptee (IO process object). More...

#include <mitkIOAdapter.h>

Inheritance diagram for mitk::IOAdapter< T >:
Inheritance graph
[legend]
Collaboration diagram for mitk::IOAdapter< T >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef IOAdapter Self
typedef itk::SmartPointer< SelfPointer

Public Member Functions

 itkFactorylessNewMacro (Self)
mitk::BaseProcess::Pointer CreateIOProcessObject (const std::string filename, const std::string filePrefix, const std::string filePattern)
 Create an object and return a pointer to it as a mitk::BaseProcess.
virtual bool CanReadFile (const std::string filename, const std::string filePrefix, const std::string filePattern)

Protected Member Functions

 IOAdapter ()
 ~IOAdapter ()

Detailed Description

template<class T>
class mitk::IOAdapter< T >

IOAdapter class is an adapter class for instantiation of IO process objects. Additional this interface defines the function CanReadFile(). This interface allows the target (object) the access to the adaptee (IO process object).

Definition at line 59 of file mitkIOAdapter.h.


Member Typedef Documentation

template<class T >
typedef itk::SmartPointer<Self> mitk::IOAdapter< T >::Pointer

Reimplemented from mitk::IOAdapterBase.

Definition at line 64 of file mitkIOAdapter.h.

template<class T >
typedef IOAdapter mitk::IOAdapter< T >::Self

Standard class typedefs.

Reimplemented from mitk::IOAdapterBase.

Definition at line 63 of file mitkIOAdapter.h.


Constructor & Destructor Documentation

template<class T >
mitk::IOAdapter< T >::IOAdapter (  ) [inline, protected]

Definition at line 83 of file mitkIOAdapter.h.

{}
template<class T >
mitk::IOAdapter< T >::~IOAdapter (  ) [inline, protected]

Definition at line 84 of file mitkIOAdapter.h.

{}

Member Function Documentation

template<class T >
virtual bool mitk::IOAdapter< T >::CanReadFile ( const std::string  filename,
const std::string  filePrefix,
const std::string  filePattern 
) [inline, virtual]

Implements mitk::IOAdapterBase.

Definition at line 77 of file mitkIOAdapter.h.

  {
    return T::CanReadFile(filename, filePrefix, filePattern);
  }
template<class T >
mitk::BaseProcess::Pointer mitk::IOAdapter< T >::CreateIOProcessObject ( const std::string  filename,
const std::string  filePrefix,
const std::string  filePattern 
) [inline, virtual]

Create an object and return a pointer to it as a mitk::BaseProcess.

Implements mitk::IOAdapterBase.

Definition at line 68 of file mitkIOAdapter.h.

  { 
    typename T::Pointer ioProcessObject = T::New();
    ioProcessObject->SetFileName(filename.c_str());
    ioProcessObject->SetFilePrefix(filePrefix.c_str());
    ioProcessObject->SetFilePattern(filePattern.c_str());
    return ioProcessObject.GetPointer(); 
  }
template<class T >
mitk::IOAdapter< T >::itkFactorylessNewMacro ( Self   )

Methods from mitk::BaseProcess.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines