85 #define TypeMan ::Aurora::FileTypeManager::instance() 87 #endif // AURORA_UTIL_H ExtensionLookup _extensionLookup
void buildExtensionLookup()
Class and macro for implementing singletons.
std::map< FileType, const Type * > TypeLookup
A class holding an UTF-8 string.
std::map< uint64, const Type * > HashLookup
Common::UString addFileType(const Common::UString &path, FileType type)
Return the file name with an added extensions according to the specified file type.
Common::UString setFileType(const Common::UString &path, FileType type)
Return the file name with a swapped extensions according to the specified file type.
Generic template base class for implementing the singleton design pattern.
HashLookup _hashLookup[Common::kHashMAX]
std::map< Common::UString, const Type * > ExtensionLookup
HashAlgo
The algorithm used for hashing.
static const Type types[]
FileType getFileType(const Common::UString &path)
Return the file type of a file name, detected by its extension.
Basic type definitions to handle files used in BioWare's Aurora engine.
void buildHashLookup(Common::HashAlgo algo)
File type <-> extension mapping.
FileType
Various file types used by the Aurora engine and found in archives.
Common::UString getPlatformDescription(Platform platform)
Return the human readable string of a Platform.