Om
1.0.0
A universal framework for multimedia simulation
|
The base class for objects that load and save resource data. More...
#include <omResourceTranscoder.h>
Public Member Functions | |
virtual | ~ResourceTranscoder () |
Destroy a resource transcoder and release all of its resources. More... | |
virtual const ResourceType & | getResourceType () const =0 |
Return an object that represents the resource type that this transcoder can read and write. More... | |
virtual const ResourceFormat & | getResourceFormat () const =0 |
Return an object that represents the resource format that this transcoder can read and write. More... | |
virtual Bool | canDecode (const ResourceID &identifier) const =0 |
Return whether or not the specified identifier refers to a valid resource for this transcoder. More... | |
The base class for objects that load and save resource data.
|
inlinevirtual |
Destroy a resource transcoder and release all of its resources.
|
pure virtual |
Return an object that represents the resource type that this transcoder can read and write.
Implemented in om::resources::ResourceTypeTranscoder< DataType >, om::resources::ResourceTypeTranscoder< MIDI >, om::resources::ResourceTypeTranscoder< HRTF >, om::resources::ResourceTypeTranscoder< Image >, om::resources::ResourceTypeTranscoder< Sound >, om::resources::ResourceTypeTranscoder< Texture >, om::resources::ResourceTypeTranscoder< ResourceSet >, om::resources::ResourceTypeTranscoder< Font >, and om::resources::ResourceTypeTranscoder< GraphicsShape >.
|
pure virtual |
Return an object that represents the resource format that this transcoder can read and write.
Implemented in om::resources::ResourceSetTranscoder, om::sound::io::HRTFTranscoder, om::graphics::io::MeshworkTranscoder, om::graphics::io::OBJTranscoder, om::graphics::io::PLYTranscoder, om::graphics::io::TextureTranscoder, om::sound::io::AIFFTranscoder, om::sound::io::FLACTranscoder, om::sound::io::OggTranscoder, om::sound::io::WaveTranscoder, om::graphics::gui::resources::FontTranscoder, om::images::io::BMPTranscoder, om::images::io::JPEGTranscoder, om::images::io::PNGTranscoder, om::images::io::TGATranscoder, om::images::io::TIFFTranscoder, and om::sound::io::MIDITranscoder.
|
pure virtual |
Return whether or not the specified identifier refers to a valid resource for this transcoder.
If the identifier represents a valid resource, TRUE is returned. Otherwise, if the resource is not valid, FALSE is returned.
Implemented in om::resources::ResourceSetTranscoder, om::sound::io::HRTFTranscoder, om::images::io::ImageTranscoder, om::graphics::io::MeshworkTranscoder, om::graphics::io::OBJTranscoder, om::graphics::io::PLYTranscoder, om::graphics::io::TextureTranscoder, om::sound::io::AIFFTranscoder, om::sound::io::FLACTranscoder, om::sound::io::OggTranscoder, om::sound::io::WaveTranscoder, om::sound::io::MIDITranscoder, and om::graphics::gui::resources::FontTranscoder.