00001
00002
00003 #ifndef CMS_DUP_HH
00004 #define CMS_DUP_HH
00005
00006 #include "rcs_defs.hh"
00007 #include "cms_up.hh"
00008
00009 class CMS_DISPLAY_ASCII_UPDATER:public CMS_UPDATER
00010 {
00011 public:
00012 void find_next_comma ();
00013 CMS_STATUS update_char (char &x);
00014 CMS_STATUS update (char &x);
00015 CMS_STATUS update (unsigned char &x);
00016 CMS_STATUS update (short int &x);
00017 CMS_STATUS update (unsigned short int &x);
00018 CMS_STATUS update (int &x);
00019 CMS_STATUS update (unsigned int &x);
00020 CMS_STATUS update (long int &x);
00021 CMS_STATUS update (unsigned long int &x);
00022 CMS_STATUS update (float &x);
00023 CMS_STATUS update (double &x);
00024 CMS_STATUS update (long double &x);
00025 CMS_STATUS update (char *x, unsigned int len);
00026 CMS_STATUS update (unsigned char *x, unsigned int len);
00027 CMS_STATUS update (short *x, unsigned int len);
00028 CMS_STATUS update (unsigned short *x, unsigned int len);
00029 CMS_STATUS update (int *x, unsigned int len);
00030 CMS_STATUS update (unsigned int *x, unsigned int len);
00031 CMS_STATUS update (long *x, unsigned int len);
00032 CMS_STATUS update (unsigned long *x, unsigned int len);
00033 CMS_STATUS update (float *x, unsigned int len);
00034 CMS_STATUS update (double *x, unsigned int len);
00035 CMS_STATUS update (long double *x, unsigned int len);
00036 int set_mode (CMS_UPDATER_MODE);
00037 void rewind ();
00038 int get_encoded_msg_size ();
00039 protected:
00040 int check_pointer (char RCS_HUGE *, long);
00041 CMS_DISPLAY_ASCII_UPDATER (CMS *);
00042 virtual ~ CMS_DISPLAY_ASCII_UPDATER ();
00043 friend class RCS_EXPORT CMS;
00044 char *begin_current_string;
00045 char *end_current_string;
00046 long max_length_current_string;
00047 long length_current_string;
00048 int encoding;
00049 int warning_count;
00050 int warning_count_max;
00051 int updating_string;
00052 };
00053
00054
00055
00056 #endif