Mantid
Loading...
Searching...
No Matches
LoadSingleMesh.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2020 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#pragma once
8#include "MantidDataHandling/DllConfig.h"
10#include "MantidKernel/Logger.h"
11
12#include <fstream>
13
14namespace Mantid {
15
16namespace Geometry {
17class MeshObject;
18}
19namespace DataHandling {
20namespace {
21Mantid::Kernel::Logger g_log("LoadSingleMesh");
22}
23class MANTID_DATAHANDLING_DLL LoadSingleMesh : public MeshFileIO {
24public:
25 LoadSingleMesh(std::string filename, std::ios_base::openmode mode, ScaleUnits scaleType);
26 virtual ~LoadSingleMesh();
27 virtual std::unique_ptr<Geometry::MeshObject> readShape() = 0;
28
29protected:
30 const std::string m_filename;
31 std::ifstream m_file;
32};
33} // namespace DataHandling
34} // namespace Mantid
virtual std::unique_ptr< Geometry::MeshObject > readShape()=0
The Logger class is in charge of the publishing messages from the framework through various channels.
Definition: Logger.h:52
Kernel::Logger g_log("ExperimentInfo")
static logger object
Helper class which provides the Collimation Length for SANS instruments.