Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mantid::DataObjects::PeakShapeDetectorBinFactory Class Reference

PeakShapeDetectorBinFactory : Factory for DetectorBin peak shapes for de-serializing from JSON. More...

#include <PeakShapeDetectorBinFactory.h>

Inheritance diagram for Mantid::DataObjects::PeakShapeDetectorBinFactory:
Mantid::DataObjects::PeakShapeFactory

Public Member Functions

Mantid::Geometry::PeakShapecreate (const std::string &source) const override
 Make product.
 
void setSuccessor (PeakShapeFactory_const_sptr successorFactory) override
 Set a successor should this factory be unsuitable.
 
- Public Member Functions inherited from Mantid::DataObjects::PeakShapeFactory
virtual void setSuccessor (std::shared_ptr< const PeakShapeFactory > successorFactory)=0
 Set the successor factory.
 
virtual ~PeakShapeFactory ()=default
 Destructor.
 

Private Attributes

PeakShapeFactory_const_sptr m_successor
 Successor factory.
 

Detailed Description

PeakShapeDetectorBinFactory : Factory for DetectorBin peak shapes for de-serializing from JSON.

Definition at line 22 of file PeakShapeDetectorBinFactory.h.

Member Function Documentation

◆ create()

Mantid::Geometry::PeakShape * Mantid::DataObjects::PeakShapeDetectorBinFactory::create ( const std::string &  source) const
overridevirtual

Make product.

Create the PeakShapeDetectorBin.

Parameters
source: source JSON
Returns
PeakShape via this factory or it's successors

Implements Mantid::DataObjects::PeakShapeFactory.

Definition at line 24 of file PeakShapeDetectorBinFactory.cpp.

References Mantid::DataObjects::PeakShapeDetectorBin::detectorBinShapeName(), detectorList, index, and m_successor.

◆ setSuccessor()

void Mantid::DataObjects::PeakShapeDetectorBinFactory::setSuccessor ( PeakShapeFactory_const_sptr  successorFactory)
override

Set a successor should this factory be unsuitable.

Set successor.

Parameters
successorFactory: successor

Definition at line 63 of file PeakShapeDetectorBinFactory.cpp.

References m_successor.

Member Data Documentation

◆ m_successor

PeakShapeFactory_const_sptr Mantid::DataObjects::PeakShapeDetectorBinFactory::m_successor
private

Successor factory.

Definition at line 31 of file PeakShapeDetectorBinFactory.h.

Referenced by create(), and setSuccessor().


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