Keyboard.h

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------------
00002 //
00003 // $Id$
00004 //
00005 // Copyright 2008, 2009, 2010, 2011, 2012  Antonio Franchi and Paolo Stegagno    
00006 //
00007 // This file is part of MIP.
00008 //
00009 // MIP is free software: you can redistribute it and/or modify
00010 // it under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation, either version 3 of the License, or
00012 // (at your option) any later version.
00013 //
00014 // MIP is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // You should have received a copy of the GNU General Public License
00020 // along with MIP. If not, see <http://www.gnu.org/licenses/>.
00021 //
00022 // Contact info: antonio.franchi@tuebingen.mpg.de stegagno@diag.uniroma1.it
00023 //
00024 // ----------------------------------------------------------------------------
00025 
00026 
00033 
00037 
00038 
00039 
00040 #ifndef __KEYBOARD_H_
00041 #define __KEYBOARD_H_
00042 
00043 #include <Resource.h>
00044 #include <Time.h>
00045 
00046 using namespace MipBaselib;
00047 
00048 namespace MipResources{
00049  
00051  /* @{ */
00052 
00056 class Keyboard : public Resource{
00057  private:
00058   static const ResourcePlate _plate= KEYBOARD_RES; 
00059   string _buffer; 
00060   
00061   unsigned int _kbhit(Time timeout);
00062  public:
00066   Keyboard(int argc, const char* argv[]){
00067   }
00068   
00070   ResourcePlate getPlate() const {
00071    return _plate;
00072   }
00073   
00075   void setBuffer(string newBuffer){
00076    _buffer = newBuffer;
00077   }
00078   
00080   string buffer(){
00081    return _buffer;
00082   }
00083   
00084 //   void listen();
00085 };
00086 
00087 /* @} */
00088 
00089 }; //end namespace MipResources
00090 
00091 
00092 #endif
00093 
00094 
00095 

Generated on Mon Feb 20 07:01:07 2017 for MIP by  doxygen 1.5.6