PluginFactory.cc
Go to the documentation of this file.
1 #include "cetlib/PluginFactory.h"
2 
3 #include <string>
4 
6  std::string const& suffix)
7  : lm_{search_path, suffix}
8 {}
9 
12 {
14  if (releaseVersionFunc_) {
15  result = releaseVersionFunc_();
16  } else {
17  result = releaseVersionString_.empty() ? "Unknown" : releaseVersionString_;
18  }
19  return result;
20 }
static QCString result
std::string string
Definition: nybbler.cc:12
std::function< std::string()> releaseVersionFunc_
Definition: PluginFactory.h:90
std::string releaseVersion_() const
PluginFactory(cet::search_path const &search_path, std::string const &suffix="plugin")
Definition: PluginFactory.cc:5
std::string releaseVersionString_
Definition: PluginFactory.h:89