00001
00002
00003
00004
00005
00006
00007
00010 #if !defined(H_DC_WORK)
00011 #define H_DC_WORK
00012
00013 #include "dc_buffer.h"
00014
00015 #define WORK_DEFAULT_BUFFER_SIZE (1024)
00016
00017 typedef int DC_WorkHandle_t;
00018
00020 class DC_Work_t {
00021 public:
00022 int wWorkNum;
00023 DC_Buffer_t buf;
00024 public:
00025 DC_Work_t(void) : wWorkNum(-1) { buf.New(WORK_DEFAULT_BUFFER_SIZE); };
00026 DC_Work_t(int wBufSize) : wWorkNum(-1) { buf.New(wBufSize); };
00027 ~DC_Work_t(void) { buf.Delete(); };
00028 };
00029
00030
00031 #endif
00032