Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_computeraddress.hpp
1/*
2##############################################################################
3# file: ms_computeraddress.hpp #
4# 'msparser' toolkit #
5# Contains computer address parameters required by cluster mode #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2003 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11# $Archive:: /Mowse/ms_mascotresfile/include/ms_computeraddress.hpp $ #
12# $Author: villek@matrixscience.com $ #
13# $Date: 2018-07-30 16:23:53 +0100 $ #
14# $Revision: 1b450440f9c97e1e41d0fc6016a27d68951d4532 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $ #
15# $NoKeywords:: $ #
16##############################################################################
17*/
18
19#ifndef MS_COMPUTERADDRESS_HPP
20#define MS_COMPUTERADDRESS_HPP
21
22
23#include <string>
24#include <vector>
25
26namespace matrix_science {
33 class MS_MASCOTRESFILE_API ms_computeraddress
34 {
35 friend class ms_datfile;
36 friend class ms_clusterparams;
37
38 public:
41
44
47
49 void defaultValues();
50
52 void copyFrom(const ms_computeraddress* right);
53
54#ifndef SWIG
56 ms_computeraddress& operator=(const ms_computeraddress& right);
57#endif
59 std::string getInetAddress() const;
60
62 void setInetAddress(const char* address);
63
65 std::string getHostName() const;
66
68 void setHostName(const char* name);
69
71 unsigned int getPort() const;
72
74 void setPort(const unsigned int value);
75
76 private:
77 std::string inetAddress_;
78 std::string hostName_;
79 unsigned short port_;
80
81 void setCustomString();
82 std::string customString_;
83 }; // class ms_computeraddress // end of config_group
85} // namespace matrix_science
86
87#endif // MS_COMPUTERADDRESS_HPP
88
89/*------------------------------- End of File -------------------------------*/
An instance of this class represents all the parameters specified in the Cluster section of mascot....
Definition: ms_clusterparams.hpp:72
The class serves as a container for computer address parameters for cluster mode.
Definition: ms_computeraddress.hpp:34
Encapsulates the mascot.dat file that contains the most important parameters.
Definition: ms_datfile.hpp:47