// Ptz.cpp: implementation of the CPtz class. // ////////////////////////////////////////////////////////////////////// #include "Ptz.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CPtz::CPtz() { } CPtz::~CPtz() { } bool CPtz::SetPtzParam(LLONG lLoginID, int nChannel) { if(lLoginID <=0 || nChannel < 0 ) { return false; } m_lLoginID = lLoginID; m_nChannel = nChannel; return true; } bool CPtz::SetLoginID(LLONG lLoginID) { if(lLoginID <= 0) { return false; } m_lLoginID = lLoginID; return true; } bool CPtz::SetChannel(int nChannel) { if( nChannel < 0) { return false; } m_nChannel = nChannel; return true; } /*************************************************************************************************/ #include using namespace std; bool CPtz::PtzControl(int nType, int nParam1, int nParam2, int nParam3, bool bStop /* = false */) { //cout<