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.

32 lines
947 B

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 ): basicEventHandler(), basicObject(){
  4. m_pLog = basicLogCollection::getInstance();
  5. m_pLog->Log( "KMODULE", this, "Constructor Begin" );
  6. m_pDBC = argusDBC::getInstance();
  7. m_pKernel = argusKernel::getInstance();
  8. m_eType = param;
  9. m_nDBID = id;
  10. m_bDetached = false;
  11. m_bEnabled = false;
  12. m_nDBAUXID = 0;
  13. // Clear Events flags
  14. if( m_pDBC ) {
  15. DBC_MODULE_DATA *tData = NULL;
  16. tData = m_pDBC->getModuleData( m_nDBID );
  17. if( tData ) {
  18. m_nDBAUXID = tData->aux_id;
  19. m_bEnabled = tData->enabled;
  20. free( tData );
  21. };
  22. };
  23. for( int i = 0; i < EVT_COUNT; i++ ) m_bEvtFlags[i] = false;
  24. m_pLog->Log( "KMODULE", this, "Constructor End" );
  25. };
  26. argusKernelModule::~argusKernelModule(){
  27. };