00001 00002 #ifndef RCS_CMD_HH 00003 #define RCS_CMD_HH 00004 00005 00006 #include "rcs_defs.hh" /* RCS_EXPORT */ 00007 00008 #include "nml.hh" 00009 #include "nmlmsg.hh" 00010 00011 class RCS_EXPORT RCS_CMD_MSG:public NMLmsg 00012 { 00013 public: 00014 RCS_CMD_MSG (NMLTYPE t, long sz); 00015 int serial_number; 00016 }; 00017 00018 extern int RCS_EXPORT RCS_CMD_MSG_format (NMLTYPE, void RCS_FAR *, 00019 CMS RCS_FAR *); 00020 00021 class RCS_EXPORT RCS_CMD_CHANNEL:public NML 00022 { 00023 public: 00024 RCS_CMD_CHANNEL (NML_FORMAT_PTR, char *, char *, char *, 00025 int set_to_server = 0); 00026 ~RCS_CMD_CHANNEL (); 00027 RCS_CMD_MSG *get_address () 00028 { 00029 return ((RCS_CMD_MSG *) NML::get_address ()); 00030 }; 00031 }; 00032 00033 enum RCS_GENERIC_CMD_ID 00034 { 00035 GENERIC_INIT, 00036 GENERIC_HALT 00037 }; 00038 00039 #define RCS_GENERIC_CMD_TYPE ((NMLTYPE) 1000000) 00040 00041 class RCS_EXPORT RCS_GENERIC_CMD:public RCS_CMD_MSG 00042 { 00043 public: 00044 RCS_GENERIC_CMD (); 00045 void update (CMS *); 00046 int gen_id; 00047 }; 00048 00049 #endif