IODA Bundle
odc::tool::AbstractToolFactory Class Referenceabstract

#include <ToolFactory.h>

Inheritance diagram for odc::tool::AbstractToolFactory:
[legend]

Public Member Functions

virtual Toolcreate (int argc, char **argv)=0
 
virtual void help (std::ostream &)=0
 
virtual void usage (const std::string &, std::ostream &)=0
 
virtual bool experimental ()=0
 

Static Public Member Functions

static ToolcreateTool (const std::string &name, int argc, char **argv)
 
static void printToolHelp (const std::string &, std::ostream &)
 
static void printToolUsage (const std::string &name, std::ostream &)
 
static void printToolsHelp (std::ostream &)
 
static std::vector< odc::tool::test::TestCase * > * testCases (const std::vector< std::string > &=matchAll)
 
static void listTools (std::ostream &)
 

Protected Member Functions

 AbstractToolFactory (const std::string &name)
 
virtual ~AbstractToolFactory ()
 

Static Private Member Functions

static AbstractToolFactoryfindTool (const std::string &name)
 

Static Private Attributes

static std::map< std::string, AbstractToolFactory * > * toolFactories = 0
 
static const std::vector< std::string > matchAll = MatchAll()
 

Detailed Description

Definition at line 21 of file ToolFactory.h.

Constructor & Destructor Documentation

◆ AbstractToolFactory()

odc::tool::AbstractToolFactory::AbstractToolFactory ( const std::string &  name)
protected

Definition at line 152 of file ToolFactory.cc.

◆ ~AbstractToolFactory()

odc::tool::AbstractToolFactory::~AbstractToolFactory ( )
protectedvirtual

Definition at line 160 of file ToolFactory.cc.

Member Function Documentation

◆ create()

virtual Tool* odc::tool::AbstractToolFactory::create ( int  argc,
char **  argv 
)
pure virtual

Implemented in odc::tool::ToolFactory< T >.

Here is the caller graph for this function:

◆ createTool()

Tool * odc::tool::AbstractToolFactory::createTool ( const std::string &  name,
int  argc,
char **  argv 
)
static

Definition at line 143 of file ToolFactory.cc.

Here is the call graph for this function:

◆ experimental()

virtual bool odc::tool::AbstractToolFactory::experimental ( )
pure virtual

Implemented in odc::tool::ToolFactory< T >.

Here is the caller graph for this function:

◆ findTool()

AbstractToolFactory & odc::tool::AbstractToolFactory::findTool ( const std::string &  name)
staticprivate

Definition at line 78 of file ToolFactory.cc.

◆ help()

virtual void odc::tool::AbstractToolFactory::help ( std::ostream &  )
pure virtual

Implemented in odc::tool::ToolFactory< T >.

Here is the caller graph for this function:

◆ listTools()

void odc::tool::AbstractToolFactory::listTools ( std::ostream &  s)
static

Definition at line 123 of file ToolFactory.cc.

Here is the call graph for this function:

◆ printToolHelp()

void odc::tool::AbstractToolFactory::printToolHelp ( const std::string &  name,
std::ostream &  s 
)
static

Definition at line 89 of file ToolFactory.cc.

◆ printToolsHelp()

void odc::tool::AbstractToolFactory::printToolsHelp ( std::ostream &  s)
static

Definition at line 101 of file ToolFactory.cc.

Here is the call graph for this function:

◆ printToolUsage()

void odc::tool::AbstractToolFactory::printToolUsage ( const std::string &  name,
std::ostream &  s 
)
static

Definition at line 95 of file ToolFactory.cc.

◆ testCases()

std::vector< test::TestCase * > * odc::tool::AbstractToolFactory::testCases ( const std::vector< std::string > &  patterns = matchAll)
static

Definition at line 42 of file ToolFactory.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usage()

virtual void odc::tool::AbstractToolFactory::usage ( const std::string &  ,
std::ostream &   
)
pure virtual

Implemented in odc::tool::ToolFactory< T >.

Here is the caller graph for this function:

Member Data Documentation

◆ matchAll

const std::vector< std::string > odc::tool::AbstractToolFactory::matchAll = MatchAll()
staticprivate

Definition at line 45 of file ToolFactory.h.

◆ toolFactories

std::map< std::string, AbstractToolFactory * > * odc::tool::AbstractToolFactory::toolFactories = 0
staticprivate

Definition at line 44 of file ToolFactory.h.


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