/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
AlgFactory Class Reference

#include <AlgFactory.h>

List of all members.

Public Member Functions

 AlgFactory (const std::string &name, AlgBase *(*creator)(const std::string &))

Detailed Description

Definition at line 8 of file AlgFactory.h.


Constructor & Destructor Documentation

AlgFactory::AlgFactory ( const std::string &  name,
AlgBase *(*)(const std::string &)  creator 
)

Definition at line 6 of file AlgFactory.cc.

{
    typedef AlgBase* (*AlgCreator)(const std::string&);

    std::map<std::string, AlgCreator>::iterator it = AlgMgr::elementCreatorMap.find(name);
    if ( it != AlgMgr::elementCreatorMap.end() ) {
        std::string msg = std::string("Duplicated algorithm definition: ") + name;
        throw LafException(msg);
    }
    AlgMgr::elementCreatorMap.insert(std::make_pair<std::string, AlgCreator>(name, creator));
}

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