You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
750 B

5 years ago
5 years ago
​
​
​
​
5 years ago
​
5 years ago
​
5 years ago
​
​
​
​
​
​
​
​
  1. #include "rgooseHardwareResourceDryContactProvider.h"
  2. #define LOG( X ) m_pLog->Log( "HWR_DRYC", this, X )
  3. #ifdef DEBUG
  4. #define LOG_ERROR( X ) {\
  5. char _tBfrErrMSG2w34[256];\
  6. sprintf( _tBfrErrMSG2w34, "In file %s[%d] in func:%s %s",__FILE__, __LINE__, __func__, X );\
  7. m_pLog->Log( "HWR_DRYC", this, _LOG_ERROR, _tBfrErrMSG2w34 );\
  8. }
  9. #else
  10. #define LOG_ERROR( X ) m_pLog->Log( "HWR_DRYC", this, _LOG_ERROR, X );
  11. #endif
  12. argusHardwareResourceUSBDCB::argusHardwareResourceUSBDCB( uint32_t id ):argusHardwareResource( id, ARGUS_HARDWARE_PROVIDER_DRY_CONTACT ){
  13. };
  14. argusHardwareResourceUSBDCB::~argusHardwareResourceUSBDCB(){
  15. };
  16. #undef LOG
  17. #undef LOG_ERROR