Mantid
Loading...
Searching...
No Matches
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 +
8#include "MantidAPI/Column.h"
9#include <sstream>
10
11namespace Mantid::API {
12
13std::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
std::shared_ptr< Column > create(const std::string &type) const override
Creates an instance of a column.
virtual std::shared_ptr< Base > create(const std::string &className) const
Creates a new instance of the class with the given name.