15 #include <itksys/SystemTools.hxx> 22 std::vector<CustomMimeType *> mimeTypes;
37 std::string category =
"Example and Tutorial Data";
39 this->
SetComment(
"Example data structure containing just a string");
53 if (!itksys::SystemTools::FileExists(path.c_str()))
60 ext = itksys::SystemTools::LowerCase(ext);
67 MITK_WARN <<
"Can not read .txt file as ExampleDataStructure";
88 std::string category =
"Example and Tutorial Data";
89 mimeType.
SetComment(
"Simpler Example Data MimeType");
static CustomMimeType EXAMPLE_TWO_MIMETYPE()
std::string GetExtension(const std::string &path) const
Provides the first matching extension.
DataCollection - Class to facilitate loading/accessing structured data.
virtual bool AppliesTo(const std::string &path) const
Checks if the MimeType can handle file at the given location.
static ExampleDataStructureMimeType EXAMPLE_MIMETYPE()
static std::string EXAMPLE_TWO_MIMETYPE_NAME()
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()
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)
ExampleDataStructureMimeType * Clone() const override
ExampleDataStructureMimeType()
static std::string EXAMPLE_MIMETYPE_NAME()