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.
|
|
#include "onvifDeviceNode.h"
#define LOG( X ) m_pLog->Log( "onvifDeviceNode", this, X )
#define LOG_ERROR( X ) m_pLog->Log( "onvifDeviceNode", this, _LOG_ERROR, X )
onvifDeviceNode::onvifDeviceNode(CSTR URL){ m_pLog = basicLogCollection::getInstance(); strncpy(m_pDeviceManagementURL, URL, 256); if (strlen(m_pDeviceManagementURL)){ CSTR tVal = (CSTR)malloc(strlen(m_pDeviceManagementURL)); strcpy(tVal, m_pDeviceManagementURL); m_pTransport = new socketPort(tVal); if (m_pTransport != NULL){ m_pProtocol = new protocolONVIF(m_pTransport); if (m_pProtocol != NULL){ enquireDevice(); } else { delete(m_pTransport); }; }; } else { LOG_ERROR("Provided URL is Invalid!"); m_pTransport = NULL; m_pProtocol = NULL; };};
onvifDeviceNode::~onvifDeviceNode(){
};
bool onvifDeviceNode::enquireDevice(void){ LOG( m_pProtocol->GetStreamURI(m_pDeviceManagementURL,0) ); return true;};#undef LOG
#undef LOG_ERROR
|