Added destructors for the classes in order to use the PIMPL idiom with

uniqe_ptr
This commit is contained in:
2025-05-23 09:38:41 +02:00
parent 83aa437b6b
commit cd7cc75eb7
4 changed files with 17 additions and 0 deletions

View File

@ -20,6 +20,8 @@ void msgPrintControlKey::format(char *buffer, size_t bufferSize) {
// =============================================================================
msgPrintControl::~msgPrintControl() = default;
bool msgPrintControl::shouldBePrinted(msgPrintControlKey &key, bool wantToPrint,
asynUser *pasynUser) {

View File

@ -84,6 +84,12 @@ template <> struct hash<msgPrintControlKey> {
*/
class msgPrintControl {
public:
/**
* @brief Destroy the msgPrintControl object
*
*/
~msgPrintControl();
/**
* @brief Checks if the error message associated with "key" has been printed
* more than `this->maxRepetitions_` times in a row. If yes, returns false,

View File

@ -337,6 +337,8 @@ sinqAxis::sinqAxis(class sinqController *pC, int axisNo)
}
}
sinqAxis::~sinqAxis() = default;
asynStatus sinqAxis::poll(bool *moving) {
// Local variable declaration

View File

@ -24,6 +24,13 @@ class epicsShareClass sinqAxis : public asynMotorAxis {
*/
sinqAxis(class sinqController *pC_, int axisNo);
/**
* @brief Destroy the sinqAxis object
*
* This destructor is necessary in order to use the PIMPL idiom.
*/
~sinqAxis();
/**
* @brief Perform some standardized operations before and after the concrete
`doPoll` implementation.