12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef MODULECOMM_FASTRTPS_H
- #define MODULECOMM_FASTRTPS_H
- #include <QtCore/qglobal.h>
- #include <QDateTime>
- #include <functional>
- #if defined(MODULECOMM_FASTRTPS_LIBRARY)
- # define MODULECOMMFASTRTPSSHARED_EXPORT Q_DECL_EXPORT
- #else
- # define MODULECOMMFASTRTPSSHARED_EXPORT Q_DECL_IMPORT
- #endif
- //#include <iostream>
- //#include <thread>
- //using namespace std::placeholders;
- typedef std::function<void(const char * ,const unsigned int , const unsigned int , QDateTime * ,const char *)> 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
|