|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimObjectFactoryRegistry.h>
Public Member Functions | |
| virtual | ~ossimObjectFactoryRegistry () |
| virtual ossimObject * | createObject (const ossimString &name) const |
| virtual ossimObject * | createObject (const ossimKeywordlist &kwl, const char *prefix=0) const |
| virtual void | getTypeNameList (std::vector< ossimString > &typeList) const |
| virtual void | getTypeNameList (std::vector< ossimString > &typeList, const ossimString &baseType) const |
Public Member Functions inherited from ossimObject | |
| ossimObject () | |
| virtual | ~ossimObject () |
| virtual ossimObject * | dup () const |
| virtual ossimString | getShortName () const |
| virtual ossimString | getLongName () const |
| virtual ossimString | getDescription () const |
| virtual ossimString | getClassName () const |
| virtual RTTItypeid | getType () const |
| virtual bool | canCastTo (ossimObject *obj) const |
| virtual bool | canCastTo (const RTTItypeid &id) const |
| virtual bool | canCastTo (const ossimString &parentClassName) const |
| virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
| virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
| virtual std::ostream & | print (std::ostream &out) const |
| Generic print method. More... | |
| virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
| virtual void | accept (ossimVisitor &visitor) |
Public Member Functions inherited from ossimReferenced | |
| ossimReferenced () | |
| ossimReferenced (const ossimReferenced &) | |
| ossimReferenced & | operator= (const ossimReferenced &) |
| void | ref () const |
| increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unref () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unref_nodelete () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| int | referenceCount () const |
Public Member Functions inherited from ossimFactoryListInterface< ossimObjectFactory, ossimObject > | |
| ossimFactoryListInterface () | |
| void | addFactory (ossimObjectFactory *factory) |
| This is for backward compatability and calls registerFactory for simple adds. More... | |
| bool | isFactoryRegistered (ossimObjectFactory *factory) const |
| Public access method to determine if a factory is already registered to this list. More... | |
| void | registerFactory (ossimObjectFactory *factory, bool pushToFrontFlag=false) |
| Will register a factory to the factory list. More... | |
| void | unregisterFactory (ossimObjectFactory *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 (ossimObjectFactory *factory) |
| Inserts the factory to the front of the list. More... | |
| void | registerFactoryBefore (ossimObjectFactory *factory, ossimObjectFactory *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... | |
| ossimObject * | 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... | |
| ossimObject * | 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 ossimObjectFactoryRegistry * | instance () |
Protected Member Functions | |
| ossimObjectFactoryRegistry () | |
| ossimObjectFactoryRegistry (const ossimObjectFactoryRegistry &) | |
| void | operator= (const ossimObjectFactoryRegistry &) |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Protected Member Functions inherited from ossimFactoryListInterface< ossimObjectFactory, ossimObject > | |
| bool | findFactory (ossimObjectFactory *factory) const |
| Utility to find a factory in the list. More... | |
Additional Inherited Members | |
Public Types inherited from ossimFactoryListInterface< ossimObjectFactory, ossimObject > | |
| typedef std::vector< ossimObjectFactory *> | FactoryListType |
| typedef ossimObjectFactory | FactoryType |
| typedef ossimObject | NativeReturnType |
Protected Attributes inherited from ossimFactoryListInterface< ossimObjectFactory, ossimObject > | |
| std::mutex | m_factoryListMutex |
| FactoryListType | m_factoryList |
Definition at line 20 of file ossimObjectFactoryRegistry.h.
|
virtual |
Definition at line 27 of file ossimObjectFactoryRegistry.cpp.
|
protected |
Definition at line 22 of file ossimObjectFactoryRegistry.cpp.
References ossimBaseObjectFactory::instance().
|
inlineprotected |
Definition at line 60 of file ossimObjectFactoryRegistry.h.
|
inlinevirtual |
Definition at line 27 of file ossimObjectFactoryRegistry.h.
References ossimFactoryListInterface< T, NativeType >::createObjectFromRegistry().
Referenced by ossimIgenGenerator::createInput(), createObject(), ossimIgenGenerator::createOutput(), demo3(), ossimObject::dup(), and ossimInfo::printFactories().
|
inlinevirtual |
Definition at line 31 of file ossimObjectFactoryRegistry.h.
References ossimFactoryListInterface< T, NativeType >::createObjectFromRegistry().
|
inlinevirtual |
Returns a type list of all objects that can be instantiated through the createObjectMethods above.
Definition at line 41 of file ossimObjectFactoryRegistry.h.
References ossimFactoryListInterface< T, NativeType >::getAllTypeNamesFromRegistry().
Referenced by ossimInfo::printFactories().
|
virtual |
returns a list of objects that are of the passed in base type. for example:
If I want all ossimImageSource objects then I call:
ossimObjectFactoryRegistry::instance()->getTypeNameList(l, "ossimImageSource");
Definition at line 140 of file ossimObjectFactoryRegistry.cpp.
References ossimObject::canCastTo(), createObject(), and ossimRefPtr< T >::valid().
|
static |
Definition at line 31 of file ossimObjectFactoryRegistry.cpp.
Referenced by ossimIgenGenerator::createInput(), createObject(), ossimIgenGenerator::createOutput(), demo3(), ossimObject::dup(), ossimInit::initializeDefaultFactories(), ossimImageGeometryRegistry::instance(), ossim2dTo2dTransformRegistry::instance(), ossimImageWriterFactoryRegistry::instance(), ossimOverviewBuilderFactoryRegistry::instance(), ossimImageHandlerRegistry::ossimImageHandlerRegistry(), ossimImageMetaDataWriterRegistry::ossimImageMetaDataWriterRegistry(), ossimObjectFactoryRegistryGetInstance(), ossimProjectionFactoryRegistry::ossimProjectionFactoryRegistry(), ossimSharedLibraryFinalize(), ossimSharedLibraryInitialize(), ossimInfo::printFactories(), ossimImageMetaDataWriterRegistry::~ossimImageMetaDataWriterRegistry(), and ossimImageSourceFactory::~ossimImageSourceFactory().
|
inlineprotected |
Definition at line 61 of file ossimObjectFactoryRegistry.h.
1.8.14