From 0284c653e597b6f6e9faa3fc6802b8d4cc609f57 Mon Sep 17 00:00:00 2001 From: Anthony Romaniello <66272872+aromanielloNTIA@users.noreply.github.com> Date: Wed, 13 Nov 2024 14:01:53 -0500 Subject: [PATCH] Rename GetDrvrReturnStatus to GetDrvrReturnStatusMsg --- app/include/ReturnCodes.h | 2 +- app/src/AeronauticalStatisticalModel.cpp | 2 +- app/src/Driver.cpp | 4 ++-- app/src/HeightGainTerminalCorrectionModel.cpp | 2 +- app/src/ReturnCodes.cpp | 2 +- app/src/TerrestrialStatisticalModel.cpp | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/include/ReturnCodes.h b/app/include/ReturnCodes.h index c70c48f..4195c68 100644 --- a/app/include/ReturnCodes.h +++ b/app/include/ReturnCodes.h @@ -36,4 +36,4 @@ enum DrvrReturnCode { }; // clang-format on -std::string GetDrvrReturnStatus(int code); +std::string GetDrvrReturnStatusMsg(int code); diff --git a/app/src/AeronauticalStatisticalModel.cpp b/app/src/AeronauticalStatisticalModel.cpp index a366529..ad556ec 100644 --- a/app/src/AeronauticalStatisticalModel.cpp +++ b/app/src/AeronauticalStatisticalModel.cpp @@ -68,7 +68,7 @@ DrvrReturnCode } if (rtn != DRVR__SUCCESS) { - std::cerr << GetDrvrReturnStatus(rtn) << std::endl; + std::cerr << GetDrvrReturnStatusMsg(rtn) << std::endl; return rtn; } ++it; diff --git a/app/src/Driver.cpp b/app/src/Driver.cpp index f55ac0e..89a8b45 100644 --- a/app/src/Driver.cpp +++ b/app/src/Driver.cpp @@ -73,7 +73,7 @@ int main(int argc, char **argv) { // Return driver error code if one was returned if (rtn > DRVR__RETURN_SUCCESS) { - std::cerr << GetDrvrReturnStatus(rtn) << std::endl; + std::cerr << GetDrvrReturnStatusMsg(rtn) << std::endl; return rtn; } @@ -241,7 +241,7 @@ DrvrReturnCode ValidateInputs(const DrvrParams ¶ms) { rtn = DRVRERR__VALIDATION_MODEL; if (rtn != DRVR__SUCCESS) - std::cerr << GetDrvrReturnStatus(rtn) << std::endl; + std::cerr << GetDrvrReturnStatusMsg(rtn) << std::endl; return rtn; } diff --git a/app/src/HeightGainTerminalCorrectionModel.cpp b/app/src/HeightGainTerminalCorrectionModel.cpp index 91635af..1583e55 100644 --- a/app/src/HeightGainTerminalCorrectionModel.cpp +++ b/app/src/HeightGainTerminalCorrectionModel.cpp @@ -88,7 +88,7 @@ DrvrReturnCode } if (rtn != DRVR__SUCCESS) { - std::cerr << GetDrvrReturnStatus(rtn) << std::endl; + std::cerr << GetDrvrReturnStatusMsg(rtn) << std::endl; return rtn; } ++it; diff --git a/app/src/ReturnCodes.cpp b/app/src/ReturnCodes.cpp index d664f04..c9ca463 100644 --- a/app/src/ReturnCodes.cpp +++ b/app/src/ReturnCodes.cpp @@ -13,7 +13,7 @@ * @param[in] code Driver return code. * @return A status message corresponding to the input code. ******************************************************************************/ -std::string GetDrvrReturnStatus(int code) { +std::string GetDrvrReturnStatusMsg(int code) { static const std::unordered_map messages = {{DRVR__SUCCESS, "Successful execution"}, {DRVR__RETURN_SUCCESS, "Internal driver success"}, diff --git a/app/src/TerrestrialStatisticalModel.cpp b/app/src/TerrestrialStatisticalModel.cpp index dc10ce9..1489910 100644 --- a/app/src/TerrestrialStatisticalModel.cpp +++ b/app/src/TerrestrialStatisticalModel.cpp @@ -68,7 +68,7 @@ DrvrReturnCode } if (rtn != DRVR__SUCCESS) { - std::cerr << GetDrvrReturnStatus(rtn) << std::endl; + std::cerr << GetDrvrReturnStatusMsg(rtn) << std::endl; return rtn; } ++it;