13 #include "boost/bind.hpp"
25 mPluginContext(context),
28 this->initServiceListener();
37 return mService->isNull();
42 return mService->canLoad(type, filename);
47 return mService->load(uid, filename);
52 return mService->canLoadDataType();
57 return mService->read(filename);
62 return mService->readInto(data, path);
67 return mService->findDataTypeFromFile(filename);
70 void FileManagerServiceProxy::initServiceListener()
74 boost::bind(&FileManagerServiceProxy::onServiceAdded,
this, _1),
76 boost::bind(&FileManagerServiceProxy::onServiceRemoved,
this, _1)
78 mServiceListener->open();
82 void FileManagerServiceProxy::onServiceAdded(FileManagerService *service)
84 mService.reset(service, null_deleter());
88 void FileManagerServiceProxy::onServiceRemoved(FileManagerService *service)
96 return mService->loadVtkImageData(filename);
101 return mService->loadVtkPolyData(filename);
106 mService->save(data, filename);
111 mService->addFileReaderWriter(service);
116 mService->removeFileReaderWriter(service);
121 return mService->getExportersForDataType(dataType);
126 return mService->getImportersForDataType(dataType);
131 return mService->getFileReaderName(filename);