00001
00006 class PUP_fmt : public PUP::wrap_er {
00007 typedef PUP::er parent;
00008
00009 typedef unsigned char byte;
00014 typedef enum {
00015 lengthLen_single=0,
00016 lengthLen_byte=1,
00017 lengthLen_int=2,
00018 lengthLen_long=3
00019 } lengthLen_t;
00020 typedef enum {
00021 typeCode_byte=0,
00022 typeCode_int=2,
00023 typeCode_long=3,
00024 typeCode_float=5,
00025 typeCode_double=6,
00026 typeCode_comment=10,
00027 typeCode_sync=11,
00028 typeCode_pointer=12
00029 } typeCode_t;
00030 void fieldHeader(typeCode_t typeCode,int nItems);
00031 public:
00032 PUP_fmt(PUP::er &parent_)
00033 :PUP::wrap_er(parent_,PUP::er::IS_COMMENTS) {}
00034
00035 virtual void comment(const char *message);
00036 virtual void synchronize(unsigned int m);
00037 virtual void bytes(void *p,size_t n,size_t itemSize,PUP::dataType t);
00038 };
00039