| 1 | /* |
| 2 | * Copyright (C) 2015 xboi209 |
| 3 | * |
| 4 | * This program is free software: you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation, either version 3 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | #ifndef INCLUDED_TOPIC_TYPES |
| 19 | #define INCLUDED_TOPIC_TYPEScxx . . $ `src/bnetd/topic.h:19:9`! |
| 20 | |
| 21 | #include <memory> |
| 22 | #include <string> |
| 23 | #include <vector> |
| 24 | |
| 25 | #include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/ |
| 26 | #include "common/list.h"cxx . . $ `<file>/src/common/list.h`/ |
| 27 | #endif |
| 28 | |
| 29 | #ifndef JUST_NEED_TYPES |
| 30 | #ifndef INCLUDED_TOPIC_PROTOS |
| 31 | #define INCLUDED_TOPIC_PROTOScxx . . $ `src/bnetd/topic.h:31:9`! |
| 32 | namespace pvpgncxx . . $ pvpgn/ |
| 33 | { |
| 34 | |
| 35 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 36 | { |
| 37 | |
| 38 | class class_topiccxx . . $ pvpgn/bnetd/class_topic# |
| 39 | { |
| 40 | //all public member functions of class_topic verify channel name and topic length |
| 41 | public: |
| 42 | class_topiccxx . . $ pvpgn/bnetd/class_topic#class_topic(49f6e7a06ebc5aa8).(); |
| 43 | |
| 44 | stdcxx . . $ std/::stringcxx . . $ std/string# getcxx . . $ pvpgn/bnetd/class_topic#get(265576c0e07c2ac8).(const stdcxx . . $ std/::stringcxx . . $ std/string# channel_name); |
| 45 | bool setcxx . . $ pvpgn/bnetd/class_topic#set(68710a89f2bd51b).(const stdcxx . . $ std/::stringcxx . . $ std/string# channel_name, const stdcxx . . $ std/::stringcxx . . $ std/string# topic_text, bool do_save); |
| 46 | bool displaycxx . . $ pvpgn/bnetd/class_topic#display(4ecd64a16013f99d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, const stdcxx . . $ std/::stringcxx . . $ std/string# channel_name); |
| 47 | private: |
| 48 | struct t_topiccxx . . $ pvpgn/bnetd/class_topic#t_topic# |
| 49 | { |
| 50 | stdcxx . . $ std/::stringcxx . . $ std/string# channel_namecxx . . $ pvpgn/bnetd/class_topic#t_topic#channel_name.; |
| 51 | stdcxx . . $ std/::stringcxx . . $ std/string# topicstrcxx . . $ pvpgn/bnetd/class_topic#t_topic#topicstr.; |
| 52 | bool savecxx . . $ pvpgn/bnetd/class_topic#t_topic#save.; |
| 53 | }; |
| 54 | |
| 55 | class class_topiclistcxx . . $ pvpgn/bnetd/class_topic#class_topiclist# |
| 56 | { |
| 57 | public: |
| 58 | static bool IsHeadLoadedcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#IsHeadLoaded.; |
| 59 | stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<class_topiccxx . . $ pvpgn/bnetd/class_topic#::t_topiccxx . . $ pvpgn/bnetd/class_topic#t_topic#> getcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#get(ef639fc4e59e75d0).(const stdcxx . . $ std/::stringcxx . . $ std/string# channel_name); |
| 60 | bool savecxx . . $ pvpgn/bnetd/class_topic#class_topiclist#save(c9857a73d68e59ba).(); |
| 61 | void addcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#add(4fdcace1b5639954).(stdcxx . . $ std/::stringcxx . . $ std/string# channel_name, stdcxx . . $ std/::stringcxx . . $ std/string# topic_text, bool do_save); |
| 62 | private: |
| 63 | static stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<class_topiccxx . . $ pvpgn/bnetd/class_topic#::t_topiccxx . . $ pvpgn/bnetd/class_topic#t_topic#>> Headcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#Head.; |
| 64 | } topiclistcxx . . $ pvpgn/bnetd/class_topic#topiclist.; |
| 65 | }; |
| 66 | |
| 67 | } //namespace bnetd |
| 68 | |
| 69 | } //namespace pvpgn |
| 70 | |
| 71 | #endif |
| 72 | #endif |