InspIRCd
3.0
include
server.h
1
/*
2
* InspIRCd -- Internet Relay Chat Daemon
3
*
4
* Copyright (C) 2019-2020 Sadie Powell <
[email protected]
>
5
* Copyright (C) 2018 Matt Schatz <
[email protected]
>
6
* Copyright (C) 2014 Attila Molnar <
[email protected]
>
7
*
8
* This file is part of InspIRCd. InspIRCd is free software: you can
9
* redistribute it and/or modify it under the terms of the GNU General Public
10
* License as published by the Free Software Foundation, version 2.
11
*
12
* This program is distributed in the hope that it will be useful, but WITHOUT
13
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15
* details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
22
#pragma once
23
24
class
CoreExport
Server
:
public
classbase
25
{
26
protected
:
28
const
std::string
id
;
29
32
const
std::string
name
;
33
37
std::string
description
;
38
41
bool
uline
;
42
45
bool
silentuline
;
46
49
friend
class
ConfigReaderThread
;
50
51
public
:
52
Server
(
const
std::string& srvid,
const
std::string& srvname,
const
std::string& srvdesc)
53
: id(srvid)
54
, name(srvname)
55
, description(srvdesc)
56
, uline(false)
57
, silentuline(false)
58
{
59
}
60
61
DEPRECATED_METHOD(
Server
(
const
std::string& srvname,
const
std::string& srvdesc))
62
: name(srvname)
63
, description(srvdesc)
64
, uline(false)
65
, silentuline(false)
66
{
67
}
68
70
const
std::string&
GetId
()
const
{
return
id; }
71
76
const
std::string&
GetName
()
const
{
return
name; }
77
81
const
std::string&
GetDesc
()
const
{
return
description; }
82
87
bool
IsULine
()
const
{
return
uline; }
88
94
bool
IsSilentULine
()
const
{
return
silentuline; }
95
};
Server::silentuline
bool silentuline
Definition:
server.h:45
Server::IsSilentULine
bool IsSilentULine() const
Definition:
server.h:94
ConfigReaderThread
Definition:
configreader.h:481
Server
Definition:
server.h:24
Server::GetName
const std::string & GetName() const
Definition:
server.h:76
Server::GetDesc
const std::string & GetDesc() const
Definition:
server.h:81
Server::description
std::string description
Definition:
server.h:37
Server::name
const std::string name
Definition:
server.h:32
classbase
Definition:
base.h:47
Server::uline
bool uline
Definition:
server.h:41
Server::GetId
const std::string & GetId() const
Definition:
server.h:70
Server::IsULine
bool IsULine() const
Definition:
server.h:87
Server::id
const std::string id
Definition:
server.h:28
Generated by
1.8.17