Mantid
Loading...
Searching...
No Matches
SpinStateHelpers.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2025 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
8#pragma once
9
10#include "MantidKernel/DllConfig.h"
11
12#include <optional>
13#include <string>
14#include <vector>
15
16namespace Mantid::Kernel {
17namespace SpinStateHelpers {
18MANTID_KERNEL_DLL std::optional<size_t> indexOfWorkspaceForSpinState(const std::vector<std::string> &spinStateOrder,
19 std::string targetSpinState);
20MANTID_KERNEL_DLL std::vector<std::string> splitSpinStateString(const std::string &spinStates);
21} // namespace SpinStateHelpers
22} // namespace Mantid::Kernel
MANTID_KERNEL_DLL std::vector< std::string > splitSpinStateString(const std::string &spinStates)
MANTID_KERNEL_DLL std::optional< size_t > indexOfWorkspaceForSpinState(const std::vector< std::string > &spinStateOrder, std::string targetSpinState)