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

#include <SvcFactory.h>

List of all members.

Public Member Functions

 SvcFactory (const std::string &name, SvcBase *(*creator)(const std::string &))

Detailed Description

Definition at line 8 of file SvcFactory.h.


Constructor & Destructor Documentation

SvcFactory::SvcFactory ( const std::string &  name,
SvcBase *(*)(const std::string &)  creator 
)

Definition at line 6 of file SvcFactory.cc.

{
    typedef SvcBase* (*SvcCreator)(const std::string&);

    std::map<std::string, SvcCreator>::iterator it = SvcMgr::elementCreatorMap.find(name);
    if ( it != SvcMgr::elementCreatorMap.end() ) {
        std::string msg = std::string("Duplicated service definition: ") + name;
        throw LafException(msg);
    }
    SvcMgr::elementCreatorMap.insert(std::make_pair<std::string, SvcCreator>(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