Old fashion design for PC-104
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.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: LgNetSocketPTZTKS576.cpp
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Source file of LgNetSocketPTZTKS576.cpp
//----------------------------------------------------------------------------
#include "stdafx.h"
#include "LgNetSocketPTZTKS576.h"
CLgNetSocketPTZTKS576::CLgNetSocketPTZTKS576(){
}
CLgNetSocketPTZTKS576::~CLgNetSocketPTZTKS576(){ Destroy();
// unlink all linked devices
CLgLinkP<CLgNetSocket,CLgNetSocketDevice>::Unlink();}
BOOL CLgNetSocketPTZTKS576::Create( LPCTSTR pCommPort, BOOL bDemo ){ Destroy();
if( !bDemo ) { if( !m_Connection.Create( pCommPort, 9600, 8, EVENPARITY, ONESTOPBIT, 1024, 1024 ) ) return FALSE;
if( !m_Protocol.Create( &m_Connection ) ) return FALSE; }
if( !CLgNetSocket::Create( &m_Protocol ) ) return FALSE;
return TRUE;}
void CLgNetSocketPTZTKS576::Destroy(){ CLgNetSocket::Destroy(); m_Protocol.Destroy(); m_Connection.Destroy();}
|