-yp2::FactoryFilterException::FactoryFilterException(const std::string message)
- : std::runtime_error("FilterException: " + message)
+yp2::FactoryFilter::NotFound::NotFound(const std::string message)
+ : std::runtime_error(message)
yp2::filter::Base* yp2::FactoryFilter::create(std::string fi)
{
Rep::CallbackMap::const_iterator it = m_p->m_fcm.find(fi);
if (it == m_p->m_fcm.end()){
std::string msg = "filter type '" + fi + "' not found";
yp2::filter::Base* yp2::FactoryFilter::create(std::string fi)
{
Rep::CallbackMap::const_iterator it = m_p->m_fcm.find(fi);
if (it == m_p->m_fcm.end()){
std::string msg = "filter type '" + fi + "' not found";
-bool yp2::FactoryFilter::add_creator_dyn(const std::string &fi,
- const std::string &path)
+ return true;
+#else
+ return false;
+#endif
+}
+
+bool yp2::FactoryFilter::add_creator_dl(const std::string &fi,
+ const std::string &path)
}
struct yp2_filter_struct *s = (struct yp2_filter_struct *) dlsym_ptr;
return add_creator(fi, s->creator);
}
struct yp2_filter_struct *s = (struct yp2_filter_struct *) dlsym_ptr;
return add_creator(fi, s->creator);