19 #include <itksys/SystemTools.hxx>
26 std::vector<CustomMimeType *> mimeTypes;
41 std::string category =
"Example and Tutorial Data";
43 this->
SetComment(
"Example data structure containing just a string");
57 if (!itksys::SystemTools::FileExists(path.c_str()))
63 std::string ext = this->GetExtension(path);
64 ext = itksys::SystemTools::LowerCase(ext);
71 MITK_WARN <<
"Can not read .txt file as ExampleDataStructure";
92 std::string category =
"Example and Tutorial Data";
93 mimeType.
SetComment(
"Simpler Example Data MimeType");
static CustomMimeType EXAMPLE_TWO_MIMETYPE()
DataCollection - Class to facilitate loading/accessing structured data.
static ExampleDataStructureMimeType EXAMPLE_MIMETYPE()
static std::string EXAMPLE_TWO_MIMETYPE_NAME()
virtual bool AppliesTo(const std::string &path) const
Checks if the MimeType can handle file at the given location.
void SetComment(const std::string &comment)
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
static std::string DEFAULT_BASE_NAME()
virtual bool AppliesTo(const std::string &path) const override
Checks if the MimeType can handle file at the given location.
void AddExtension(const std::string &extension)
static std::vector< CustomMimeType * > Get()
void SetCategory(const std::string &category)
virtual ExampleDataStructureMimeType * Clone() const override
ExampleDataStructureMimeType()
static std::string EXAMPLE_MIMETYPE_NAME()