9 #include "fwDataIO/config.hpp" 10 #include "fwDataIO/writer/factory/new.hpp" 11 #include "fwDataIO/writer/registry/detail.hpp" 13 #include <fwCore/base.hpp> 15 #include <fwData/location/ILocation.hpp> 17 #include <fwJobs/IJob.hpp> 19 #include <fwTools/Object.hpp> 21 #include <boost/filesystem/path.hpp> 48 typedef std::function< void ( std::uint64_t ) > ProgressCallback;
49 typedef std::function< void ( ) > CancelCallback;
51 typedef ::fwDataIO::writer::factory::Key
Key;
65 ::fwDataIO::writer::registry::get()->addFactory(T::classname(), &::fwDataIO::writer::factory::New<T>);
74 FWDATAIO_API
virtual void write() = 0;
80 FWDATAIO_API
virtual void setLocation( const ::fwData::location::ILocation::sptr location );
87 FWDATAIO_API virtual ::fwData::location::ILocation::sptr getLocation();
95 FWDATAIO_API
virtual void setObject( ::fwTools::Object::csptr
object );
102 FWDATAIO_API virtual ::fwTools::Object::csptr getObject()
const;
111 FWDATAIO_API
virtual std::string extension() = 0;
116 FWDATAIO_API
virtual void cancel();
130 FWDATAIO_API
virtual ~IObjectWriter();
#define fwCoreNonInstanciableClassDefinitionsMacro(_classinfo_)
Generate common code for Non Instanciable classes (Interfaces, Abstract classes, ...)
Base class for all FW4SPL's classes.
This class is an interface for class managing job.
std::string m_extension
Extension of file format.
This namespace fwDataIO contains reader and writer for several framework's data.
::fwTools::Object::cwptr m_object
Object write on filesystem by the process.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Class used to register a class factory in factory registry. This class defines also the object factor...
::fwData::location::ILocation::sptr m_location
Object location ( file path, directory path, url, etc )
Base class for all object writers.