7 #ifndef __FWDATAIO_READER_GENERICOBJECTREADER_HPP__ 8 #define __FWDATAIO_READER_GENERICOBJECTREADER_HPP__ 10 #include "fwDataIO/config.hpp" 11 #include "fwDataIO/reader/IObjectReader.hpp" 28 template<
class DATATYPE>
46 virtual std::string extension()
override 62 virtual void setObject( ::fwTools::Object::sptr obj )
override 64 assert( std::dynamic_pointer_cast< DataType >( obj ) );
76 return std::dynamic_pointer_cast< DataType >(
getObject() );
85 #endif // __FWDATAIO_READER_GENERICOBJECTREADER_HPP__ #define fwCoreNonInstanciableClassDefinitionsMacro(_classinfo_)
Generate common code for Non Instanciable classes (Interfaces, Abstract classes, ...)
GenericObjectReader()
Constructor. Do nothing.
virtual ~GenericObjectReader()
Destructor. Do nothing.
virtual void setObject(::fwTools::Object::sptr obj) override
m_object setter.
DATATYPE DataType
the object type related
This namespace fwDataIO contains reader and writer for several framework's data.
::fwTools::Object::wptr m_object
Object result of reading process.
generic class for all object readers.
virtual FWDATAIO_API::fwTools::Object::sptr getObject()
m_object getter.
virtual std::shared_ptr< DataType > getConcreteObject()
m_object getter.
Base class for all object readers.