00001 // Last edit: 2/10/05 00002 // 00003 // Name: BB_user_data.hpp 00004 // Author: Francois Margot 00005 // Tepper School of Business 00006 // Carnegie Mellon University, Pittsburgh, PA 15213 00007 // email: fmargot@andrew.cmu.edu 00008 // Date: 12/28/03 00009 //----------------------------------------------------------------------------- 00010 // Copyright (C) 2003, Francois Margot. All Rights Reserved. 00011 00012 #ifndef _BB_UD_H 00013 #define _BB_UD_H 00014 00015 #include "BCP_USER.hpp" 00016 00017 class BCP_buffer; 00018 00021 /**************************************************************************/ 00022 class real_user_data { 00023 00024 /* Add: fields for real_user_data */ 00025 00026 public: 00027 00028 //@name Public data members */ 00030 00031 00032 int max_card_set_zero; 00033 00035 int card_set_zero; 00036 00038 int *set_zero; 00040 00043 00044 real_user_data(const int max_size); 00045 00047 ~real_user_data(); 00049 00051 void print() const; 00052 }; 00053 00056 /**************************************************************************/ 00057 class MY_user_data : public BCP_user_data { 00058 public: 00059 00062 int is_processed; 00063 00065 real_user_data *p_rud; 00066 00067 public: 00068 00071 00072 MY_user_data(const int max_size); 00073 00075 MY_user_data(BCP_buffer& buf); 00076 00078 ~MY_user_data(); 00079 00081 void pack(BCP_buffer& buf) const; 00082 00084 void print() const; 00085 }; 00086 #endif 00087 00088