Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents a unique identifier for a resource. More...
#include <omResourceID.h>
Public Member Functions | |
ResourceID () | |
Create a new resource ID which doesn't point to a valid resource. More... | |
ResourceID (const data::UTF8String &newURL) | |
Create a new resource ID with the specified resource file path. More... | |
ResourceID (const ResourceType &newType, const data::UTF8String &newURL) | |
Create a new resource ID with the specified attributes. More... | |
ResourceID (const ResourceType &newType, const ResourceFormat &newFormat, const data::UTF8String &newURL) | |
Create a new resource ID with the specified attributes. More... | |
ResourceID (const ResourceType &newType, const ResourceFormat &newFormat, const data::UTF8String &newURL, const data::UTF8String &newName, const ResourceFlags &newFlags=ResourceFlags::DEFAULT) | |
Create a new resource ID with the specified attributes. More... | |
const ResourceType & | getType () const |
Return an object describing the type of resource this ID refers to. More... | |
void | setType (const ResourceType &newType) |
Set an object describing the type of resource this ID refers to. More... | |
const ResourceFormat & | getFormat () const |
Return an object describing the format of file this ID refers to. More... | |
void | setFormat (const ResourceFormat &newFormat) |
Set an object describing the format of file this ID refers to. More... | |
const data::UTF8String & | getURL () const |
Return a reference to the UTF-8 encoded string representing the path to this resource. More... | |
void | setURL (const data::UTF8String &newURL) |
Set a UTF-8 encoded string representing a path to this resource. More... | |
const data::UTF8String & | getName () const |
Return a UTF-8 encoded string representing the name of the resource for this ID. More... | |
void | setName (const data::UTF8String &newName) |
Set a UTF-8 encoded string representing the name of the resource for this ID. More... | |
ResourceFlags & | getFlags () |
Return a reference to an object that contains boolean parameters of the resource. More... | |
const ResourceFlags & | getFlags () const |
Return an object that contains boolean parameters of the resource. More... | |
void | setFlags (const ResourceFlags &newFlags) |
Set an object that contains boolean parameters of the resource. More... | |
Bool | flagIsSet (ResourceFlags::Flag flag) const |
Return whether or not the specified boolan flag is set for this resource. More... | |
void | setFlag (ResourceFlags::Flag flag, Bool newIsSet=true) |
Set whether or not the specified boolan flag is set for this resource. More... | |
Bool | operator== (const ResourceID &other) const |
Return whether or not this resource ID is equal to another. More... | |
Bool | operator!= (const ResourceID &other) const |
Return whether or not this resource ID is not equal to another. More... | |
Hash | getHashCode () const |
Return an integer hash code for this resource ID. More... | |
Static Public Attributes | |
static const ResourceLocalID | INVALID_LOCAL_ID = ResourceLocalID(Int64(-1)) |
The invalid local ID that indicates the local ID is unused. More... | |
A class that represents a unique identifier for a resource.
A resource is specified by a path to a file, an enum determining how that file should be interpreted (its type), the type of resource that this ID corresponds to, and an optional name that is used to identify the resource within the file.
|
inline |
Create a new resource ID which doesn't point to a valid resource.
|
inline |
Create a new resource ID with the specified resource file path.
|
inline |
Create a new resource ID with the specified attributes.
|
inline |
Create a new resource ID with the specified attributes.
|
inline |
Create a new resource ID with the specified attributes.
|
inline |
Return an object describing the type of resource this ID refers to.
|
inline |
Set an object describing the type of resource this ID refers to.
|
inline |
Return an object describing the format of file this ID refers to.
|
inline |
Set an object describing the format of file this ID refers to.
|
inline |
Return a reference to the UTF-8 encoded string representing the path to this resource.
|
inline |
Set a UTF-8 encoded string representing a path to this resource.
|
inline |
Return a UTF-8 encoded string representing the name of the resource for this ID.
|
inline |
Set a UTF-8 encoded string representing the name of the resource for this ID.
|
inline |
Return a reference to an object that contains boolean parameters of the resource.
|
inline |
Return an object that contains boolean parameters of the resource.
|
inline |
Set an object that contains boolean parameters of the resource.
|
inline |
Return whether or not the specified boolan flag is set for this resource.
|
inline |
Set whether or not the specified boolan flag is set for this resource.
|
inline |
Return whether or not this resource ID is equal to another.
|
inline |
Return whether or not this resource ID is not equal to another.
|
inline |
Return an integer hash code for this resource ID.
|
static |
The invalid local ID that indicates the local ID is unused.