14 #ifndef USMODULERESOURCE_H
15 #define USMODULERESOURCE_H
27 class ModuleResourcePrivate;
28 class ModuleResourceContainer;
119 operator bool_type()
const;
272 ModuleResource(
const std::string& file,
const ModuleResourceContainer& resourceContainer);
273 ModuleResource(
int index,
const ModuleResourceContainer& resourceContainer);
276 friend class ModulePrivate;
277 friend class ModuleResourceContainer;
282 std::size_t Hash()
const;
284 void* GetData()
const;
286 ModuleResourcePrivate* d;
#define MITKCPPMICROSERVICES_EXPORT
An input stream class for ModuleResource objects.
Represents a resource (text file, image, etc.) embedded in a CppMicroServices module.
bool operator!=(const ModuleResource &resource) const
Inequality operator for ModuleResource objects.
std::string GetBaseName() const
Returns the base name of the resource without the path.
bool operator<(const ModuleResource &resource) const
A less then operator using the full resource path as returned by GetResourcePath() to define the orde...
~ModuleResource()
Destructor.
std::string GetCompleteSuffix() const
Returns the complete suffix of the resource.
bool IsValid() const
Tests this ModuleResource object for validity.
std::string GetResourcePath() const
Returns the resource path including the file name.
int GetSize() const
Returns the size of the resource data for this ModuleResource object.
std::string GetSuffix() const
Returns the suffix of the resource.
std::vector< std::string > GetChildren() const
Returns a list of resource names which are children of this object.
bool IsDir() const
Returns true if this ModuleResource object points to a directory and thus may have child resources.
std::string GetCompleteBaseName() const
Returns the complete base name of the resource without the path.
time_t GetLastModified() const
Returns the last modified time of this resource in seconds from the epoch.
std::string GetPath() const
Returns the resource's path, without the file name.
ModuleResource & operator=(const ModuleResource &resource)
Assignment operator.
std::vector< ModuleResource > GetChildResources() const
Returns a list of resource objects which are children of this object.
bool IsFile() const
Returns true if this ModuleResource object points to a file resource.
std::string GetName() const
Returns the name of the resource, excluding the path.
ModuleResource()
Creates an invalid ModuleResource object.
ModuleResource(const ModuleResource &resource)
Copy constructor.
bool operator==(const ModuleResource &resource) const
Equality operator for ModuleResource objects.
Represents a CppMicroServices module.
US_MSVC_POP_WARNING MITKCPPMICROSERVICES_EXPORT std::ostream & operator<<(std::ostream &os, const us::ModuleResource &resource)
Stream output operator for ModuleResource.
std::size_t operator()(const us::ModuleResource &arg) const
#define US_MSVC_POP_WARNING
#define US_MSVC_PUSH_DISABLE_WARNING(wn)