From: Christian P. <cp...@us...> - 2005-05-06 16:09:28
|
Update of /cvsroot/pclasses/pclasses2/src/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22346/src/System Added Files: SerialDevice.posix.cpp Log Message: - Added the beginning of SerialDevice --- NEW FILE: SerialDevice.posix.cpp --- /*************************************************************************** * Copyright (C) 2005 by Christian Prochnow * * cp...@se... * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Library General Public License as * * published by the Free Software Foundation; either version 2 of the * * License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU Library General Public * * License along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "pclasses/System/SerialDevice.h" #include "IOHandle.h" #include <termios.h> #include <unistd.h> #include <map> namespace P { namespace System { std::map<unsigned long, struct termios> SerialFlagsSave; void SerialDevice::init() throw(IO::IOError) { } void SerialDevice::setBaudRate(unsigned int baudRate) throw(IO::IOError) { if(_baudRate != baudRate) { } } void SerialDevice::setHardwareFlowControl(bool hwFlow) throw(IO::IOError) { if(_hwFlow != hwFlow) { _hwFlow = hwFlow; } } void SerialDevice::setSoftwareFlowControl(bool swFlow) throw(IO::IOError) { if(_swFlow != swFlow) { _swFlow = swFlow; } } } // !namespace System } // !namespace P |