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 _C_LOG_VALUE_H
00021 #define _C_LOG_VALUE_H
00022
00023
00024 class C_LogValue {
00025 public:
00026 C_LogValue(char *P_string);
00027 C_LogValue(double P_time, double P_data);
00028 ~C_LogValue();
00029 void set_string (char *P_string);
00030 void set_data (double P_time, double P_data);
00031 void get_value (char *P_buf) ;
00032 private:
00033 typedef enum _enum_type_value {
00034 E_TYPE_STRING,
00035 E_TYPE_DATA
00036 } T_TypeValue, *T_pTypeValue ;
00037 typedef struct _struct_log_data {
00038 double m_x ;
00039 double m_y ;
00040 } T_LogData, *T_pLogData ;
00041
00042 T_TypeValue m_type ;
00043 T_LogData m_data ;
00044 char *m_string ;
00045 } ;
00046
00047 #endif // _C_LOG_VALUE_H
00048
00049
1.2.14 written by Dimitri van Heesch,
© 1997-2002