BTK  0.3dev.0
Open-source library to visualize/process biomechanical data
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions
btk::AcquisitionFileIORegister< T > Class Template Reference

Interface to add dynamicaly an acquisition file I/O in the factory. More...

#include <btkAcquisitionFileIORegister.h>

Inheritance diagram for btk::AcquisitionFileIORegister< T >:
Inheritance graph
[legend]

Public Types

typedef btkSharedPtr
< AcquisitionFileIORegister
Pointer
 
- Public Types inherited from btk::AcquisitionFileIOHandle
typedef btkSharedPtr
< AcquisitionFileIOHandle
Pointer
 

Public Member Functions

virtual bool HasReadOperation () const
 
virtual bool HasWriteOperation () const
 
- Public Member Functions inherited from btk::AcquisitionFileIOHandle
AcquisitionFileIO::Pointer GetFileIO () const
 
const
AcquisitionFileIOHandle::Functor::Pointer 
GetFunctor () const
 
virtual ~AcquisitionFileIOHandle ()
 

Static Public Member Functions

static Pointer New ()
 

Additional Inherited Members

- Protected Member Functions inherited from btk::AcquisitionFileIOHandle
 AcquisitionFileIOHandle (AcquisitionFileIOHandle::Functor::Pointer f)
 
- Protected Attributes inherited from btk::AcquisitionFileIOHandle
AcquisitionFileIOHandle::Functor::Pointer mp_Functor
 

Detailed Description

template<class T>
class btk::AcquisitionFileIORegister< T >

Interface to add dynamicaly an acquisition file I/O in the factory.

Template Parameters
TClassname of the acquisition file I/O.

To add dynamicaly a file format in the factory (to read or write an acquisition), you need to use the command btk::AcquisitionFileIOFactory::AddFileIO() coupled with the template method btk::AcquisitionFileIORegister::New() where the template is the name of the class which will read/write the acquistion (e.g. TestFileIO).

* // Only one line is required to add a new acquisition file IO.
*

Member Typedef Documentation

template<class T >
btk::AcquisitionFileIORegister< T >::Pointer

Smart pointer associated with an AcquisitionFileIORegister object.

Member Function Documentation

template<class T >
virtual bool btk::AcquisitionFileIORegister< T >::HasReadOperation ( ) const
inlinevirtual

Check if this acquisition file IO can read file.

Implements btk::AcquisitionFileIOHandle.

template<class T >
virtual bool btk::AcquisitionFileIORegister< T >::HasWriteOperation ( ) const
inlinevirtual

Check if this acquisition file IO can write file.

Implements btk::AcquisitionFileIOHandle.

template<class T >
AcquisitionFileIORegister::Pointer btk::AcquisitionFileIORegister< T >::New ( )
inlinestatic

Returns a AcquisitionFileIOHandle::Pointer object and not a AcquisitionFileIORegister::Pointer object!. This method is a convenient method