OpenRaw::Internals::RawFileFactory Class Reference

List of all members.

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 Tabletable ()
static Extensionsextensions ()
static void registerType (RawFile::Type type, raw_file_creator fn, const char *ext)
static void unRegisterType (RawFile::Type type)

Detailed Description

Definition at line 37 of file rawfilefactory.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

OpenRaw::Internals::RawFileFactory::RawFileFactory ( RawFile::Type  type,
raw_file_creator  fn,
const char *  ext 
)

register a filetype with the factory

Parameters:
type the type of file
fn the factory method
ext the extension associated
Note:
it is safe to call this method with the same fn and type to register a different extension

Definition at line 34 of file rawfilefactory.cpp.

References registerType().


Member Function Documentation

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().

RawFileFactory::Table & OpenRaw::Internals::RawFileFactory::table (  )  [inline, static]

access the table. Ensure that it has been constructed.

the factory table

Definition at line 74 of file rawfilefactory.h.

Referenced by registerType(), and unRegisterType().


The documentation for this class was generated from the following files:
Generated on Sat Jan 27 11:36:14 2007 for libopenraw by  doxygen 1.4.7