CharKeybSharList.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 
00032 
00033 
00034 #ifndef __CHAR_KEYB_SHAR_LIST_INCLUDED_
00035 #define __CHAR_KEYB_SHAR_LIST_INCLUDED_
00036 
00037 #ifdef MIP_HOST_APPLE
00038 #include <applePatch.h>
00039 #endif
00040 
00041 #include <Time.h>
00042 #include <SharedListener.h>
00043  
00044 using namespace std;
00045  
00047  /* @{ */
00048 
00049 namespace MipBaselib{
00050 
00054 class CharKeybSharList : public SharedListener {
00055  static bool _instanceFlag;
00056  static CharKeybSharList *_singleInst;
00057   
00058  CharKeybSharList();
00059   
00060  unsigned int _kbhit(Time timeout);
00061     
00062  void _receive(string& message, string& address);
00063   
00064  template <class T> friend void* sharedListenerThread(void* p);
00065  
00066  public:
00067   
00069   ~CharKeybSharList();
00070   
00072   static CharKeybSharList* getInstance();
00073 };
00074 
00075 
00076 /* @} */
00077  
00078 };// end namespace MipBaselib{
00079 
00080 
00081 #endif
00082 
00083 
00084 
00085 
00086 
00087 

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