Debian Codegraph @

src/bnetd/adbanner.h

raw symbols SCIP
1 /*
2 * Copyright (C) 1999 Ross Combs ([email protected])
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (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, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18 #ifndef INCLUDED_ADBANNER_H
19 #define INCLUDED_ADBANNER_Hcxx . . $ `src/bnetd/adbanner.h:19:9`!
20
21 #include <array>
22 #include <cstdint>
23 #include <string>
24 #include <vector>
25
26 #include "common/tag.h"cxx . . $ `<file>/src/common/tag.h`/
27 #include "common/bn_type.h"cxx . . $ `<file>/src/common/bn_type.h`/
28
29
30 namespace pvpgncxx . . $ pvpgn/
31 {
32 namespace bnetdcxx . . $ pvpgn/bnetd/
33 {
34 /**
35 * Forward Declarations
36 */
37 class AdBannercxx . . $ pvpgn/bnetd/AdBanner#;
38
39 /***************************************************************************************************/
40
41 class AdBannerSelectorcxx . . $ pvpgn/bnetd/AdBannerSelector#
42 {
43 public:
44 AdBannerSelectorcxx . . $ pvpgn/bnetd/AdBannerSelector#AdBannerSelector(49f6e7a06ebc5aa8).() = default;
45 ~cxx . . $ pvpgn/bnetd/AdBannerSelector#`~AdBannerSelector`(ced63f7c635d850d).AdBannerSelectorcxx . . $ pvpgn/bnetd/AdBannerSelector#() = default;
46
47 bool is_loadedcxx . . $ pvpgn/bnetd/AdBannerSelector#is_loaded(3482b152b9333168).() const noexcept;
48 void loadcxx . . $ pvpgn/bnetd/AdBannerSelector#load(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& filename);
49 void unloadcxx . . $ pvpgn/bnetd/AdBannerSelector#unload(ced63f7c635d850d).() noexcept;
50
51 stdcxx . . $ std/::size_tcxx . . $ std/size_t# sizecxx . . $ pvpgn/bnetd/AdBannerSelector#size(c9b1e749b64d5edc).() const noexcept;
52
53 const AdBannercxx . . $ pvpgn/bnetd/AdBanner#* const pickcxx . . $ pvpgn/bnetd/AdBannerSelector#pick(2a7ca6d499ed1eb7).(t_clienttag client_tag, t_gamelang client_lang, stdcxx . . $ std/::size_tcxx . . $ std/size_t# prev_ad_id);
54 const AdBannercxx . . $ pvpgn/bnetd/AdBanner#* const findcxx . . $ pvpgn/bnetd/AdBannerSelector#find(2a7ca6d499ed1eb7).(t_clienttag client_tag, t_gamelang client_lang, stdcxx . . $ std/::size_tcxx . . $ std/size_t# ad_id);
55
56 private:
57 bool m_loadedcxx . . $ pvpgn/bnetd/AdBannerSelector#m_loaded. = false;
58 stdcxx . . $ std/::vectorcxx . . $ std/vector#<AdBannercxx . . $ pvpgn/bnetd/AdBanner#> m_bannerscxx . . $ pvpgn/bnetd/AdBannerSelector#m_banners.;
59 };
60 extern AdBannerSelectorcxx . . $ pvpgn/bnetd/AdBannerSelector# AdBannerListcxx . . $ pvpgn/bnetd/AdBannerList.;
61
62 /***************************************************************************************************/
63
64 class AdBannercxx . . $ pvpgn/bnetd/AdBanner#
65 {
66 public:
67 AdBannercxx . . $ pvpgn/bnetd/AdBanner#AdBanner(49f6e7a06ebc5aa8).() = delete;
68
69 bool is_emptycxx . . $ pvpgn/bnetd/AdBanner#is_empty(50ce9a9e25b4a850).() const;
70
71 stdcxx . . $ std/::size_tcxx . . $ std/size_t# get_idcxx . . $ pvpgn/bnetd/AdBanner#get_id(c9b1e749b64d5edc).() const noexcept;
72 stdcxx . . $ std/::stringcxx . . $ std/string# get_filenamecxx . . $ pvpgn/bnetd/AdBanner#get_filename(a9df4fea84f883e).() const noexcept;
73 unsigned int get_extension_tagcxx . . $ pvpgn/bnetd/AdBanner#get_extension_tag(d22c8608b6eae7b5).() const noexcept;
74 stdcxx . . $ std/::stringcxx . . $ std/string# get_urlcxx . . $ pvpgn/bnetd/AdBanner#get_url(a9df4fea84f883e).() const noexcept;
75 t_clienttag get_clientcxx . . $ pvpgn/bnetd/AdBanner#get_client(d22c8608b6eae7b5).() const noexcept;
76 t_gamelang get_languagecxx . . $ pvpgn/bnetd/AdBanner#get_language(d22c8608b6eae7b5).() const noexcept;
77
78 private:
79 friend void AdBannerSelectorcxx . . $ pvpgn/bnetd/AdBannerSelector#::loadcxx . . $ pvpgn/bnetd/AdBannerSelector#load(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& filename);
80
81 AdBannercxx . . $ pvpgn/bnetd/AdBanner#AdBanner(c9188ea38f093c6f).(stdcxx . . $ std/::size_tcxx . . $ std/size_t# id, bn_intcxx . . $ pvpgn/bn_int# extensiontag, const stdcxx . . $ std/::stringcxx . . $ std/string#& filename, const stdcxx . . $ std/::stringcxx . . $ std/string#& url, t_clienttag clienttag, t_gamelang language);
82
83 const stdcxx . . $ std/::size_tcxx . . $ std/size_t# m_idcxx . . $ pvpgn/bnetd/AdBanner#m_id.;
84 const stdcxx . . $ std/::stringcxx . . $ std/string# m_filenamecxx . . $ pvpgn/bnetd/AdBanner#m_filename.;
85 const unsigned int m_extensiontagcxx . . $ pvpgn/bnetd/AdBanner#m_extensiontag.;
86 const stdcxx . . $ std/::stringcxx . . $ std/string# m_urlcxx . . $ pvpgn/bnetd/AdBanner#m_url.;
87 const t_clienttag m_clientcxx . . $ pvpgn/bnetd/AdBanner#m_client.;
88 const t_gamelang m_languagecxx . . $ pvpgn/bnetd/AdBanner#m_language.;
89 };
90 }
91 }
92
93 #endif