306{
307 std::map<std::string, NewAggregateInterface::Ptr> const& newAggregateInterfaces =
309 auto i = newAggregateInterfaces.find(name);
310 if(i != newAggregateInterfaces.end())
311 {
313 if(aggregate)
314 {
316
317 if(aggregatePresentation)
318 {
320 }
321
322 return aggregate;
323 }
324
325 throw std::invalid_argument("Failed to create a new" + name);
326 }
327 throw std::invalid_argument("Don't know how to create a new " + name);
328}
void on_presentation_created(const PresentationInterface::Ptr &presentation)
Definition callbacks.cc:634
std::shared_ptr< Aggregate > Ptr
Definition presentationinterface.hh:146
static PluginManager::Ptr getInstance()
Definition pluginmanager.cc:334
std::shared_ptr< PresentationInterface > Ptr
Definition presentationinterface.hh:73