Mantid
Loading...
Searching...
No Matches
Framework
API
src
ColumnFactory.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
#include "
MantidAPI/ColumnFactory.h
"
8
#include "
MantidAPI/Column.h
"
9
#include <sstream>
10
11
namespace
Mantid::API
{
12
13
std::shared_ptr<Column>
ColumnFactoryImpl::create
(
const
std::string &type)
const
{
14
std::shared_ptr<Column> c =
Kernel::DynamicFactory<Column>::create
(type);
15
c->m_type = type;
16
return
c;
17
}
18
19
}
// namespace Mantid::API
ColumnFactory.h
Column.h
Mantid::API::ColumnFactoryImpl::create
std::shared_ptr< Column > create(const std::string &type) const override
Creates an instance of a column.
Definition:
ColumnFactory.cpp:13
Mantid::Kernel::DynamicFactory::create
virtual std::shared_ptr< Base > create(const std::string &className) const
Creates a new instance of the class with the given name.
Definition:
DynamicFactory.h:89
Mantid::API
Definition:
AbsorptionCorrection.h:20
Generated on Tue Jan 3 2023 11:57:22 for Mantid by
1.9.5