SeekerSDKClient.h
Go to the documentation of this file.
1 // The following ifdef block is the standard way of creating macros which make exporting
2 // from a DLL simpler. All files within this DLL are compiled with the SEEKERSDKCLIENT_EXPORTS
3 // symbol defined on the command line. This symbol should not be defined on any project
4 // that uses this DLL. This way any other project whose source files include this file see
5 // SEEKERSDKCLIENT_API functions as being imported from a DLL, whereas this DLL sees symbols
6 // defined with this macro as being exported.
7 
8 #define _LINUX
9 //#define _WIN32
10 //ϵͳ����
11 #if defined(_WIN32)
12 #define SYSTEM_WIN32
13 #elif defined(_LINUX)
14 #define SYSTEM_LINUX
15 #else
16 #error "undefined system!"
17 #endif
18 
19 #ifdef SYSTEM_WIN32
20 #ifdef SEEKERSDKCLIENT_EXPORTS
21 #define SEEKERSDKCLIENT_API __declspec(dllexport)
22 #else
23 #define SEEKERSDKCLIENT_API __declspec(dllimport)
24 #endif
25 #elif defined(SYSTEM_LINUX)
26 #define SEEKERSDKCLIENT_API
27 #endif
28 
29 #include "SeekerSDKTypes.h"
30 
31 class ClientCore;
32 
33 // This class is exported from the SeekerSDKClient.dll
35 public:
37  ~SeekerSDKClient();
38 
39  int Initialize(char* szServerAddress);
40  int Uninitialize();
41  void SeekerSDKVersion(unsigned char Version[4]);
42  void SetVerbosityLevel(int level);
43 
44  int WaitForForcePlateInit(long time = 0);
45  int SetForcePlateCallback(void (*CallbackFunction)(sForcePlates* pForcePlate, void* pUserData), void* pUserData = 0);
46 
47  int SetDataCallback(void (*CallbackFunction)(sFrameOfMocapData* pFrameOfData, void* pUserData), void* pUserData=0);
48  int SetMessageCallback(void (*CallbackFunction)(int id, char *szTraceMessage));
49 
50  int GetServerDescription(sServerDescription *pServerDescription);
51 
52  int GetDataDescriptions(sDataDescriptions** pDataDescriptions);
53  int FreeDataDescriptions(sDataDescriptions* pDataDescriptions);
54 
55  bool DecodeTimecode(unsigned int inTimecode, unsigned int inTimecodeSubframe, int* hour, int* minute, int* second, int* frame, int* subframe);
56  bool TimecodeStringify(unsigned int inTimecode, unsigned int inTimecodeSubframe, char *Buffer, int BufferSize);
57 
58  int SeekerCopyFrame(const sFrameOfMocapData* pSrc, sFrameOfMocapData* pDst);
59  int SeekerFreeFrame(sFrameOfMocapData* pDst);
60  sFrameOfMocapData* GetLastFrameOfMocapData();
61 
62 
63 private:
64  ClientCore* m_pClientCore;
65 };
const std::string Version
#define SEEKERSDKCLIENT_API
ClientCore * m_pClientCore


mocap_nokov
Author(s):
autogenerated on Sat Sep 10 2022 02:45:32