|
Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
|
Stateless utility class providing functional parsing and validation rules. More...
#include <ValidationRuleService.hpp>
Static Public Member Functions | |
| static std::expected< float, std::string > | parsePositiveFloat (std::string_view str) |
| Parses and validates a positive floating point value (> 0). | |
| static std::expected< float, std::string > | parseNonNegativeFloat (std::string_view str) |
| Parses and validates a non-negative floating point value (>= 0). | |
| static std::expected< int, std::string > | parsePositiveInt (std::string_view str) |
| Parses and validates a positive integer value (> 0). | |
| static std::expected< int, std::string > | parseMinFrame (std::string_view frame_s, int total_frames) |
| Parses starting frame input ("Start", "End", or 1-based numeric). | |
| static std::expected< int, std::string > | parseMaxFrame (std::string_view frame_s, int total_frames) |
| Parses ending frame input ("End", "Start", or 1-based numeric). | |
| static std::expected< int, std::string > | parseFrameStride (std::string_view stride_s) |
| Parses frame stride input (positive integer >= 1). | |
| static std::expected< void, std::string > | validateBinWithinMax (float bin_val, float max_val, std::string_view max_label) |
| Validates that a histogram bin width does not exceed its maximum cutoff. | |
| static std::expected< void, std::string > | validateAngleDegrees (float angle_val) |
| Validates that an angular bin width does not exceed 180 degrees. | |
| static std::expected< void, std::string > | validateXrdTheta (float theta_min, float theta_max) |
| Validates X-ray diffraction 2-theta minimum and maximum angular bounds. | |
| static std::expected< void, std::string > | validateMaxCutoff (float r_max, float max_ceiling=50.0F) |
| Validates that a cutoff radius does not exceed the safe maximum ceiling. | |
Stateless utility class providing functional parsing and validation rules.
|
staticnodiscard |
Parses frame stride input (positive integer >= 1).
| [in] | stride_s | Input text string. |


|
staticnodiscard |
Parses ending frame input ("End", "Start", or 1-based numeric).
| [in] | frame_s | Input text string. |
| [in] | total_frames | Total number of available frames in trajectory. |


|
staticnodiscard |
Parses starting frame input ("Start", "End", or 1-based numeric).
| [in] | frame_s | Input text string. |
| [in] | total_frames | Total number of available frames in trajectory. |


|
staticnodiscard |
Parses and validates a non-negative floating point value (>= 0).
| [in] | str | Input text to parse. |

|
staticnodiscard |
Parses and validates a positive floating point value (> 0).
| [in] | str | Input text to parse. |

|
staticnodiscard |
Parses and validates a positive integer value (> 0).
| [in] | str | Input text to parse. |

|
staticnodiscard |
Validates that an angular bin width does not exceed 180 degrees.
| [in] | angle_val | Evaluated angle in degrees. |

|
staticnodiscard |
Validates that a histogram bin width does not exceed its maximum cutoff.
| [in] | bin_val | Evaluated bin width. |
| [in] | max_val | Evaluated maximum cutoff. |
| [in] | max_label | Name of the maximum property (e.g. "r_max", "q_max"). |

|
staticnodiscard |
Validates that a cutoff radius does not exceed the safe maximum ceiling.
| [in] | r_max | Evaluated cutoff radius in Angstroms. |
| [in] | max_ceiling | Maximum allowable cutoff radius ceiling in Angstroms (default: 50.0). |

|
staticnodiscard |
Validates X-ray diffraction 2-theta minimum and maximum angular bounds.
| [in] | theta_min | Evaluated minimum 2-theta angle. |
| [in] | theta_max | Evaluated maximum 2-theta angle. |
