#ifndef MODULECOMM_FASTRTPS_H #define MODULECOMM_FASTRTPS_H #include #include #include #if defined(MODULECOMM_FASTRTPS_LIBRARY) # define MODULECOMMFASTRTPSSHARED_EXPORT Q_DECL_EXPORT #else # define MODULECOMMFASTRTPSSHARED_EXPORT Q_DECL_IMPORT #endif //#include //#include //using namespace std::placeholders; typedef std::function ModuleFun; typedef void (* SMCallBack)(const char * strdata,const unsigned int nSize,const unsigned int index,const QDateTime * dt,const char * strmemname); namespace iv { namespace modulecomm_fastrtps { void * MODULECOMMFASTRTPSSHARED_EXPORT RegisterSend(const char * strcommname,const unsigned int nBufSize,const unsigned int nMsgBufCount); void * MODULECOMMFASTRTPSSHARED_EXPORT RegisterRecv(const char * strcommname,SMCallBack pCall); void * MODULECOMMFASTRTPSSHARED_EXPORT RegisterRecvPlus(const char * strcommname,ModuleFun xFun); void MODULECOMMFASTRTPSSHARED_EXPORT ModuleSendMsg(void * pHandle,const char * strdata,const unsigned int nDataLen); void MODULECOMMFASTRTPSSHARED_EXPORT Unregister(void * pHandle); void MODULECOMMFASTRTPSSHARED_EXPORT PauseComm(void * pHandle); void MODULECOMMFASTRTPSSHARED_EXPORT ContintuComm(void * pHandle); } } #endif