Mantid
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
Mantid::Kernel::DeltaEMode Struct Reference

Defines the possible energy transfer modes: More...

#include <DeltaEMode.h>

Public Types

enum  Type { Elastic = 0 , Direct = 1 , Indirect = 2 , Undefined }
 Define the available energy transfer modes It is important to assign enums proper numbers, until direct correspondence between enums and their emodes used by the external units conversion algorithms within the Mantid, so the agreement should be the stame
More...
 

Static Public Member Functions

static std::string asString (const Type mode)
 Return a string representation of the given mode. More...
 
static const std::vector< std::string > availableTypes ()
 Returns the string list of available modes. More...
 
static Type fromString (const std::string &modeStr)
 Returns the emode from the given string. More...
 

Detailed Description

Defines the possible energy transfer modes:

Definition at line 23 of file DeltaEMode.h.

Member Enumeration Documentation

◆ Type

Define the available energy transfer modes It is important to assign enums proper numbers, until direct correspondence between enums and their emodes used by the external units conversion algorithms within the Mantid, so the agreement should be the stame

Enumerator
Elastic 
Direct 
Indirect 
Undefined 

this mode should not be displayed among modes availible to select but may have string representation

Definition at line 29 of file DeltaEMode.h.

Member Function Documentation

◆ asString()

std::string Mantid::Kernel::DeltaEMode::asString ( const Type  mode)
static

Return a string representation of the given mode.

Parameters
modeAn enumeration of an energy transfer mode
Returns
The string representation

Definition at line 52 of file DeltaEMode.cpp.

Referenced by Mantid::Algorithms::DiscusMultipleScatteringCorrection::exec(), export_DeltaEMode(), Mantid::MDAlgorithms::MDWSDescription::getEModeStr(), and Mantid::Algorithms::SparseWorkspace::SparseWorkspace().

◆ availableTypes()

const std::vector< std::string > Mantid::Kernel::DeltaEMode::availableTypes ( )
static

◆ fromString()

DeltaEMode::Type Mantid::Kernel::DeltaEMode::fromString ( const std::string &  modeStr)
static

The documentation for this struct was generated from the following files: