msvc_bridge.h
Go to the documentation of this file.
00001 #ifndef __MSVC_BRIDGE_H__
00002 #define __MSVC_BRIDGE_H__
00003 
00004 #ifdef WIN32
00005 #ifdef _EXPORTING
00006    #define FUN_DECLSPEC    __declspec(dllexport)
00007 #else
00008    #define FUN_DECLSPEC    __declspec(dllimport)
00009 #endif // _EXPORTING
00010 
00011 #else
00012 
00013 #define FUN_DECLSPEC
00014 
00015 #endif
00016 
00017 #include <Client.h>
00018 
00019 /***
00020  * This was the desperate try to get this compiled for windows so that it can be executed on the PC running Tracker.
00021  * Mingw doesn't like the datastreamsdk lib for windows which is compiled with visual studio, so this was meant as a bridging library ...
00022  */
00023 
00024 namespace msvcbridge{
00025 
00026         extern ViconDataStreamSDK::CPP::Client client;
00027 
00028         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetVersion  GetVersion() ;
00029 
00030         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_Connect     Connect( const ViconDataStreamSDK::CPP::String & HostName );
00031         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_ConnectToMulticast ConnectToMulticast( const ViconDataStreamSDK::CPP::String & HostName, const ViconDataStreamSDK::CPP::String & MulticastIP );
00032         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_Disconnect  Disconnect();
00033         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_IsConnected IsConnected() ;
00034         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_StartTransmittingMulticast StartTransmittingMulticast( const ViconDataStreamSDK::CPP::String & ServerIP,
00035                                                                           const ViconDataStreamSDK::CPP::String & MulticastIP );
00036 
00037         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_StopTransmittingMulticast StopTransmittingMulticast();
00038 
00039         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_EnableSegmentData         EnableSegmentData();
00040         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_EnableMarkerData          EnableMarkerData();
00041         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_EnableUnlabeledMarkerData EnableUnlabeledMarkerData();
00042         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_EnableDeviceData          EnableDeviceData();
00043 
00044         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_DisableSegmentData         DisableSegmentData();
00045         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_DisableMarkerData          DisableMarkerData();
00046         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_DisableUnlabeledMarkerData DisableUnlabeledMarkerData();
00047         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_DisableDeviceData          DisableDeviceData();
00048 
00049         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_IsSegmentDataEnabled         IsSegmentDataEnabled() ;
00050         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_IsMarkerDataEnabled          IsMarkerDataEnabled() ;
00051         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_IsUnlabeledMarkerDataEnabled IsUnlabeledMarkerDataEnabled() ;
00052         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_IsDeviceDataEnabled          IsDeviceDataEnabled() ;
00053 
00054         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_SetStreamMode SetStreamMode( const ViconDataStreamSDK::CPP::StreamMode::Enum Mode );
00055 
00056         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_SetAxisMapping SetAxisMapping( const ViconDataStreamSDK::CPP::Direction::Enum XAxis, const ViconDataStreamSDK::CPP::Direction::Enum YAxis, const ViconDataStreamSDK::CPP::Direction::Enum ZAxis );
00057         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetAxisMapping GetAxisMapping() ;
00058 
00059         FUN_DECLSPEC ViconDataStreamSDK::CPP::Output_GetFrame GetFrame();
00060         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetFrameNumber GetFrameNumber() ;
00061 
00062         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetTimecode GetTimecode() ;
00063 
00064         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetLatencySampleCount GetLatencySampleCount() ;
00065         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetLatencySampleName  GetLatencySampleName( const unsigned int LatencySampleIndex ) ;
00066         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetLatencySampleValue GetLatencySampleValue( const ViconDataStreamSDK::CPP::String & LatencySampleName ) ;
00067         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetLatencyTotal       GetLatencyTotal() ;
00068 
00069         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSubjectCount GetSubjectCount() ;
00070         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSubjectName GetSubjectName( const unsigned int SubjectIndex ) ;
00071 
00072         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSubjectRootSegmentName GetSubjectRootSegmentName( const ViconDataStreamSDK::CPP::String & SubjectName ) ;
00073 
00074         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentCount GetSegmentCount( const ViconDataStreamSDK::CPP::String  & SubjectName ) ;
00075 
00076         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentName GetSegmentName( const ViconDataStreamSDK::CPP::String       & SubjectName,
00077                                                   const unsigned int   SegmentIndex ) ;
00078 
00079         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentChildCount GetSegmentChildCount( const ViconDataStreamSDK::CPP::String & SubjectName,
00080                                                               const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00081 
00082         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentChildName GetSegmentChildName( const ViconDataStreamSDK::CPP::String       & SubjectName,
00083                                                             const ViconDataStreamSDK::CPP::String       & SegmentName,
00084                                                             const unsigned int   SegmentIndex ) ;
00085 
00086         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentParentName GetSegmentParentName( const ViconDataStreamSDK::CPP::String & SubjectName,
00087                                                               const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00088 
00089         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentStaticTranslation GetSegmentStaticTranslation( const ViconDataStreamSDK::CPP::String & SubjectName,
00090                                                                             const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00091 
00092         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentStaticRotationHelical GetSegmentStaticRotationHelical( const ViconDataStreamSDK::CPP::String & SubjectName,
00093                                                                                     const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00094 
00095         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentStaticRotationMatrix GetSegmentStaticRotationMatrix( const ViconDataStreamSDK::CPP::String & SubjectName,
00096                                                                                   const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00097 
00098         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentStaticRotationQuaternion GetSegmentStaticRotationQuaternion( const ViconDataStreamSDK::CPP::String & SubjectName,
00099                                                                                           const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00100 
00101         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentStaticRotationEulerXYZ GetSegmentStaticRotationEulerXYZ( const ViconDataStreamSDK::CPP::String & SubjectName,
00102                                                                                       const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00103 
00104         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentGlobalTranslation GetSegmentGlobalTranslation( const ViconDataStreamSDK::CPP::String & SubjectName,
00105                                                                             const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00106 
00107         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentGlobalRotationHelical GetSegmentGlobalRotationHelical( const ViconDataStreamSDK::CPP::String & SubjectName,
00108                                                                                     const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00109 
00110         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentGlobalRotationMatrix GetSegmentGlobalRotationMatrix( const ViconDataStreamSDK::CPP::String & SubjectName,
00111                                                                                   const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00112 
00113         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentGlobalRotationQuaternion GetSegmentGlobalRotationQuaternion( const ViconDataStreamSDK::CPP::String & SubjectName,
00114                                                                                           const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00115 
00116         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentGlobalRotationEulerXYZ GetSegmentGlobalRotationEulerXYZ( const ViconDataStreamSDK::CPP::String & SubjectName,
00117                                                                                       const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00118 
00119         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentLocalTranslation GetSegmentLocalTranslation( const ViconDataStreamSDK::CPP::String & SubjectName,
00120                                                                           const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00121 
00122         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentLocalRotationHelical GetSegmentLocalRotationHelical( const ViconDataStreamSDK::CPP::String & SubjectName,
00123                                                                                   const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00124 
00125         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentLocalRotationMatrix GetSegmentLocalRotationMatrix( const ViconDataStreamSDK::CPP::String & SubjectName,
00126                                                                                 const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00127 
00128         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentLocalRotationQuaternion GetSegmentLocalRotationQuaternion( const ViconDataStreamSDK::CPP::String & SubjectName,
00129                                                                                         const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00130 
00131         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetSegmentLocalRotationEulerXYZ GetSegmentLocalRotationEulerXYZ( const ViconDataStreamSDK::CPP::String & SubjectName,
00132                                                                                     const ViconDataStreamSDK::CPP::String & SegmentName ) ;
00133 
00134         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetMarkerCount GetMarkerCount( const ViconDataStreamSDK::CPP::String  & SubjectName ) ;
00135 
00136         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetMarkerName GetMarkerName( const ViconDataStreamSDK::CPP::String & SubjectName,
00137                                                 const unsigned int  MarkerIndex ) ;
00138 
00139         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetMarkerParentName GetMarkerParentName( const ViconDataStreamSDK::CPP::String & SubjectName,
00140                                                             const ViconDataStreamSDK::CPP::String & MarkerName ) ;
00141 
00142         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetMarkerGlobalTranslation GetMarkerGlobalTranslation( const ViconDataStreamSDK::CPP::String & SubjectName,
00143                                                                           const ViconDataStreamSDK::CPP::String & MarkerName ) ;
00144 
00145 
00146         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetUnlabeledMarkerCount GetUnlabeledMarkerCount() ;
00147 
00148         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetUnlabeledMarkerGlobalTranslation GetUnlabeledMarkerGlobalTranslation( const unsigned int MarkerIndex ) ;
00149 
00150         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetDeviceCount GetDeviceCount() ;
00151         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetDeviceName  GetDeviceName( const unsigned int DeviceIndex ) ;
00152 
00153         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetDeviceOutputCount GetDeviceOutputCount( const ViconDataStreamSDK::CPP::String  & DeviceName ) ;
00154 
00155         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetDeviceOutputName GetDeviceOutputName( const ViconDataStreamSDK::CPP::String  & DeviceName,
00156                                                             const unsigned int   DeviceOutputIndex ) ;
00157 
00158         FUN_DECLSPEC const ViconDataStreamSDK::CPP::Output_GetDeviceOutputValue GetDeviceOutputValue( const ViconDataStreamSDK::CPP::String & DeviceName,
00159                                                               const ViconDataStreamSDK::CPP::String & DeviceOutputName );
00160 
00161 };
00162 
00163 #endif


vicon_bridge
Author(s):
autogenerated on Mon Sep 14 2015 03:57:50