You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.0 KiB
60 lines
2.0 KiB
#ifndef __ONVIF_CLIENT_PTZ__
|
|
#define __ONVIF_CLIENT_PTZ__
|
|
|
|
#include <string>
|
|
#include <map>
|
|
#include <iostream>
|
|
#include <list>
|
|
|
|
#include "onvifclientdevice.hpp"
|
|
#include "../onvifgen/soapStub.h"
|
|
#include "../onvifgen/soapPTZBindingProxy.h"
|
|
#include "../gsoap/wsseapi.h"
|
|
//#include "soapC.h"
|
|
|
|
|
|
using namespace std;
|
|
|
|
class ONVIFLIB_API OnvifClientPTZ
|
|
{
|
|
public:
|
|
OnvifClientPTZ(OnvifClientDevice &device);
|
|
~OnvifClientPTZ();
|
|
|
|
bool m_bHasRelativePTMove;
|
|
bool m_bHasRelativeZoomMove;
|
|
bool m_bHasAbsolutePTMove;
|
|
bool m_bHasAbsoluteZoomMove;
|
|
bool m_bHasContinuousPTMove;
|
|
bool m_bHasContinuousZoomMove;
|
|
|
|
public:
|
|
/* Add function to here */
|
|
//Configuration functions
|
|
int GetConfiguration(_tptz__GetConfigurationResponse &configurationResp); // John 7/2
|
|
int GetConfigurations(_tptz__GetConfigurationsResponse &configurationsResp);
|
|
int GetConfigurationOptions(_tptz__GetConfigurationOptionsResponse &configOptions, string configToken); // John 7/2
|
|
int SetConfiguration(_tptz__SetConfigurationResponse &SetConfiguration, tt__PTZConfiguration &PTZConfiguration,bool ForcePersist);
|
|
//Move Functions (includes Pan, Tilt, and Zoom Moves)
|
|
int RelativeMove(_tptz__RelativeMoveResponse &relMoveResponse, tt__PTZVector &Translation, tt__PTZSpeed &Speed, string profileToken);
|
|
int ContinuousMove(_tptz__ContinuousMoveResponse &ContMoveResponse, tt__PTZSpeed &Speed, LONG64 &Timeout, string profileToken);
|
|
int AbsoluteMove(_tptz__AbsoluteMoveResponse &AbsoluteMoveResponse, tt__PTZSpeed &Speed, tt__PTZVector &position, string profileToken);
|
|
int Stop(_tptz__StopResponse &StopResponse,bool PanTilt,bool Zoom,string profileToken);
|
|
//Zoom Functions
|
|
//TODO:
|
|
|
|
//Node, status, and service capabilities
|
|
int GetNodes(_tptz__GetNodesResponse &GetNodesResponse);
|
|
int GetNode(_tptz__GetNodeResponse &GetNodeResponse, string nodeToken);
|
|
int GetStatus(_tptz__GetStatusResponse &StatusResponse,string profileToken);
|
|
int GetServiceCapabilities(_tptz__GetServiceCapabilitiesResponse &ServiceCapResponse);
|
|
|
|
int Initialize();
|
|
|
|
private:
|
|
OnvifClientDevice &m_Device;
|
|
PTZBindingProxy ptzProxy;
|
|
|
|
};
|
|
|
|
#endif
|