33 void Load(us::ModuleContext *context)
override
41 for (std::vector<mitk::CustomMimeType *>::const_iterator mimeTypeIter = m_MimeTypes.begin(),
42 iterEnd = m_MimeTypes.end();
43 mimeTypeIter != iterEnd;
46 context->RegisterService(*mimeTypeIter, props);
49 m_ExampleDataStructureReaderService =
new ExampleDataStructureReaderService();
51 m_ExampleDataStructureWriterService =
new ExampleDataStructureWriterService();
54 void Unload(us::ModuleContext *)
override
56 for (
unsigned int loop(0); loop < m_MimeTypes.size(); ++loop)
58 delete m_MimeTypes.at(loop);
61 delete m_ExampleDataStructureReaderService;
63 delete m_ExampleDataStructureWriterService;
67 ExampleDataStructureReaderService *m_ExampleDataStructureReaderService;
69 ExampleDataStructureWriterService *m_ExampleDataStructureWriterService;
71 std::vector<mitk::CustomMimeType *> m_MimeTypes;
US_Core_EXPORT const std::string & SERVICE_RANKING()
DataCollection - Class to facilitate loading/accessing structured data.
virtual void Unload(ModuleContext *context)=0
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
static std::vector< CustomMimeType * > Get()
virtual void Load(ModuleContext *context)=0
US_EXPORT_MODULE_ACTIVATOR(mitk::SimulationActivator)