Mantid
Loading...
Searching...
No Matches
WorkspaceProperty.cpp
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 +
10#include <boost/python/enum.hpp>
11
13using Mantid::API::WorkspaceProperty; // NOLINT
14
16
19 // Property and Lock mode enums
20 boost::python::enum_<PropertyMode::Type>("PropertyMode")
21 .value("Optional", PropertyMode::Optional)
22 .value("Mandatory", PropertyMode::Mandatory);
23
25 // Property and Lock mode enums
26 boost::python::enum_<LockMode::Type>("LockMode").value("Lock", LockMode::Lock).value("NoLock", LockMode::NoLock);
27
29 WorkspacePropertyExporter<Workspace>::define("WorkspaceProperty");
30}
#define GET_POINTER_SPECIALIZATION(TYPE)
Definition: GetPointer.h:17
void export_WorkspaceProperty()
A property class for workspaces.
Base Workspace Abstract Class.
Definition: Workspace.h:30
Enumeration for locking behaviour.
Enumeration for a mandatory/optional property.
A helper struct to export WorkspaceProperty<> types to Python.