00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MS_COMPUTERADDRESS_HPP
00020 #define MS_COMPUTERADDRESS_HPP
00021
00022
00023 #include <string>
00024 #include <vector>
00025
00026 namespace matrix_science {
00032
00033 class MS_MASCOTRESFILE_API ms_computeraddress
00034 {
00035 friend class ms_datfile;
00036 friend class ms_clusterparams;
00037
00038 public:
00040 ms_computeraddress();
00041
00043 ms_computeraddress(const ms_computeraddress& src);
00044
00046 ~ms_computeraddress();
00047
00049 void defaultValues();
00050
00052 void copyFrom(const ms_computeraddress* right);
00053
00054 #ifndef SWIG
00055
00056 ms_computeraddress& operator=(const ms_computeraddress& right);
00057 #endif
00058
00059 std::string getInetAddress() const;
00060
00062 void setInetAddress(const char* address);
00063
00065 std::string getHostName() const;
00066
00068 void setHostName(const char* name);
00069
00071 unsigned int getPort() const;
00072
00074 void setPort(const unsigned int value);
00075
00076 private:
00077 std::string inetAddress_;
00078 std::string hostName_;
00079 unsigned short port_;
00080
00081 void setCustomString();
00082 std::string customString_;
00083 };
00085 }
00086
00087 #endif // MS_COMPUTERADDRESS_HPP
00088
00089