9 #include "fwDataIO/config.hpp" 10 #include "fwDataIO/writer/IObjectWriter.hpp" 26 template<
class DATATYPE>
53 virtual void setObject( ::fwTools::Object::csptr obj)
override 55 OSLM_ASSERT(
"Object type: '" << std::string(
typeid(obj).name())
56 <<
"' is not a '" <<
typeid(
DataType()).name()<<
"'",
57 std::dynamic_pointer_cast< const DataType >(obj));
69 return std::dynamic_pointer_cast<
const DataType >(
getObject() );
#define fwCoreNonInstanciableClassDefinitionsMacro(_classinfo_)
Generate common code for Non Instanciable classes (Interfaces, Abstract classes, ...)
#define OSLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
This namespace fwDataIO contains reader and writer for several framework's data.
virtual std::shared_ptr< const DataType > getConcreteObject() const
m_object getter.
virtual FWDATAIO_API::fwTools::Object::csptr getObject() const
m_object getter.
virtual void setObject(::fwTools::Object::csptr obj) override
m_object setter.
GenericObjectWriter()
Constructor. Do nothing.
Base class for all object writers.
virtual FWDATAIO_API void setObject(::fwTools::Object::csptr object)
m_object setter.
virtual ~GenericObjectWriter()
Destructor. Do nothing.
DATATYPE DataType
the object type related
generic class for all object writers.