40 boost::unordered_map<std::string , boost::shared_ptr<CreatorInterface> >::const_iterator lIt =
mCreators.find ( aProtocol ) ;
46 log (
Warning() ,
"Protocol \"" , aProtocol ,
"\" already exists in map of creators. Continuing for now, but be warned." );
boost::shared_ptr< ClientInterface > create(const std::string &aId, const URI &aUri)
Concrete function which creates a new IPbus client based on the protocol identifier specified...
std::map< std::string, std::string > mProductDescriptions
Store the description of the factory product.
void add(const std::string &aProtocol, const std::string &aDescription="")
Method to create an associate between a protocol identifier and a Creator of a particular type...
Templated concrete implementation with a CreatorInterface interface.
boost::unordered_map< std::string, boost::shared_ptr< CreatorInterface > > mCreators
Hash map associating a creator for a particular protocol with a file name.
Struct to store a URI when parsed by boost spirit.