12 #ifndef CXFILEMANAGERSERVICE_H 13 #define CXFILEMANAGERSERVICE_H 16 #include "cxResourceExport.h" 17 #include "boost/shared_ptr.hpp" 20 #define FileManagerService_iid "cx::FileManagerService" 34 virtual bool isNull() = 0;
35 static FileManagerServicePtr getNullObject();
39 virtual bool canLoad(
const QString& type,
const QString& filename) = 0;
40 virtual QString canLoadDataType()
const = 0;
41 virtual std::vector<DataPtr> read(
const QString &filename) = 0;
44 virtual DataPtr load(
const QString& uid,
const QString& filename) = 0;
45 virtual bool readInto(
DataPtr data, QString path) = 0;
49 virtual void save(
DataPtr data,
const QString& filename) = 0;
57 virtual QString findDataTypeFromFile(QString filename) = 0;
58 virtual std::vector<FileReaderWriterServicePtr> getExportersForDataType(QString dataType) = 0;
59 virtual std::vector<FileReaderWriterServicePtr> getImportersForDataType(QString dataType) = 0;
61 virtual QString getFileReaderName(
const QString &filename) = 0;
67 #endif // CXFILEMANAGERSERVICE_H boost::shared_ptr< class FileManagerService > FileManagerServicePtr
virtual ~FileManagerService()
#define FileManagerService_iid
boost::shared_ptr< class Data > DataPtr
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
Namespace for all CustusX production code.