My Project
|
00001 /* 00002 * $Id:$ 00003 */ 00004 00005 #include <boost/lexical_cast.hpp> 00006 #include "SerialNeutronExchanger.hh" 00007 00008 class SerialPythonServerClient { 00009 private: 00011 class ASIO_local *Al; 00012 00014 class SerialNeutronExchanger *SNE; 00015 00016 std::string remhost; // remote host is saved for the second connection 00017 std::string remport; // 00018 UInt4 new_port; // port number for the second connection 00019 UInt4 key; // authentication key for the second connection 00020 00021 public: 00022 SerialPythonServerClient(const std::string remotehost, const std::string remoteport) : 00023 Al(NULL), SNE(NULL), 00024 remhost(remotehost), remport(remoteport) { 00025 } 00026 00027 ~SerialPythonServerClient() { 00028 if (SNE!=NULL) delete SNE; 00029 if (SNE!=NULL) delete Al; 00030 } 00031 00039 bool Start(const std::vector<std::string> &s, 00040 const UInt4 umax=0); 00041 00042 class SerialNeutronExchanger &refSNE(void) const; 00043 00044 };