23 #ifndef USMODULERESOURCE_H
24 #define USMODULERESOURCE_H
26 #include <usCoreExport.h>
31 US_MSVC_PUSH_DISABLE_WARNING(4396)
35 class ModuleResourcePrivate;
36 class ModuleResourceContainer;
60 typedef ModuleResourcePrivate* ModuleResource::*bool_type;
72 ModuleResource(
const ModuleResource& resource);
82 ModuleResource& operator=(
const ModuleResource& resource);
92 bool operator<(
const ModuleResource& resource)
const;
102 bool operator==(
const ModuleResource& resource)
const;
110 bool operator!=(
const ModuleResource& resource)
const;
121 bool IsValid()
const;
126 operator bool_type()
const;
156 std::string GetPath()
const;
164 std::string GetResourcePath()
const;
178 std::string GetBaseName()
const;
192 std::string GetCompleteBaseName()
const;
209 std::string GetSuffix()
const;
226 std::string GetCompleteSuffix()
const;
251 std::vector<std::string> GetChildren()
const;
261 std::vector<ModuleResource> GetChildResources()
const;
275 time_t GetLastModified()
const;
279 ModuleResource(
const std::string& file,
const ModuleResourceContainer& resourceContainer);
280 ModuleResource(
int index,
const ModuleResourceContainer& resourceContainer);
283 friend class ModulePrivate;
284 friend class ModuleResourceContainer;
287 US_HASH_FUNCTION_FRIEND(ModuleResource);
289 std::size_t
Hash()
const;
293 ModuleResourcePrivate* d;
306 US_HASH_FUNCTION_NAMESPACE_BEGIN
310 US_HASH_FUNCTION_NAMESPACE_END
312 #endif // USMODULERESOURCE_H
MITKCORE_EXPORT bool operator!=(const InteractionEvent &a, const InteractionEvent &b)
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
T::Pointer GetData(const std::string &name)
static std::string GetName(std::string fileName, std::string suffix)
US_MSVC_POP_WARNING US_Core_EXPORT std::ostream & operator<<(std::ostream &os, const us::ModuleResource &resource)
US_HASH_FUNCTION_NAMESPACE_BEGIN return arg Hash()