00001 #ifndef NMWR_GB_MULTI_ISTREAM_CONTROL_DEVICE_H 00002 #define NMWR_GB_MULTI_ISTREAM_CONTROL_DEVICE_H 00003 00004 // $LICENSE 00005 00006 00007 #include "IO/istream-control-device.h" 00008 00009 class multi_istream_control_device 00010 : public istream_control_device_impl { 00011 00012 typedef istream_control_device_impl base; 00013 public: 00014 multi_istream_control_device(std::istream* i1, std::istream* i2, 00015 const std::string& nm, 00016 const std::string& ind = "") 00017 : base(i1,nm,ind), in2(i2) {} 00018 00019 virtual void update() { 00020 base::update(); 00021 MV.ReadValues(*in2); 00022 } 00023 00024 private: 00025 std::istream* in2; 00026 }; 00027 00028 #endif