Added PVs for error reset and status problem reporting and fixed a bug

in msgPrintControl
This commit is contained in:
2025-03-10 14:28:24 +01:00
parent ca7bede4b7
commit bed245b010
8 changed files with 90 additions and 16 deletions

View File

@@ -93,6 +93,9 @@ class msgPrintControl {
* identify individual messages
* @param wantToPrint If the message associated with key should be
* printed, this value should be true, otherwise false.
* @param pasynUser If the problem has been resolved (wantToPrint =
* false), a corresponding status message is printed using the given
* asynUser. If this pointer is a nullptr, no message is printed.
* @return bool If true, the message should be printed, if
* false, it should not.
*/
@@ -108,13 +111,22 @@ class msgPrintControl {
* @param fileName
* @param line
* @param wantToPrint
* @return true
* @return false
* @param pasynUser
*/
bool shouldBePrinted(char *controller, int axisNo, const char *functionName,
int line, bool wantToPrint, asynUser *pasynUser);
void resetCount(msgPrintControlKey &key);
/**
* @brief Reset the error message count incremented in shouldBePrinted for
* the given key
*
* @param key Key associated with the message, used to
* identify individual messages
* @param pasynUser If the problem has been resolved (wantToPrint =
* false), a corresponding status message is printed using the given
* asynUser. If this pointer is a nullptr, no message is printed.
*/
void resetCount(msgPrintControlKey &key, asynUser *pasynUser);
/**
* @brief Maximum number of times a message is printed before it is