Mantid
Loading...
Searching...
No Matches
Protected Member Functions | List of all members
Mantid::Geometry::UnitCellStringValidator Class Reference

Helper class for validating unit cell strings. More...

#include <BraggScattererInCrystalStructure.h>

Inheritance diagram for Mantid::Geometry::UnitCellStringValidator:

Protected Member Functions

std::string checkValidity (const std::string &unitCellString) const override
 Check if the string is valid input for Geometry::strToUnitCell. More...
 
Kernel::IValidator_sptr clone () const override
 Return a clone of the validator. More...
 

Detailed Description

Helper class for validating unit cell strings.

This validator checks whether a string consists of either 3 or 6 numbers, possibly floating point numbers. It's required for the unit cell string property.

Definition at line 69 of file BraggScattererInCrystalStructure.h.

Member Function Documentation

◆ checkValidity()

std::string Mantid::Geometry::UnitCellStringValidator::checkValidity ( const std::string &  unitCellString) const
overrideprotected

Check if the string is valid input for Geometry::strToUnitCell.

Definition at line 105 of file BraggScattererInCrystalStructure.cpp.

◆ clone()

IValidator_sptr Mantid::Geometry::UnitCellStringValidator::clone ( ) const
overrideprotected

Return a clone of the validator.

Definition at line 102 of file BraggScattererInCrystalStructure.cpp.


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