OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Registry of all utility factories. More...
#include <ossimToolRegistry.h>
Public Member Functions | |
ossimToolRegistry () | |
~ossimToolRegistry () | |
virtual bool | initialize () |
Initializes the utility factory. More... | |
virtual void | getCapabilities (std::map< std::string, std::string > &capabilities) const |
Appends map with available utilities along with descriptions as <name, decription> pairs. More... | |
virtual std::map< std::string, std::string > | getCapabilities () const |
virtual ossimTool * | createTool (const std::string &typeName) const |
virtual ossimString | getClassName () const |
virtual void | getTypeNameList (std::vector< ossimString > &typeList) const |
![]() | |
virtual ossimObject * | createObject (const ossimString &typeName) const |
virtual ossimObject * | createObject (const ossimKeywordlist &kwl, const char *prefix=0) const |
virtual ossimTool * | createTool (const ossimKeywordlist &kwl, const char *prefix=0) const |
![]() | |
virtual | ~ossimObjectFactory () |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () 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) |
![]() | |
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 |
![]() | |
ossimFactoryListInterface () | |
void | addFactory (ossimToolFactoryBase *factory) |
This is for backward compatability and calls registerFactory for simple adds. More... | |
bool | isFactoryRegistered (ossimToolFactoryBase *factory) const |
Public access method to determine if a factory is already registered to this list. More... | |
void | registerFactory (ossimToolFactoryBase *factory, bool pushToFrontFlag=false) |
Will register a factory to the factory list. More... | |
void | unregisterFactory (ossimToolFactoryBase *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 (ossimToolFactoryBase *factory) |
Inserts the factory to the front of the list. More... | |
void | registerFactoryBefore (ossimToolFactoryBase *factory, ossimToolFactoryBase *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... | |
ossimTool * | 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... | |
ossimTool * | 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 ossimToolRegistry * | instance () |
Static Private Attributes | |
static ossimToolRegistry * | s_instance = 0 |
Additional Inherited Members | |
![]() | |
typedef std::vector< ossimToolFactoryBase *> | FactoryListType |
typedef ossimToolFactoryBase | FactoryType |
typedef ossimTool | NativeReturnType |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
bool | findFactory (ossimToolFactoryBase *factory) const |
Utility to find a factory in the list. More... | |
![]() | |
std::mutex | m_factoryListMutex |
FactoryListType | m_factoryList |
Registry of all utility factories.
Presently only one factory exists, ossimUtilityFactory, but eventually plugins can provide their own utilities and corresponding factories.
Definition at line 22 of file ossimToolRegistry.h.
ossimToolRegistry::ossimToolRegistry | ( | ) |
Definition at line 22 of file ossimToolRegistry.cpp.
References ossimToolFactory::instance().
ossimToolRegistry::~ossimToolRegistry | ( | ) |
Definition at line 27 of file ossimToolRegistry.cpp.
|
virtual |
Implements ossimToolFactoryBase.
Definition at line 59 of file ossimToolRegistry.cpp.
Referenced by ossimDemTool::doOMG(), and ossimShorelineTool::execute().
|
virtual |
Appends map with available utilities along with descriptions as <name, decription> pairs.
The names are the human-readable name of the utility/service, typically the utility's class name without the "ossim" prefix nor "Util" suffix, all lowercase.
Implements ossimToolFactoryBase.
|
virtual |
Implements ossimToolFactoryBase.
Definition at line 52 of file ossimToolRegistry.cpp.
|
inlinevirtual |
Reimplemented from ossimObject.
Definition at line 47 of file ossimToolRegistry.h.
|
virtual |
This should return the type name of all objects in all factories. This is the name used to construct the objects dynamially and this name must be unique.
Implements ossimObjectFactory.
Definition at line 71 of file ossimToolRegistry.cpp.
|
virtual |
Initializes the utility factory.
Returns TRUE if successful.
Definition at line 32 of file ossimToolRegistry.cpp.
|
static |
Definition at line 15 of file ossimToolRegistry.cpp.
Referenced by ossimDemTool::doOMG(), ossimShorelineTool::execute(), ossimSharedLibraryFinalize(), ossimSharedLibraryInitialize(), ossimToolServer::runCommand(), ATP::ossimAtpToolFactory::~ossimAtpToolFactory(), ossimDemToolFactory::~ossimDemToolFactory(), ossimPotraceToolFactory::~ossimPotraceToolFactory(), ossimRegToolFactory::~ossimRegToolFactory(), and ossimToolFactory::~ossimToolFactory().
|
staticprivate |
Definition at line 52 of file ossimToolRegistry.h.