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.
|
|
#ifndef __PROTOCOL_PTZ_ONVIF_HEADER__
#define __PROTOCOL_PTZ_ONVIF_HEADER__
#include "protocolPTZ.h"
#define USE_PONVIF
#ifdef USE_PONVIF
#include "../ponvif/ponvif.h"
#else
#include "../onvif/include/onvifclient.hpp"
#endif
class protocolPTZ_ONVIF: public protocolPTZ{ private: basicLogCollection * m_pLog; char m_pUser[MAX_CRED_LEN]; char m_pPassword[MAX_CRED_LEN]; char m_pDeviceURI[MAX_PATH_LEN];#ifdef USE_PONVIF
pOnvif * m_pOnVif; videoSourceProfile * m_pProfile;#else
OnvifClientDevice * m_pDevice; OnvifClientPTZ * m_pPTZ; std::string m_pPTZToken; std::string m_pMediaToken;#endif
config_setting_t * m_pSettings; basicMutex m_mInquiryMutex; public: explicit protocolPTZ_ONVIF( config_setting_t *Settings = NULL ); protocolPTZ_ONVIF( CSTR ip, CSTR username, CSTR password ); virtual ~protocolPTZ_ONVIF(); virtual bool create( void );#ifndef USE_PONVIF
bool initCamera( void );#endif
virtual bool move( uint32_t MoveMatrix ); virtual bool goAbsolute( float dPan, float dTilt, float dZoom );
bool setIPAddress( CSTR ip ); bool setUsername( CSTR username ); bool setPassword( CSTR password );};
#endif
|