DsSession.h

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------------
00002 //
00003 // $Id$
00004 //
00005 // Copyright 2008, 2009, 2010, 2011  Antonio Franchi
00006 //
00007 // This file is part of dscope.
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 dscope. If not, see <http://www.gnu.org/licenses/>.
00021 //
00022 // Contact info: antonio.franchi@tuebingen.mpg.de
00023 //
00024 // ----------------------------------------------------------------------------
00025 
00026 
00027 #ifndef __DS_SESSION_H__
00028 #define __DS_SESSION_H__
00029 
00030 #include <map>
00031 #include <string>
00032 #include <vector>
00033 
00034 
00035 #include <pthread.h>
00036 
00037 #include <Time.h>
00038 
00039 using namespace std;
00040 using namespace MipBaselib;
00041 
00042 typedef map <string,vector<double> > VectDisp;
00043 
00044 class DsSession{
00045  
00046  pthread_mutex_t _mutex;
00047  
00048  VectDisp _vectDisplays;
00049  Timer _timer;
00050   
00051  public:
00052   DsSession(){
00053    pthread_mutex_init(&_mutex,NULL);
00054   }
00055   
00056   void setVectDisplay(string name,vector<double> & value);
00057   void remVectDisplay(string name);
00058   
00059   void printDisplays();
00060   
00061 };
00062 
00063 
00064 
00065 
00066 #endif
00067 
00068 
00069 
00070 

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