Matrix Science header

ms_computeraddress.hpp

00001 /*
00002 ##############################################################################
00003 # file: ms_computeraddress.hpp                                               #
00004 # 'msparser' toolkit                                                         #
00005 # Contains computer address parameters required by cluster mode              #
00006 ##############################################################################
00007 # COPYRIGHT NOTICE                                                           #
00008 # Copyright 1998-2003 Matrix Science Limited  All Rights Reserved.           #
00009 #                                                                            #
00010 ##############################################################################
00011 #    $Archive:: /Mowse/ms_mascotresfile/include/ms_computeraddress.hpp     $ #
00012 #     $Author: villek@matrixscience.com $ #
00013 #       $Date: 2018-07-30 16:23:53 +0100 $ #
00014 #   $Revision: 1b450440f9c97e1e41d0fc6016a27d68951d4532 | MSPARSER_REL_2_8_1-0-gea32989045 $ #
00015 # $NoKeywords::                                                            $ #
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     }; // class ms_computeraddress // end of config_group
00085 } // namespace matrix_science
00086 
00087 #endif // MS_COMPUTERADDRESS_HPP
00088 
00089 /*------------------------------- End of File -------------------------------*/

Copyright © 2022 Matrix Science Ltd.  All Rights Reserved. Generated on Thu Mar 31 2022 01:12:29