1
0
mirror of https://github.com/wfjm/w11.git synced 2026-04-27 20:49:15 +00:00
Files
wfjm.w11/tools/src/librlink/RlinkPortTerm.hpp
Walter F.J. Mueller a20f49fcd5 - add sources for C++/Tcl based backend, add directories
- tools/src/...
  - tools/tcl/...
  - tools/dox
  - tools/make
- add rlink test system
  - rtl/sys_gen/tst_rlink/nexys2/...
2011-04-02 11:08:56 +00:00

62 lines
1.7 KiB
C++

// $Id: RlinkPortTerm.hpp 375 2011-04-02 07:56:47Z mueller $
//
// Copyright 2011- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
//
// This program is free software; you may redistribute and/or modify it under
// the terms of the GNU General Public License as published by the Free
// Software Foundation, either version 2, 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 complete details.
//
// Revision History:
// Date Rev Version Comment
// 2011-03-27 374 1.0 Initial version
// ---------------------------------------------------------------------------
/*!
\file
\version $Id: RlinkPortTerm.hpp 375 2011-04-02 07:56:47Z mueller $
\brief Declaration of class RlinkPortTerm.
*/
#ifndef included_Retro_RlinkPortTerm
#define included_Retro_RlinkPortTerm 1
#include <termios.h>
#include "RlinkPort.hpp"
namespace Retro {
class RlinkPortTerm : public RlinkPort {
public:
RlinkPortTerm();
virtual ~RlinkPortTerm();
virtual bool Open(const std::string& url, RerrMsg& emsg);
virtual void Close();
virtual void Dump(std::ostream& os, int ind=0, const char* text=0) const;
protected:
void DumpTios(std::ostream& os, int ind, const std::string& name,
const struct termios& tios) const;
protected:
struct termios fTiosOld;
struct termios fTiosNew;
};
} // end namespace Retro
#if !(defined(Retro_NoInline) || defined(Retro_RlinkPortTerm_NoInline))
//#include "RlinkPortTerm.ipp"
#endif
#endif