Mantid
Loading...
Searching...
No Matches
TransformScaleFactory.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 +
10
11namespace Mantid::API {
12namespace {
14Kernel::Logger g_log("TransformScaleFactory");
15} // namespace
16
25 try {
28 g_log.error("Error: Unable to create scaling transform of type " + type);
29 }
30 return scaling;
31}
32
42ITransformScale *TransformScaleFactoryImpl::createUnwrapped(const std::string &className) const {
43 UNUSED_ARG(className)
44 throw Kernel::Exception::NotImplementedError("Don't use this method - use the safe one!!!");
45}
46
47} // namespace Mantid::API
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
Definition: System.h:64
std::shared_ptr< ITransformScale > create(const std::string &type) const override
Returns scaling transform.
ITransformScale * createUnwrapped(const std::string &className) const override
Override the DynamicFactory::createUnwrapped() method.
virtual std::shared_ptr< Base > create(const std::string &className) const
Creates a new instance of the class with the given name.
Exception for when an item is not found in a collection.
Definition: Exception.h:145
Marks code as not implemented yet.
Definition: Exception.h:138
void error(const std::string &msg)
Logs at error level.
Definition: Logger.cpp:77
std::shared_ptr< ITransformScale > ITransformScale_sptr
typedef for a shared pointer
Kernel::Logger g_log("ExperimentInfo")
static logger object