00001 00017 #ifndef __QDAQ_FWD_COMMAND_HH_ 00018 #define __QDAQ_FWD_COMMAND_HH_ 00019 00020 #include "QCuore.hh" 00021 #include "QCommand.hh" 00022 00023 struct srvinfo_t { 00024 bool valid; 00025 std::string port; 00026 std::string address; 00027 }; 00028 00029 class QDaqFwdCommand : public QCommand { 00030 public: 00032 QDaqFwdCommand(); 00033 00035 virtual ~QDaqFwdCommand(); 00036 00046 virtual void Execute(); 00047 00055 virtual void CheckParams(); 00056 00057 protected: 00058 00060 virtual bool ParseParameters(); 00061 00062 private: 00063 00068 std::map<std::string,srvinfo_t> fAddresses; 00069 00071 std::map<std::string,srvinfo_t>::iterator fAddrIt; 00072 00073 friend class QDaqServer; 00074 }; 00075 00076 #endif