VPTissue Reference Manual
SimPT_Parex::ServerInfo Class Reference

Class for storing server info used on client-side. More...

#include <ServerInfo.h>

Collaboration diagram for SimPT_Parex::ServerInfo:
Collaboration graph

Public Member Functions

 ServerInfo (QString name, QString address, int port)
 Constructor. More...
 
 ServerInfo (std::string name, std::string address, int port)
 Constructor. More...
 
virtual ~ServerInfo ()
 Destructor.
 
QString GetAddress ()
 Return the address of the server. More...
 
QString GetName ()
 Return the name of the server. More...
 
int GetPort ()
 Return the port of the server. More...
 
void Update (QString address, int port)
 Update values for server. More...
 

Detailed Description

Class for storing server info used on client-side.

Definition at line 29 of file ServerInfo.h.

Constructor & Destructor Documentation

SimPT_Parex::ServerInfo::ServerInfo ( QString  name,
QString  address,
int  port 
)

Constructor.

Parameters
nameThe name for the server
addressThe address of the server
portThe port used by the server

Definition at line 24 of file ServerInfo.cpp.

SimPT_Parex::ServerInfo::ServerInfo ( std::string  name,
std::string  address,
int  port 
)

Constructor.

Parameters
nameThe name for the server
addressThe address of the server
portThe port used by the server

Definition at line 29 of file ServerInfo.cpp.

Member Function Documentation

QString SimPT_Parex::ServerInfo::GetAddress ( )

Return the address of the server.

Returns
The address of the server

Definition at line 49 of file ServerInfo.cpp.

Referenced by SimPT_Parex::Protocol::Protocol().

Here is the caller graph for this function:

QString SimPT_Parex::ServerInfo::GetName ( )

Return the name of the server.

Returns
The name of the server

Definition at line 44 of file ServerInfo.cpp.

int SimPT_Parex::ServerInfo::GetPort ( )

Return the port of the server.

Returns
The port of the server

Definition at line 54 of file ServerInfo.cpp.

Referenced by SimPT_Parex::Protocol::Protocol().

Here is the caller graph for this function:

void SimPT_Parex::ServerInfo::Update ( QString  address,
int  port 
)

Update values for server.

Parameters
addressThe new address
portThe new port number

Definition at line 38 of file ServerInfo.cpp.


The documentation for this class was generated from the following files: