OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
ATP::ossimAtpToolFactory Class Reference

#include <ossimAtpToolFactory.h>

Inheritance diagram for ATP::ossimAtpToolFactory:
ossimToolFactoryBase ossimObjectFactory ossimObject ossimReferenced

Public Member Functions

virtual ~ossimAtpToolFactory ()
 
virtual ossimToolcreateTool (const std::string &typeName) const
 
virtual void getTypeNameList (std::vector< ossimString > &typeList) const
 
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
 
- Public Member Functions inherited from ossimToolFactoryBase
virtual ossimObjectcreateObject (const ossimString &typeName) const
 
virtual ossimObjectcreateObject (const ossimKeywordlist &kwl, const char *prefix=0) const
 
virtual ossimToolcreateTool (const ossimKeywordlist &kwl, const char *prefix=0) const
 
- Public Member Functions inherited from ossimObjectFactory
virtual ~ossimObjectFactory ()
 
- Public Member Functions inherited from ossimObject
 ossimObject ()
 
virtual ~ossimObject ()
 
virtual ossimObjectdup () 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 &)
 
ossimReferencedoperator= (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
 

Static Public Member Functions

static ossimAtpToolFactoryinstance ()
 

Protected Member Functions

 ossimAtpToolFactory ()
 
 ossimAtpToolFactory (const ossimAtpToolFactory &)
 
void operator= (const ossimAtpToolFactory &)
 
- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 

Static Protected Attributes

static ossimAtpToolFactorys_instance = 0
 static instance of this class More...
 

Detailed Description

Definition at line 20 of file ossimAtpToolFactory.h.

Constructor & Destructor Documentation

◆ ~ossimAtpToolFactory()

ATP::ossimAtpToolFactory::~ossimAtpToolFactory ( )
virtual

Definition at line 29 of file ossimAtpToolFactory.cpp.

References ossimToolRegistry::instance(), and ossimFactoryListInterface< T, NativeType >::unregisterFactory().

30 {
32 }
static ossimToolRegistry * instance()
void unregisterFactory(T *factory)
Will remove the factory from the registry.

◆ ossimAtpToolFactory() [1/2]

ATP::ossimAtpToolFactory::ossimAtpToolFactory ( )
protected

Definition at line 25 of file ossimAtpToolFactory.cpp.

26 {
27 }

◆ ossimAtpToolFactory() [2/2]

ATP::ossimAtpToolFactory::ossimAtpToolFactory ( const ossimAtpToolFactory )
protected

Member Function Documentation

◆ createTool()

ossimTool * ATP::ossimAtpToolFactory::createTool ( const std::string &  typeName) const
virtual

Implements ossimToolFactoryBase.

Definition at line 34 of file ossimAtpToolFactory.cpp.

References ossimString::downcase().

35 {
36  ossimString utilName (argName);
37  utilName.downcase();
38 
39  if ((utilName == "atp") || (argName == "ossimAtpTool"))
40  return new ossimAtpTool;
41 
42  return 0;
43 }

◆ getCapabilities() [1/2]

void ATP::ossimAtpToolFactory::getCapabilities ( std::map< std::string, std::string > &  capabilities) const
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.

Definition at line 45 of file ossimAtpToolFactory.cpp.

46 {
47  capabilities.insert(pair<string, string>("atp", ossimAtpTool::DESCRIPTION));
48 }
static const char * DESCRIPTION
Definition: ossimAtpTool.h:25

◆ getCapabilities() [2/2]

std::map< std::string, std::string > ATP::ossimAtpToolFactory::getCapabilities ( ) const
virtual

Implements ossimToolFactoryBase.

Definition at line 50 of file ossimAtpToolFactory.cpp.

51 {
52  std::map<std::string, std::string> result;
53  getCapabilities(result);
54  return result;
55 }
virtual std::map< std::string, std::string > getCapabilities() const

◆ getTypeNameList()

void ATP::ossimAtpToolFactory::getTypeNameList ( std::vector< ossimString > &  typeList) const
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 57 of file ossimAtpToolFactory.cpp.

58 {
59  typeList.push_back("ossimAtpTool");
60 }

◆ instance()

ossimAtpToolFactory * ATP::ossimAtpToolFactory::instance ( )
static

Definition at line 18 of file ossimAtpToolFactory.cpp.

Referenced by ossimSharedLibraryFinalize(), and ossimSharedLibraryInitialize().

19 {
20  if (!s_instance)
22  return s_instance;
23 }
static ossimAtpToolFactory * s_instance
static instance of this class

◆ operator=()

void ATP::ossimAtpToolFactory::operator= ( const ossimAtpToolFactory )
protected

Member Data Documentation

◆ s_instance

ossimAtpToolFactory * ATP::ossimAtpToolFactory::s_instance = 0
staticprotected

static instance of this class

Definition at line 37 of file ossimAtpToolFactory.h.


The documentation for this class was generated from the following files: