28 const std::string &properties)
const {
30 scatterer->initialize();
32 if (!properties.empty()) {
33 scatterer->setProperties(properties);
BraggScattererFactoryImpl()
Private constructor.
BraggScatterer_sptr createScatterer(const std::string &name, const std::string &properties="") const
Creates an initialized instance of the desired scatterer class.
virtual std::shared_ptr< BraggScatterer > create(const std::string &className) const
Creates a new instance of the class with the given name.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
std::shared_ptr< BraggScatterer > BraggScatterer_sptr