* Read messages from BMP stream in a loop * * \param [in] run Reference to bool to indicate if loop should continue or not * \param [in] client Client information pointer * \param [in] mbus_ptr The database pointer referencer - DB should be already initialized * * \return true if more to read, false if the connection is done/closed * * \throw (char const *str) message i
| 70 | * \throw (char const *str) message indicate error |
| 71 | */ |
| 72 | void BMPReader::readerThreadLoop(bool &run, BMPListener::ClientInfo *client, MsgBusInterface *mbus_ptr) { |
| 73 | while (run) { |
| 74 | |
| 75 | try { |
| 76 | if (not ReadIncomingMsg(client, mbus_ptr)) |
| 77 | break; |
| 78 | |
| 79 | } catch (char const *str) { |
| 80 | run = false; |
| 81 | break; |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Read messages from BMP stream |
nothing calls this directly
no outgoing calls
no test coverage detected