Mantid
Loading...
Searching...
No Matches
Framework
Kernel
inc
MantidKernel
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"
10
#include "
MantidKernel/Material.h
"
11
#include <istream>
12
13
namespace
Poco
{
14
namespace
XML {
15
class
Element;
16
}
17
}
// namespace Poco
18
19
namespace
Mantid
{
20
namespace
Kernel {
21
25
class
MANTID_KERNEL_DLL
MaterialXMLParser
{
26
public
:
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
Material.h
Mantid::Kernel::MaterialXMLParser
Read an XML definition of a Material and produce a new Material object.
Definition
MaterialXMLParser.h:25
Mantid::Kernel::Material
A material is defined as being composed of a given element, defined as a PhysicalConstants::NeutronAt...
Definition
Material.h:50
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
Poco
Definition
Algorithm.h:24
Generated by
1.9.8