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.

29 lines
805 B

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