#pragma once
|
#include <vector>
|
#include "IServo.h"
|
#include "IUnit.h"
|
#include "IEquipment.h"
|
#include "IRemoteEquipment.h"
|
|
#ifdef _COMPILE_AS_LIB
|
#warning "compiling as lib!"
|
#else
|
#ifdef _DEBUG
|
#ifndef _WIN64
|
#pragma comment(lib, "../BEQibrarySDK/lib/Win32/Debug/BEQ.lib")
|
#else
|
#pragma comment(lib, "../BEQLibrarySDK/lib/x64/Debug/BEQ.lib")
|
#endif
|
#else
|
#ifndef _WIN64
|
#pragma comment(lib, "../BEQLibrarySDK/lib/Win32/Release/BEQ.lib")
|
#else
|
#pragma comment(lib, "../BEQLibrarySDK/lib/x64/Release/BEQ.lib")
|
#endif
|
#endif
|
#endif // !BUILD_AS_LIB
|
|
///////////////////////////////////////////////////////////////////////////////////
|
//// Define C linkage if using a C++ compiler
|
///////////////////////////////////////////////////////////////////////////////////
|
#ifdef __cplusplus
|
extern "C" {
|
#endif
|
|
///////////////////////////////////////////////////////////////////////////////////
|
//// Determine callling convention baesd on compiler
|
///////////////////////////////////////////////////////////////////////////////////
|
#ifdef __BORLANDC__
|
|
#ifdef __WIN32__
|
#define EXPORTED __declspec(dllexport) __stdcall
|
#else
|
#define EXPORTED FAR PASCAL __export
|
#endif // WIN32
|
|
#else // __BORLANDC__
|
|
|
#ifdef WIN32
|
#define EXPORTED __declspec(dllexport)
|
#else
|
#define EXPORTED FAR PASCAL __export
|
#endif // WIN32
|
|
#endif //__BORLANDC__
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
//// µ¼³öº¯Êý
|
////////////////////////////////////////////////////////////////////////////////////
|
int EXPORTED BEQ_Initialize();
|
int EXPORTED BEQ_Term();
|
int EXPORTED BEQ_CreateServo(BEQ::IServo*& pServo, const char* pszName);
|
int EXPORTED BEQ_GetServo(BEQ::IServo*& pServo, const char* pszName);
|
int EXPORTED BEQ_DestroyServo(BEQ::IServo* pServo);
|
int EXPORTED BEQ_CreateEquipment(BEQ::IEquipment*& pEquipment, const char* pszName);
|
int EXPORTED BEQ_GetEquipment(BEQ::IEquipment*& pEquipment, const char* pszName);
|
int EXPORTED BEQ_DestroyEquipment(BEQ::IEquipment*& pEquipment);
|
|
#ifdef __cplusplus
|
};
|
|
#endif //__cplusplus
|