Public Types | |
typedef RawFile *(* | raw_file_creator )(const char *) |
typedef std::map < RawFile::Type, raw_file_creator > | Table |
typedef std::map < std::string, RawFile::Type > | Extensions |
Public Member Functions | |
RawFileFactory (RawFile::Type type, raw_file_creator fn, const char *ext) | |
Static Public Member Functions | |
static Table & | table () |
static Extensions & | extensions () |
static void | registerType (RawFile::Type type, raw_file_creator fn, const char *ext) |
static void | unRegisterType (RawFile::Type type) |
Definition at line 37 of file rawfilefactory.h.
typedef std::map<RawFile::Type, raw_file_creator> OpenRaw::Internals::RawFileFactory::Table |
the factory type for raw files key is the extension. file is factory method
Definition at line 45 of file rawfilefactory.h.
OpenRaw::Internals::RawFileFactory::RawFileFactory | ( | RawFile::Type | type, | |
RawFileFactory::raw_file_creator | fn, | |||
const char * | ext | |||
) |
register a filetype with the factory
type | the type of file | |
fn | the factory method | |
ext | the extension associated |
Definition at line 34 of file rawfilefactory.cpp.
References registerType().
RawFileFactory::Table & OpenRaw::Internals::RawFileFactory::table | ( | ) | [inline, static] |
access the table. Ensure that it has been constructed.
accessor. This make sure the instance has been constructed when needed
the factory table
Definition at line 74 of file rawfilefactory.h.
Referenced by registerType(), and unRegisterType().
RawFileFactory::Extensions & OpenRaw::Internals::RawFileFactory::extensions | ( | ) | [inline, static] |
access the extensions table. Ensure that it has been constructed.
the factory table
Definition at line 81 of file rawfilefactory.h.
Referenced by registerType().