Added destructors for the classes in order to use the PIMPL idiom with
uniqe_ptr
This commit is contained in:
@ -20,6 +20,8 @@ void msgPrintControlKey::format(char *buffer, size_t bufferSize) {
|
|||||||
|
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
|
|
||||||
|
msgPrintControl::~msgPrintControl() = default;
|
||||||
|
|
||||||
bool msgPrintControl::shouldBePrinted(msgPrintControlKey &key, bool wantToPrint,
|
bool msgPrintControl::shouldBePrinted(msgPrintControlKey &key, bool wantToPrint,
|
||||||
asynUser *pasynUser) {
|
asynUser *pasynUser) {
|
||||||
|
|
||||||
|
@ -84,6 +84,12 @@ template <> struct hash<msgPrintControlKey> {
|
|||||||
*/
|
*/
|
||||||
class msgPrintControl {
|
class msgPrintControl {
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* @brief Destroy the msgPrintControl object
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
~msgPrintControl();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Checks if the error message associated with "key" has been printed
|
* @brief Checks if the error message associated with "key" has been printed
|
||||||
* more than `this->maxRepetitions_` times in a row. If yes, returns false,
|
* more than `this->maxRepetitions_` times in a row. If yes, returns false,
|
||||||
|
@ -337,6 +337,8 @@ sinqAxis::sinqAxis(class sinqController *pC, int axisNo)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sinqAxis::~sinqAxis() = default;
|
||||||
|
|
||||||
asynStatus sinqAxis::poll(bool *moving) {
|
asynStatus sinqAxis::poll(bool *moving) {
|
||||||
|
|
||||||
// Local variable declaration
|
// Local variable declaration
|
||||||
|
@ -24,6 +24,13 @@ class epicsShareClass sinqAxis : public asynMotorAxis {
|
|||||||
*/
|
*/
|
||||||
sinqAxis(class sinqController *pC_, int axisNo);
|
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
|
* @brief Perform some standardized operations before and after the concrete
|
||||||
`doPoll` implementation.
|
`doPoll` implementation.
|
||||||
|
Reference in New Issue
Block a user