VPTissue Reference Manual
ServerInfo.h
Go to the documentation of this file.
1 #ifndef SIMPT_PAREX_SERVER_INFO_H_
2 #define SIMPT_PAREX_SERVER_INFO_H_
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 #include <QString>
23 
24 namespace SimPT_Parex {
25 
30 {
31 public:
38  ServerInfo(QString name, QString address, int port);
39 
46  ServerInfo(std::string name, std::string address, int port);
47 
51  virtual ~ServerInfo();
52 
58  void Update(QString address, int port);
59 
64  QString GetName();
65 
70  QString GetAddress();
71 
76  int GetPort();
77 
78 private:
79  QString m_name;
80  QString m_address;
81  int m_port;
82 };
83 
84 } // namespace
85 
86 #endif // end-of-include-guard
ServerInfo(QString name, QString address, int port)
Constructor.
Definition: ServerInfo.cpp:24
QString GetName()
Return the name of the server.
Definition: ServerInfo.cpp:44
int GetPort()
Return the port of the server.
Definition: ServerInfo.cpp:54
void Update(QString address, int port)
Update values for server.
Definition: ServerInfo.cpp:38
virtual ~ServerInfo()
Destructor.
Definition: ServerInfo.cpp:34
QString GetAddress()
Return the address of the server.
Definition: ServerInfo.cpp:49
Class for storing server info used on client-side.
Definition: ServerInfo.h:29
Namespace for SimPT parameter explorer package.
Definition: Client.cpp:52