Om
1.0.0
A universal framework for multimedia simulation
|
An enum class that specifies a storage format for a resource and its attributes. More...
#include <omResourceFormat.h>
Public Member Functions | |
ResourceFormat () | |
Create an UNDEFINED resource format. More... | |
ResourceFormat (const data::UTF8String &newName) | |
Create a new resource format with the specified resource format name and no extensions. More... | |
ResourceFormat (const data::UTF8String &newName, const data::UTF8String &newExtension) | |
Create a new resource format with the specified resource format name and extension. More... | |
ResourceFormat (const data::UTF8String &newName, const data::UTF8String &newExtension1, const data::UTF8String &newExtension2) | |
Create a new resource format with the specified resource format name and extensions. More... | |
ResourceFormat (const data::UTF8String &newName, const data::UTF8String &newExtension1, const data::UTF8String &newExtension2, const data::UTF8String &newExtension3) | |
Create a new resource format with the specified resource format name and extensions. More... | |
const data::UTF8String & | getName () const |
Return the unique name string for this resource format. More... | |
void | setName (const data::UTF8String &newName) |
Set the unique name string for this resource format. More... | |
Size | getExtensionCount () const |
Return the number of possible extensions that this resource format has. More... | |
const data::UTF8String & | getExtension (Index index) const |
Return the file extension at the given index that can be used for this format. More... | |
Bool | hasExtension (const data::UTF8String &newExtension) const |
Return whether or not the specified string is a valid extension for this format. More... | |
void | addExtension (const data::UTF8String &newExtension) |
Add a new extension to this resource format. More... | |
void | clearExtensions () |
Clear all extensions from this resource format. More... | |
Hash | getHashCode () const |
Return an integer hash code for this resource format. More... | |
Bool | operator== (const ResourceFormat &other) const |
Return whether or not this resource format is equal to another. More... | |
Bool | operator!= (const ResourceFormat &other) const |
Return whether or not this resource format is equal to another. More... | |
Static Public Attributes | |
static const ResourceFormat | UNDEFINED |
The resource type to use for an undefined resource format. More... | |
An enum class that specifies a storage format for a resource and its attributes.
om::resources::ResourceFormat::ResourceFormat | ( | ) |
Create an UNDEFINED resource format.
om::resources::ResourceFormat::ResourceFormat | ( | const data::UTF8String & | newName | ) |
Create a new resource format with the specified resource format name and no extensions.
om::resources::ResourceFormat::ResourceFormat | ( | const data::UTF8String & | newName, |
const data::UTF8String & | newExtension | ||
) |
Create a new resource format with the specified resource format name and extension.
om::resources::ResourceFormat::ResourceFormat | ( | const data::UTF8String & | newName, |
const data::UTF8String & | newExtension1, | ||
const data::UTF8String & | newExtension2 | ||
) |
Create a new resource format with the specified resource format name and extensions.
om::resources::ResourceFormat::ResourceFormat | ( | const data::UTF8String & | newName, |
const data::UTF8String & | newExtension1, | ||
const data::UTF8String & | newExtension2, | ||
const data::UTF8String & | newExtension3 | ||
) |
Create a new resource format with the specified resource format name and extensions.
|
inline |
Return the unique name string for this resource format.
|
inline |
Set the unique name string for this resource format.
|
inline |
Return the number of possible extensions that this resource format has.
|
inline |
Return the file extension at the given index that can be used for this format.
Bool om::resources::ResourceFormat::hasExtension | ( | const data::UTF8String & | newExtension | ) | const |
Return whether or not the specified string is a valid extension for this format.
void om::resources::ResourceFormat::addExtension | ( | const data::UTF8String & | newExtension | ) |
Add a new extension to this resource format.
void om::resources::ResourceFormat::clearExtensions | ( | ) |
Clear all extensions from this resource format.
|
inline |
Return an integer hash code for this resource format.
|
inline |
Return whether or not this resource format is equal to another.
|
inline |
Return whether or not this resource format is equal to another.
|
static |
The resource type to use for an undefined resource format.