Mantid
Loading...
Searching...
No Matches
Macros | Functions
WorkspaceValidators.cpp File Reference
#include "MantidAPI/CommonBinsValidator.h"
#include "MantidAPI/HistogramValidator.h"
#include "MantidAPI/IMDWorkspace.h"
#include "MantidAPI/MDFrameValidator.h"
#include "MantidAPI/NumericAxisValidator.h"
#include "MantidAPI/RawCountValidator.h"
#include "MantidAPI/SpectraAxisValidator.h"
#include "MantidAPI/WorkspaceUnitValidator.h"
#include "MantidPythonInterface/core/TypedValidatorExporter.h"
#include <boost/python/class.hpp>

Go to the source code of this file.

Macros

#define EXPORT_WKSP_VALIDATOR_ARG(ValidatorType, ArgType, ArgName, DocString)
 Export a validator derived from a MatrixWorkspaceValidator that has a single-arg constructor. More...
 
#define EXPORT_WKSP_VALIDATOR_DEFAULT_ARG(ValidatorType, ArgType, ArgName, DefaultValue, DocString)
 Export a validator derived from a MatrixWorkspaceValidator that has a single-arg constructor with a default argument. More...
 
#define EXPORT_WKSP_VALIDATOR_NO_ARG(ValidatorType, DocString)    class_<ValidatorType, bases<MatrixWorkspaceValidator>, boost::noncopyable>(#ValidatorType, init<>(DocString));
 Export a validator derived from a MatrixWorkspaceValidator that has a no-arg constructor. More...
 

Functions

void export_MatrixWorkspaceValidator ()
 This is the base TypedValidator for most of the WorkspaceValidators. More...
 
void export_WorkspaceValidators ()
 

Macro Definition Documentation

◆ EXPORT_WKSP_VALIDATOR_ARG

#define EXPORT_WKSP_VALIDATOR_ARG (   ValidatorType,
  ArgType,
  ArgName,
  DocString 
)
Value:
class_<ValidatorType, bases<MatrixWorkspaceValidator>, boost::noncopyable>(#ValidatorType, \
init<ArgType>(arg(ArgName), DocString));

Export a validator derived from a MatrixWorkspaceValidator that has a single-arg constructor.

Definition at line 41 of file WorkspaceValidators.cpp.

◆ EXPORT_WKSP_VALIDATOR_DEFAULT_ARG

#define EXPORT_WKSP_VALIDATOR_DEFAULT_ARG (   ValidatorType,
  ArgType,
  ArgName,
  DefaultValue,
  DocString 
)
Value:
class_<ValidatorType, bases<MatrixWorkspaceValidator>, boost::noncopyable>( \
#ValidatorType, init<ArgType>(arg(ArgName) = DefaultValue, DocString));

Export a validator derived from a MatrixWorkspaceValidator that has a single-arg constructor with a default argument.

Definition at line 47 of file WorkspaceValidators.cpp.

◆ EXPORT_WKSP_VALIDATOR_NO_ARG

#define EXPORT_WKSP_VALIDATOR_NO_ARG (   ValidatorType,
  DocString 
)     class_<ValidatorType, bases<MatrixWorkspaceValidator>, boost::noncopyable>(#ValidatorType, init<>(DocString));

Export a validator derived from a MatrixWorkspaceValidator that has a no-arg constructor.

Definition at line 37 of file WorkspaceValidators.cpp.

Function Documentation

◆ export_MatrixWorkspaceValidator()

void export_MatrixWorkspaceValidator ( )

This is the base TypedValidator for most of the WorkspaceValidators.

Definition at line 24 of file WorkspaceValidators.cpp.

References Mantid::PythonInterface::TypedValidatorExporter< Type >::define().

◆ export_WorkspaceValidators()

void export_WorkspaceValidators ( )