ARPDAS_QNX6 1.0
|
00001 #ifndef DG_CMD_H 00002 #define DG_CMD_H 00003 00004 #include <signal.h> 00005 #include "DG.h" 00006 00007 class data_generator; 00008 00009 class DG_cmd : public DG_dispatch_client { 00010 private: 00011 int dev_id; 00012 data_generator *dg; 00013 static iofunc_attr_t cmd_attr; 00014 static resmgr_connect_funcs_t connect_funcs; 00015 static resmgr_io_funcs_t io_funcs; 00016 public: 00017 DG_cmd(data_generator *data_gen); 00018 ~DG_cmd(); 00019 void attach(); // add to dispatch list 00020 int execute(char *buf); 00021 int ready_to_quit(); // virtual function of DG_dispatch_client 00022 static int const DG_CMD_BUFSIZE = 80; 00023 }; 00024 00025 extern "C" { 00026 int DG_cmd_io_write( 00027 resmgr_context_t *ctp, 00028 io_write_t *msg, 00029 RESMGR_OCB_T *ocb ); 00030 } 00031 00032 #endif 00033