Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include <optional> 7 : #include <string> 8 : 9 : namespace Cce { 10 : /// @{ 11 : /*! 12 : * \brief Retrieves the extraction radius from the specified file name. 13 : * 14 : * \details We assume that the filename has the extraction radius encoded as an 15 : * integer between the last occurrence of 'R' and the last occurrence of '.'. 16 : * This is the format provided by SpEC. 17 : */ 18 1 : std::string get_text_radius(const std::string& cce_data_filename); 19 : 20 1 : std::optional<double> get_extraction_radius( 21 : const std::string& cce_data_filename, 22 : const std::optional<double>& extraction_radius, bool error = true); 23 : /// @} 24 : } // namespace Cce