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:
27  const std::string name;
28 
32  std::string description;
33 
36  bool uline;
37 
41 
44  friend class ConfigReaderThread;
45 
46  public:
47  Server(const std::string& srvname, const std::string& srvdesc)
48  : name(srvname), description(srvdesc), uline(false), silentuline(false) { }
49 
54  const std::string& GetName() const { return name; }
55 
59  const std::string& GetDesc() const { return description; }
60 
65  bool IsULine() const { return uline; }
66 
72  bool IsSilentULine() const { return silentuline; }
73 };
Definition: server.h:22
const std::string name
Definition: server.h:27
Definition: configreader.h:503
Definition: base.h:41
bool uline
Definition: server.h:36
bool IsSilentULine() const
Definition: server.h:72
const std::string & GetName() const
Definition: server.h:54
const std::string & GetDesc() const
Definition: server.h:59
bool silentuline
Definition: server.h:40
std::string description
Definition: server.h:32
bool IsULine() const
Definition: server.h:65