00001 /*
00002 * This program is free software; you can redistribute it and/or modify
00003 * it under the terms of the GNU General Public License as published by
00004 * the Free Software Foundation; either version 2 of the License, or
00005 * (at your option) any later version.
00006 *
00007 * This program is distributed in the hope that it will be useful,
00008 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00009 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00010 * GNU General Public License for more details.
00011 *
00012 * You should have received a copy of the GNU General Public License
00013 * along with this program; if not, write to the Free Software
00014 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00015 *
00016 * (c)Copyright 2006 Hewlett-Packard Development Company, LP.
00017 *
00018 */
00019
00020 #ifndef _CPP_C_DATALOGRTDISTRIB_H_
00021 #define _CPP_C_DATALOGRTDISTRIB_H_
00022
00023 // #include "list_t.hpp"
00024 // #include "fstream_t.hpp"
00025 // #include <sys/time.h>
00026
00027 #include "C_DataLogControl.hpp"
00028 // #include "C_SemaphoreTimed.hpp"
00029
00030 class C_DataLogRTDistrib : public C_DataLogControl {
00031
00032 public:
00033
00034 C_DataLogRTDistrib(size_t P_max_data,
00035 size_t P_max_data_log,
00036 char *P_file_name,
00037 unsigned long P_period,
00038 unsigned long P_rtdistrib);
00039 ~C_DataLogRTDistrib();
00040
00041 int data (double P_time, double P_value);
00042 int data (char *P_data);
00043 void do_log () ;
00044 void do_log_cumul () ;
00045
00046
00047 private:
00048 unsigned long m_rtdistrib ;
00049 unsigned long *m_p_rt_distrib ;
00050 unsigned long *m_c_rt_distrib ;
00051
00052 unsigned long m_p_min_rt_distrib ;
00053 unsigned long m_p_max_rt_distrib ;
00054 unsigned long m_c_min_rt_distrib ;
00055 unsigned long m_c_max_rt_distrib ;
00056 unsigned long m_counter_rt ;
00057
00058 C_Semaphore *m_sem_rt ;
00059
00060 } ;
00061
00062
00063 #endif // _CPP_C_DATALOGRTDISTRIB_H_
00064
00065
00066
00067
1.2.14 written by Dimitri van Heesch,
© 1997-2002