Mantid
Loading...
Searching...
No Matches
XmlHandler.h
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#pragma once
8
9#include "MantidDataHandling/DllConfig.h"
10
11#include <Poco/AutoPtr.h>
12#include <Poco/DOM/Document.h>
13
14#include <map>
15#include <string>
16#include <vector>
17
18namespace Mantid {
19namespace DataHandling {
20
21class MANTID_DATAHANDLING_DLL XmlHandler {
22public:
23 XmlHandler() = default;
24 XmlHandler(const std::string &);
25
26 std::map<std::string, std::string> get_metadata(const std::vector<std::string> &tags_to_ignore);
27 std::string get_text_from_tag(const std::string &);
28 std::map<std::string, std::string> get_attributes_from_tag(const std::string &);
29 std::vector<std::string> get_subnodes(const std::string &);
30
31private:
32 Poco::AutoPtr<Poco::XML::Document> pDoc;
33};
34} // namespace DataHandling
35} // namespace Mantid
Poco::AutoPtr< Poco::XML::Document > pDoc
Definition: XmlHandler.h:32
Helper class which provides the Collimation Length for SANS instruments.