|
mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
These functions are meant to be used by mxlib itself. You should use the non-internal versions, which don't start with mxlib_, in most other cases.
Namespaces | |
| namespace | mx::internal |
| Namespace for the internal error reporting functions. | |
Macros | |
| #define | mxlib_error_check(fxn) |
| Perform an error check, if an error occurs report it and return the error. Does not return on no error. | |
| #define | mxlib_error_return(fxn) |
| Perform an error check, if an error occurs report it, and return the error code even if no error. | |
Functions | |
| template<class verboseT = verbose::d> | |
| std::string | mx::internal::mxlib_error_message (const error_t &code, const std::string &expl, const std::source_location &loc=std::source_location::current()) |
| Format a report given an mxlib error_t code and explanation. | |
| template<> | |
| std::string | mx::internal::mxlib_error_message< mx::verbose::o > (const error_t &code, const std::string &expl, const std::source_location &loc) |
| Specialization of mxlib_error_message for verbose::o. | |
| template<> | |
| std::string | mx::internal::mxlib_error_message< mx::verbose::v > (const error_t &code, const std::string &expl, const std::source_location &loc) |
| Specialization of mxlib_error_message for verbose::v. | |
| template<> | |
| std::string | mx::internal::mxlib_error_message< mx::verbose::vv > (const error_t &code, const std::string &expl, const std::source_location &loc) |
| Specialization of mxlib_error_message for verbose::vv. | |
| template<> | |
| std::string | mx::internal::mxlib_error_message< mx::verbose::vvv > (const error_t &code, const std::string &expl, const std::source_location &loc) |
| Specialization of mxlib_error_message for verbose::vvv. | |
| template<class verboseT = verbose::d> | |
| std::string | mx::internal::mxlib_error_message (const error_t &code, const std::source_location &loc=std::source_location::current()) |
| Format a report given an mxlib error_t code. | |
| template<> | |
| std::string | mx::internal::mxlib_error_message< mx::verbose::o > (const error_t &code, const std::source_location &loc) |
| Specialization of mxlib_error_message for verbose::o. | |
| template<> | |
| std::string | mx::internal::mxlib_error_message< mx::verbose::v > (const error_t &code, const std::source_location &loc) |
| Specialization of mxlib_error_message for verbose::v. | |
| template<> | |
| std::string | mx::internal::mxlib_error_message< mx::verbose::vv > (const error_t &code, const std::source_location &loc) |
| Specialization of mxlib_error_message for verbose::vv. | |
| template<> | |
| std::string | mx::internal::mxlib_error_message< mx::verbose::vvv > (const error_t &code, const std::source_location &loc) |
| Specialization of mxlib_error_message for verbose::vvv. | |
| template<class verboseT = verbose::d> | |
| error_t | mx::internal::mxlib_error_report (const error_t &code, const std::string &expl, const std::source_location &loc=std::source_location::current()) |
Print a report to stderr given an mxlib error_t code and explanation and return the code. | |
| template<> | |
| error_t | mx::internal::mxlib_error_report< mx::verbose::o > (const error_t &code, const std::string &expl, const std::source_location &loc) |
| Specialization of mxlib_error_report for verbose::o. | |
| template<class verboseT = verbose::d> | |
| error_t | mx::internal::mxlib_error_report (const error_t &code, const std::source_location &loc=std::source_location::current()) |
Print a report to stderr given an mxlib error_t code and return the code. | |
| template<> | |
| error_t | mx::internal::mxlib_error_report< mx::verbose::o > (const error_t &code, const std::source_location &loc) |
| Specialization of mxlib_error_report for verbose::o. | |
| #define mxlib_error_check | ( | fxn | ) |
Perform an error check, if an error occurs report it and return the error. Does not return on no error.
Scope protected so the error_t value does not interfere with other values.
| fxn | is the function to call and check the return value of |
| #define mxlib_error_return | ( | fxn | ) |
Perform an error check, if an error occurs report it, and return the error code even if no error.
Scope protected so the error_t value does not interfere with other values.
| fxn | is the function to call and check the return value of |
| std::string mx::internal::mxlib_error_message | ( | const error_t & | code, |
| const std::source_location & | loc = std::source_location::current() |
||
| ) |
Format a report given an mxlib error_t code.
What is included depends on the verbosity level set by the template parameter This is for internal mxlib use, it includes mxlib in the vvv report.
| verboseT | sets the verbosity level based on its level member. |
| [in] | code | is an mx::error_t error code |
| [in] | loc | [opt] source location |
| std::string mx::internal::mxlib_error_message | ( | const error_t & | code, |
| const std::string & | expl, | ||
| const std::source_location & | loc = std::source_location::current() |
||
| ) |
Format a report given an mxlib error_t code and explanation.
What is included depends on the verbosity level set by the template parameter This is for internal mxlib use, it includes mxlib in the vvv report.
| verboseT | sets the verbosity level based on its level member. |
| [in] | code | is an mx::error_t error code |
| [in] | expl | [opt] if more information can be provided, use this to inform the user. |
| [in] | loc | [opt] source location |
Referenced by unitTest::errorTest::errorTest::TEST_CASE().
| std::string mx::internal::mxlib_error_message< mx::verbose::o > | ( | const error_t & | code, |
| const std::source_location & | loc | ||
| ) |
Specialization of mxlib_error_message for verbose::o.
| std::string mx::internal::mxlib_error_message< mx::verbose::o > | ( | const error_t & | code, |
| const std::string & | expl, | ||
| const std::source_location & | loc | ||
| ) |
Specialization of mxlib_error_message for verbose::o.
Referenced by unitTest::errorTest::errorTest::TEST_CASE().
| std::string mx::internal::mxlib_error_message< mx::verbose::v > | ( | const error_t & | code, |
| const std::source_location & | loc | ||
| ) |
Specialization of mxlib_error_message for verbose::v.
| std::string mx::internal::mxlib_error_message< mx::verbose::v > | ( | const error_t & | code, |
| const std::string & | expl, | ||
| const std::source_location & | loc | ||
| ) |
Specialization of mxlib_error_message for verbose::v.
Referenced by unitTest::errorTest::errorTest::TEST_CASE().
| std::string mx::internal::mxlib_error_message< mx::verbose::vv > | ( | const error_t & | code, |
| const std::source_location & | loc | ||
| ) |
Specialization of mxlib_error_message for verbose::vv.
| std::string mx::internal::mxlib_error_message< mx::verbose::vv > | ( | const error_t & | code, |
| const std::string & | expl, | ||
| const std::source_location & | loc | ||
| ) |
Specialization of mxlib_error_message for verbose::vv.
Referenced by unitTest::errorTest::errorTest::TEST_CASE().
| std::string mx::internal::mxlib_error_message< mx::verbose::vvv > | ( | const error_t & | code, |
| const std::source_location & | loc | ||
| ) |
Specialization of mxlib_error_message for verbose::vvv.
| std::string mx::internal::mxlib_error_message< mx::verbose::vvv > | ( | const error_t & | code, |
| const std::string & | expl, | ||
| const std::source_location & | loc | ||
| ) |
Specialization of mxlib_error_message for verbose::vvv.
Referenced by unitTest::errorTest::errorTest::TEST_CASE().
| error_t mx::internal::mxlib_error_report | ( | const error_t & | code, |
| const std::source_location & | loc = std::source_location::current() |
||
| ) |
Print a report to stderr given an mxlib error_t code and return the code.
What is printed depends on the verbosity level set by the template parameter This is for internal mxlib use, it includes mxlib in the vvv report.
| verboseT | sets the verbosity level based on its level member. |
code | [in] | code | is an mx::error_t error code |
| [in] | loc | [opt] source location |
Definition at line 369 of file error.hpp.
References mx::noerror.
| error_t mx::internal::mxlib_error_report | ( | const error_t & | code, |
| const std::string & | expl, | ||
| const std::source_location & | loc = std::source_location::current() |
||
| ) |
Print a report to stderr given an mxlib error_t code and explanation and return the code.
What is printed depends on the verbosity level set by the template parameter This is for internal mxlib use, it includes mxlib in the vvv report.
| verboseT | sets the verbosity level based on its level member. |
code | [in] | code | is an mx::error_t error code |
| [in] | expl | [opt] if more information can be provided, use this to inform the user. |
| [in] | loc | [opt] source location |
Definition at line 331 of file error.hpp.
References mx::noerror.
Referenced by mx::AO::analysis::aoAtmosphere< _realT >::checkLayers(), mx::wfp::circularPupil(), mx::improc::cutPaddedImage(), mx::math::eigenSYEVR(), mx::sigproc::fourierModeCoordinates(), mx::sigproc::fourierModeNumber(), mx::sigproc::frequencyGrid(), mx::sys::gitRepo::getGitFileState(), mx::sys::gitRepo::getGitHash(), mx::sys::gitRepo::getGitModified(), mx::sys::gitRepo::getGitName(), mx::sigproc::makeFourierMode(), mx::sigproc::makeFourierModeFreqs_Circ(), mx::sigproc::makeFourierModeFreqs_PandV(), mx::sigproc::makeModifiedFourierMode(), mx::sigproc::noll_nm(), mx::improc::imageXCorrDiscrete< _ccImT >::operator()(), mx::AO::analysis::aoSystem< _realT, _inputSpectT, iosT >::optimumTauWFS(), mx::improc::imageXCorrFFT< _realImageT >::padFactor(), mx::improc::padImage(), mx::math::randomSeed(), mx::ioutils::readBinVector(), mx::app::appConfigurator::readConfig(), mx::improc::imageXCorrDiscrete< _ccImT >::refIm(), mx::improc::imageXCorrFFT< _realImageT >::refIm(), mx::improc::imageXCorrFFT< _realImageT >::resize(), mx::ipc::runCommand(), mx::math::fit::array2FitGaussian2D< realT >::setFixed(), mx::AO::analysis::fourierTemporalPSD< _realT, aosysT >::singleLayerPSD(), unitTest::errorTest::errorTest::TEST_CASE(), mx::ioutils::writeBinVector(), mx::sigproc::zernikeQNorm(), mx::sigproc::zernikeR(), and mx::sigproc::zernikeRCoeffs().
| error_t mx::internal::mxlib_error_report< mx::verbose::o > | ( | const error_t & | code, |
| const std::source_location & | loc | ||
| ) |
Specialization of mxlib_error_report for verbose::o.
| error_t mx::internal::mxlib_error_report< mx::verbose::o > | ( | const error_t & | code, |
| const std::string & | expl, | ||
| const std::source_location & | loc | ||
| ) |
Specialization of mxlib_error_report for verbose::o.
Referenced by unitTest::errorTest::errorTest::TEST_CASE().