Mantid
Loading...
Searching...
No Matches
Macros | Functions
ListValidator.cpp File Reference
#include "MantidKernel/ListValidator.h"
#include "MantidPythonInterface/core/Converters/PySequenceToVector.h"
#include <boost/python/class.hpp>
#include <boost/python/default_call_policies.hpp>
#include <boost/python/list.hpp>
#include <boost/python/make_constructor.hpp>
#include <string>

Go to the source code of this file.

Macros

#define EXPORT_LISTVALIDATOR(type, prefix)
 

Functions

void export_ListValidator ()
 

Macro Definition Documentation

◆ EXPORT_LISTVALIDATOR

#define EXPORT_LISTVALIDATOR (   type,
  prefix 
)
Value:
class_<ListValidator<type>, bases<IValidator>, boost::noncopyable>(#prefix "ListValidator") \
.def("__init__", make_constructor(&createListValidator<type>, default_call_policies(), arg("allowedValues"))) \
.def("addAllowedValue", &ListValidator<type>::addAllowedValue, (arg("self"), arg("value")), \
"Adds a value to the list of accepted values");
ListValidator is a validator that requires the value of a property to be one of a defined list of pos...
Definition: ListValidator.h:29

Definition at line 34 of file ListValidator.cpp.

Function Documentation

◆ export_ListValidator()

void export_ListValidator ( )

Definition at line 41 of file ListValidator.cpp.

References EXPORT_LISTVALIDATOR.