modulecomm_shm.h 662 B

12345678910111213141516171819202122232425262728
  1. #ifndef MODULECOMM_SHM_H
  2. #define MODULECOMM_SHM_H
  3. #include "modulecomm_base.h"
  4. namespace iv {
  5. class modulecomm_shm : public modulecomm_base
  6. {
  7. public:
  8. modulecomm_shm();
  9. void RegisterSend(const char * strcommname,const unsigned int nBufSize,const unsigned int nMsgBufCount);
  10. void RegisterRecv(const char * strcommname,SMCallBack pCall);
  11. void RegisterRecvPlus(const char * strcommname,ModuleFun xFun);
  12. virtual void ModuleSendMsg(const char * strdata,const unsigned int nDataLen);
  13. virtual void Unregister();
  14. virtual void PauseComm();
  15. virtual void ContintuComm();
  16. private :
  17. void * mpif = 0;
  18. };
  19. }
  20. #endif // MODULECOMM_SHM_H