DsSession.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
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