00001 //====================================================================== 00002 // File: escort97.h 00003 // Author: Matthias Toussaint 00004 // Created: Sun Nov 26 18:53:43 CET 2006 00005 // Project: QtDMM 00006 // Description: Encapsulates a DMM class (protokoll) 00007 //---------------------------------------------------------------------- 00008 // This file may be used under the terms of the GNU General Public 00009 // License version 2.0 as published by the Free Software Foundation 00010 // and appearing in the file LICENSE.GPL included in the packaging of 00011 // this file. 00012 // 00013 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING 00014 // THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00015 // PURPOSE. 00016 //---------------------------------------------------------------------- 00017 // Copyright 2006 Matthias Toussaint 00018 //====================================================================== 00019 00020 #ifndef ESCORT97_HH 00021 #define ESCORT97_HH 00022 00023 #include <dmmclass.h> 00024 #include <serialport.h> 00025 00130 class Escort97 : public DMMClass 00131 { 00132 public: 00133 Escort97(); 00134 virtual ~Escort97(); 00135 00136 virtual Port::Error close(); 00137 00138 static DMMClass *create() { return new Escort97; } 00139 00140 protected: 00141 SerialPort m_port; 00142 00143 virtual Port::Error open_impl( const std::string & config ); 00144 virtual void run(); 00145 00146 std::string byteToDigit( unsigned char byte ); 00147 00148 }; 00149 00150 #endif // ESCORT97_HH