/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Static Public Member Functions | Protected Types | Static Protected Attributes | Private Member Functions | Static Private Attributes | Friends
ToolMgr Class Reference

#include <ToolMgr.h>

Inheritance diagram for ToolMgr:
Inheritance graph
[legend]
Collaboration diagram for ToolMgr:
Collaboration graph
[legend]

List of all members.

Public Member Functions

const std::string & name ()
virtual bool initialize ()
virtual bool finalize ()

Static Public Member Functions

static ToolMgrinstance ()
static ToolBaseget (const std::string &objName, bool create=false)
static ConcreteType * get (const std::string &objName, bool create=false)

Protected Types

typedef ToolBase *(* ElementCreator )(const std::string &)
typedef std::map< std::string,
ElementCreator
Type2CreatorMap

Static Protected Attributes

static std::list< ToolBase * > m_elements
static std::map< std::string,
ToolBase * > 
name2obj
static std::map< std::string,
ElementCreator
elementCreatorMap

Private Member Functions

 ToolMgr (const std::string &name)

Static Private Attributes

static ToolMgr_instance = 0

Friends

class ToolFactory

Detailed Description

Definition at line 7 of file ToolMgr.h.


Member Typedef Documentation

typedef ToolBase *(* ElementMgr< ToolBase >::ElementCreator)(const std::string &) [protected, inherited]

Definition at line 41 of file ElementMgr.h.

typedef std::map<std::string, ElementCreator> ElementMgr< ToolBase >::Type2CreatorMap [protected, inherited]

Definition at line 42 of file ElementMgr.h.


Constructor & Destructor Documentation

ToolMgr::ToolMgr ( const std::string &  name) [private]

Definition at line 24 of file ToolMgr.cc.

    : ElementMgr<ToolBase>(objname)
{
    //for ( std::list<ToolBase*>::iterator it = m_elements.begin(); it != m_elements.end(); ++it ) {
    //    LogInfo << "Load tools : " << (*it)->name() << std::endl;
    //}
}

Member Function Documentation

ToolMgr * ToolMgr::instance ( ) [static]

Definition at line 16 of file ToolMgr.cc.

{
    if ( _instance == 0 ) {
        _instance = new ToolMgr("ToolMgr");
    }
    return _instance;
}
const std::string& ElementMgr< ToolBase >::name ( void  ) [inline, inherited]

Definition at line 16 of file ElementMgr.h.

{ return m_name; }
static ToolBase * ElementMgr< ToolBase >::get ( const std::string &  objName,
bool  create = false 
) [static, inherited]
static ConcreteType* ElementMgr< ToolBase >::get ( const std::string &  objName,
bool  create = false 
) [static, inherited]
bool ElementMgr< ToolBase >::initialize ( ) [virtual, inherited]

Definition at line 6 of file ToolMgr.cc.

{
    return true;
}
bool ElementMgr< ToolBase >::finalize ( ) [virtual, inherited]

Definition at line 11 of file ToolMgr.cc.

{
    return true;
}

Friends And Related Function Documentation

friend class ToolFactory [friend]

Definition at line 17 of file ToolMgr.h.


Member Data Documentation

ToolMgr * ToolMgr::_instance = 0 [static, private]

Definition at line 18 of file ToolMgr.h.

std::list<ToolBase *> ElementMgr< ToolBase >::m_elements [static, protected, inherited]

Definition at line 37 of file ElementMgr.h.

std::map<std::string, ToolBase *> ElementMgr< ToolBase >::name2obj [static, protected, inherited]

Definition at line 39 of file ElementMgr.h.

std::map<std::string, ElementCreator> ElementMgr< ToolBase >::elementCreatorMap [static, protected, inherited]

Definition at line 43 of file ElementMgr.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:50:18 for LafKernel by doxygen 1.7.4