Skip to content

Commit

Permalink
Rename GetDrvrReturnStatus to GetDrvrReturnStatusMsg
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Nov 13, 2024
1 parent 352cf6f commit 0284c65
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/include/ReturnCodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ enum DrvrReturnCode {
};
// clang-format on

std::string GetDrvrReturnStatus(int code);
std::string GetDrvrReturnStatusMsg(int code);
2 changes: 1 addition & 1 deletion app/src/AeronauticalStatisticalModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ DrvrReturnCode
}

if (rtn != DRVR__SUCCESS) {
std::cerr << GetDrvrReturnStatus(rtn) << std::endl;
std::cerr << GetDrvrReturnStatusMsg(rtn) << std::endl;
return rtn;
}
++it;
Expand Down
4 changes: 2 additions & 2 deletions app/src/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -241,7 +241,7 @@ DrvrReturnCode ValidateInputs(const DrvrParams &params) {
rtn = DRVRERR__VALIDATION_MODEL;

if (rtn != DRVR__SUCCESS)
std::cerr << GetDrvrReturnStatus(rtn) << std::endl;
std::cerr << GetDrvrReturnStatusMsg(rtn) << std::endl;

return rtn;
}
2 changes: 1 addition & 1 deletion app/src/HeightGainTerminalCorrectionModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ DrvrReturnCode
}

if (rtn != DRVR__SUCCESS) {
std::cerr << GetDrvrReturnStatus(rtn) << std::endl;
std::cerr << GetDrvrReturnStatusMsg(rtn) << std::endl;
return rtn;
}
++it;
Expand Down
2 changes: 1 addition & 1 deletion app/src/ReturnCodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<DrvrReturnCode, std::string> messages
= {{DRVR__SUCCESS, "Successful execution"},
{DRVR__RETURN_SUCCESS, "Internal driver success"},
Expand Down
2 changes: 1 addition & 1 deletion app/src/TerrestrialStatisticalModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ DrvrReturnCode
}

if (rtn != DRVR__SUCCESS) {
std::cerr << GetDrvrReturnStatus(rtn) << std::endl;
std::cerr << GetDrvrReturnStatusMsg(rtn) << std::endl;
return rtn;
}
++it;
Expand Down

0 comments on commit 0284c65

Please sign in to comment.