OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimCodecFactoryRegistry.h>
Public Member Functions | |
virtual | ~ossimCodecFactoryRegistry () |
virtual ossimCodecBase * | createCodec (const ossimString &type) const |
Will loop through all registered factories trying to allocate a codec for the passed in type. More... | |
virtual ossimCodecBase * | createCodec (const ossimKeywordlist &kwl, const char *prefix=0) const |
Will loop through all registered factories trying to allocate a codec for the passed in type in the type keyword of the keywordlist. More... | |
virtual void | getTypeNameList (std::vector< ossimString > &typeNames) const |
Loop through all factories and get a list of supported types. More... | |
![]() | |
ossimFactoryListInterface () | |
void | addFactory (ossimCodecFactoryInterface *factory) |
This is for backward compatability and calls registerFactory for simple adds. More... | |
bool | isFactoryRegistered (ossimCodecFactoryInterface *factory) const |
Public access method to determine if a factory is already registered to this list. More... | |
void | registerFactory (ossimCodecFactoryInterface *factory, bool pushToFrontFlag=false) |
Will register a factory to the factory list. More... | |
void | unregisterFactory (ossimCodecFactoryInterface *factory) |
Will remove the factory from the registry. More... | |
void | unregisterFactory (const ossimString &factoryTypeName) |
Will remove the factory from the registry by name. More... | |
void | unregisterAllFactories () |
Will remove all factories from the registry. More... | |
void | registerFactoryToFront (ossimCodecFactoryInterface *factory) |
Inserts the factory to the front of the list. More... | |
void | registerFactoryBefore (ossimCodecFactoryInterface *factory, ossimCodecFactoryInterface *beforeThisFactory) |
Will insert the factory before the beforeThisFactory. More... | |
void | getAllTypeNamesFromRegistry (std::vector< ossimString > &typeList) const |
Will add all object types the factories can allocate. More... | |
ossimObject * | createObjectFromRegistry (const ossimString &typeName) const |
This is the base object return for all objects in the system. More... | |
ossimObject * | createObjectFromRegistry (const ossimKeywordlist &kwl, const char *prefix=0) const |
This is the base object return for all objects in the system. More... | |
ossimCodecBase * | createNativeObjectFromRegistry (const ossimString &typeName) const |
This is a helper method that calls the createObject and makes sure that the returned object is of the NativeType base type this registry supports. More... | |
ossimCodecBase * | createNativeObjectFromRegistry (const ossimKeywordlist &kwl, const char *prefix=0) const |
This is a helper method that calls the createObject and makes sure that the returned object is of the NativeType base type this registry supports. More... | |
Static Public Member Functions | |
static ossimCodecFactoryRegistry * | instance () |
Private Member Functions | |
ossimCodecFactoryRegistry () | |
hidden from use default constructor More... | |
ossimCodecFactoryRegistry (const ossimCodecFactoryRegistry &obj) | |
hidden from use copy constructor More... | |
const ossimCodecFactoryRegistry & | operator= (const ossimCodecFactoryRegistry &rhs) |
hidden from use operator = More... | |
Static Private Attributes | |
static ossimCodecFactoryRegistry * | m_instance =0 |
Additional Inherited Members | |
![]() | |
typedef std::vector< ossimCodecFactoryInterface *> | FactoryListType |
typedef ossimCodecFactoryInterface | FactoryType |
typedef ossimCodecBase | NativeReturnType |
![]() | |
bool | findFactory (ossimCodecFactoryInterface *factory) const |
Utility to find a factory in the list. More... | |
![]() | |
std::mutex | m_factoryListMutex |
FactoryListType | m_factoryList |
Definition at line 7 of file ossimCodecFactoryRegistry.h.
|
virtual |
Definition at line 35 of file ossimCodecFactoryRegistry.cpp.
References m_instance.
|
private |
hidden from use default constructor
Definition at line 7 of file ossimCodecFactoryRegistry.cpp.
References m_instance.
Referenced by instance().
|
private |
hidden from use copy constructor
Definition at line 13 of file ossimCodecFactoryRegistry.cpp.
References m_instance.
|
virtual |
Will loop through all registered factories trying to allocate a codec for the passed in type.
in | type. Type of Codec to allocate. |
Definition at line 41 of file ossimCodecFactoryRegistry.cpp.
References ossimFactoryListInterface< ossimCodecFactoryInterface, ossimCodecBase >::createNativeObjectFromRegistry().
Referenced by ossimNitfCodecFactory::createCodec(), and ossimGpkgWriter::initializeCodec().
|
virtual |
Will loop through all registered factories trying to allocate a codec for the passed in type in the type keyword of the keywordlist.
in | kwl. State infromation to load when allocating the codec |
in | prefix. prefix value for all keys |
Definition at line 46 of file ossimCodecFactoryRegistry.cpp.
References ossimFactoryListInterface< ossimCodecFactoryInterface, ossimCodecBase >::createNativeObjectFromRegistry().
|
virtual |
Loop through all factories and get a list of supported types.
out | typeNames. The resulting typename list. Values will be appended. |
Definition at line 52 of file ossimCodecFactoryRegistry.cpp.
References ossimFactoryListInterface< ossimCodecFactoryInterface, ossimCodecBase >::getAllTypeNamesFromRegistry().
|
static |
Definition at line 24 of file ossimCodecFactoryRegistry.cpp.
References ossimCodecFactory::instance(), m_instance, ossimCodecFactoryRegistry(), and ossimFactoryListInterface< T, NativeType >::registerFactory().
Referenced by ossimNitfCodecFactory::createCodec(), ossimGpkgWriter::initializeCodec(), ossimInit::initializeDefaultFactories(), ossimSharedLibraryFinalize(), and ossimSharedLibraryInitialize().
|
private |
hidden from use operator =
Definition at line 19 of file ossimCodecFactoryRegistry.cpp.
|
staticprivate |
Definition at line 53 of file ossimCodecFactoryRegistry.h.
Referenced by instance(), ossimCodecFactoryRegistry(), and ~ossimCodecFactoryRegistry().