InspIRCd  3.0
server.h
1 /*
2  * InspIRCd -- Internet Relay Chat Daemon
3  *
4  * Copyright (C) 2014 Attila Molnar <[email protected]>
5  *
6  * This file is part of InspIRCd. InspIRCd is free software: you can
7  * redistribute it and/or modify it under the terms of the GNU General Public
8  * License as published by the Free Software Foundation, version 2.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13  * details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 
20 #pragma once
21 
22 class CoreExport Server : public classbase
23 {
24  protected:
26  const std::string id;
27 
30  const std::string name;
31 
35  std::string description;
36 
39  bool uline;
40 
44 
47  friend class ConfigReaderThread;
48 
49  public:
50  Server(const std::string& srvid, const std::string& srvname, const std::string& srvdesc)
51  : id(srvid)
52  , name(srvname)
53  , description(srvdesc)
54  , uline(false)
55  , silentuline(false)
56  {
57  }
58 
59  DEPRECATED_METHOD(Server(const std::string& srvname, const std::string& srvdesc))
60  : name(srvname)
61  , description(srvdesc)
62  , uline(false)
63  , silentuline(false)
64  {
65  }
66 
68  const std::string& GetId() const { return id; }
69 
74  const std::string& GetName() const { return name; }
75 
79  const std::string& GetDesc() const { return description; }
80 
85  bool IsULine() const { return uline; }
86 
92  bool IsSilentULine() const { return silentuline; }
93 };
Server::silentuline
bool silentuline
Definition: server.h:43
Server::IsSilentULine
bool IsSilentULine() const
Definition: server.h:92
ConfigReaderThread
Definition: configreader.h:471
Server
Definition: server.h:22
Server::GetName
const std::string & GetName() const
Definition: server.h:74
Server::GetDesc
const std::string & GetDesc() const
Definition: server.h:79
Server::description
std::string description
Definition: server.h:35
Server::name
const std::string name
Definition: server.h:30
classbase
Definition: base.h:41
Server::uline
bool uline
Definition: server.h:39
Server::GetId
const std::string & GetId() const
Definition: server.h:68
Server::IsULine
bool IsULine() const
Definition: server.h:85
Server::id
const std::string id
Definition: server.h:26