Mantid
Loading...
Searching...
No Matches
MaterialXMLParser.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 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
9#include "MantidKernel/DllConfig.h"
11#include <istream>
12
13namespace Poco {
14namespace XML {
15class Element;
16}
17} // namespace Poco
18
19namespace Mantid {
20namespace Kernel {
21
25class MANTID_KERNEL_DLL MaterialXMLParser {
26public:
27 static constexpr const char *MATERIAL_TAG = "material";
28
29 Material parse(std::istream &istr) const;
30 Material parse(Poco::XML::Element *node, const std::string &XMLFilePath = "") const;
31};
32
33} // namespace Kernel
34} // namespace Mantid
Read an XML definition of a Material and produce a new Material object.
A material is defined as being composed of a given element, defined as a PhysicalConstants::NeutronAt...
Definition: Material.h:50
Helper class which provides the Collimation Length for SANS instruments.
Definition: Algorithm.h:30