-
Notifications
You must be signed in to change notification settings - Fork 0
/
Server.h
52 lines (41 loc) · 1.35 KB
/
Server.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Server.h
* Author: Benjamin
*
* Created on 1 février 2017, 15:50
*/
#ifndef SPATCH_SERVER_H
#define SPATCH_SERVER_H
#include <string>
namespace Spatch
{
namespace Configuration
{
class Server
{
public:
Server();
Server(const std::string id, const std::string &name, const std::string &ip, const int port);
Server(const std::string id, const std::string &ip, const int port);
~Server();
const std::string &getId() const;
const std::string &getName() const;
void setName(const std::string &name);
const std::string &getIp() const;
void setIp(const std::string &ip);
const int getPort() const;
void setPort(const int port);
private:
std::string _name;
int _port;
std::string _ip;
std::string _id;
};
}
}
#endif /* SPATCH_SERVER_H */