/ src / libnml / cms / cms_dup.hh
cms_dup.hh
 1  /********************************************************************
 2  * Description: cms_dup.hh
 3  *
 4  *   Derived from a work by Fred Proctor & Will Shackleford
 5  *
 6  * Author:
 7  * License: LGPL Version 2
 8  * System: Linux
 9  *    
10  * Copyright (c) 2004 All rights reserved.
11  *
12  * Last change: 
13  ********************************************************************/
14  
15  #ifndef CMS_DUP_HH
16  #define CMS_DUP_HH
17  
18  #include "cms_up.hh"		/* class CMS_UPDATER */
19  
20  class CMS_DISPLAY_ASCII_UPDATER:public CMS_UPDATER {
21    public:
22      void find_next_comma();
23      CMS_STATUS update_char(char &x);
24      CMS_STATUS update(bool &x);
25      CMS_STATUS update(char &x);
26      CMS_STATUS update(unsigned char &x);
27      CMS_STATUS update(short int &x);
28      CMS_STATUS update(unsigned short int &x);
29      CMS_STATUS update(int &x);
30      CMS_STATUS update(unsigned int &x);
31      CMS_STATUS update(long int &x);
32      CMS_STATUS update(unsigned long int &x);
33      CMS_STATUS update(float &x);
34      CMS_STATUS update(double &x);
35      CMS_STATUS update(long double &x);
36      CMS_STATUS update(char *x, unsigned int len);
37      CMS_STATUS update(unsigned char *x, unsigned int len);
38      CMS_STATUS update(short *x, unsigned int len);
39      CMS_STATUS update(unsigned short *x, unsigned int len);
40      CMS_STATUS update(int *x, unsigned int len);
41      CMS_STATUS update(unsigned int *x, unsigned int len);
42      CMS_STATUS update(long *x, unsigned int len);
43      CMS_STATUS update(unsigned long *x, unsigned int len);
44      CMS_STATUS update(float *x, unsigned int len);
45      CMS_STATUS update(double *x, unsigned int len);
46      CMS_STATUS update(long double *x, unsigned int len);
47      int set_mode(CMS_UPDATER_MODE);
48      void rewind();
49      int get_encoded_msg_size();
50    protected:
51      int check_pointer(char *, long);
52        CMS_DISPLAY_ASCII_UPDATER(CMS *);
53        virtual ~ CMS_DISPLAY_ASCII_UPDATER();
54      friend class CMS;
55      char *begin_current_string;
56      char *end_current_string;
57      long max_length_current_string;
58      long length_current_string;
59      int encoding;
60      int warning_count;
61      int warning_count_max;
62      int updating_string;
63  };
64  
65  #endif