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.

28 lines
802 B

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #include "rgooseModule.h"
  2. argusKernelModule::argusKernelModule( uint32_t id, ARGUS_MODULE_TYPE param ): basicEventHandler(), basicObject(){
  3. m_pLog = basicLogCollection::getInstance();
  4. m_pDBC = mojoDBC::getInstance();
  5. m_pKernel = mojoKernel::getInstance();
  6. m_eType = param;
  7. m_nDBID = id;
  8. m_bDetached = false;
  9. m_bEnabled = false;
  10. m_nDBAUXID = 0;
  11. // Clear Events flags
  12. if( m_pDBC ) {
  13. DBC_MODULE_DATA *tData = NULL;
  14. tData = m_pDBC->getModuleData( m_nDBID );
  15. if( tData ) {
  16. m_nDBAUXID = tData->aux_id;
  17. m_bEnabled = tData->enabled;
  18. free( tData );
  19. };
  20. };
  21. for( int i = 0; i < EVT_COUNT; i++ ) m_bEvtFlags[i] = false;
  22. };
  23. argusKernelModule::~argusKernelModule(){
  24. };