Mantid
Loading...
Searching...
No Matches
DomainCreatorFactory.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7// Includes
11
12namespace Mantid::API {
13
23 const std::string &workspacePropertyName,
24 const unsigned int domainType) const {
25 auto creator = this->createUnwrapped(id);
26 creator->initialize(pm, workspacePropertyName, static_cast<IDomainCreator::DomainType>(domainType));
27 return creator;
28}
29
30} // namespace Mantid::API
IDomainCreator * createDomainCreator(const std::string &id, Kernel::IPropertyManager *pm, const std::string &workspacePropertyName, const unsigned int domainType) const
Returns an initialized domain creator.
An base class for domain creators for use in Fit.
DomainType
Type of domain to create.
virtual IDomainCreator * createUnwrapped(const std::string &className) const
Creates a new instance of the class with the given name, which is not wrapped in a boost shared_ptr.
Interface to PropertyManager.