Debian Codegraph @

src/bnetd/versioncheck.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2000 Onlyer ([email protected])
3 * Copyright (C) 2001 Ross Combs ([email protected])
4 * Copyright (C) 2002 Gianluigi Tiesi ([email protected])
5 * Copyright (C) 2004 CreepLord ([email protected])
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 */
21 #ifndef PVPGN_BNETD_VERSIONCHECK_H
22 #define PVPGN_BNETD_VERSIONCHECK_Hcxx . . $ `src/bnetd/versioncheck.h:22:9`!
23
24 #include <cstdint>
25 #include <ctime>
26 #include <string>
27 #include <tuple>
28
29 #include "common/tag.h"cxx . . $ `<file>/src/common/tag.h`/
30
31
32 namespace pvpgncxx . . $ pvpgn/
33 {
34
35 namespace bnetdcxx . . $ pvpgn/bnetd/
36 {
37 class VersionCheckcxx . . $ pvpgn/bnetd/VersionCheck#;
38
39
40 // filename, equation
41 stdcxx . . $ std/::tuplecxx . . $ std/tuple#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#> select_checkrevisioncxx . . $ pvpgn/bnetd/select_checkrevision(e17816cf095531bf).(t_tagcxx . . $ pvpgn/t_tag# architecture, t_tagcxx . . $ pvpgn/t_tag# client, stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# version_id);
42
43 const VersionCheckcxx . . $ pvpgn/bnetd/VersionCheck#* select_versioncheckcxx . . $ pvpgn/bnetd/select_versioncheck(eb22150cf07bbdd6).(t_tagcxx . . $ pvpgn/t_tag# architecture, t_tagcxx . . $ pvpgn/t_tag# client, stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# version_id,
44 stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# checkrevision_version, stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# checkrevision_checksum);
45
46
47 /*******************************************************************************/
48 // Conf
49 /*******************************************************************************/
50 bool load_versioncheck_confcxx . . $ pvpgn/bnetd/load_versioncheck_conf(7c222eea44a24d43).(const stdcxx . . $ std/::stringcxx . . $ std/string#& filename);
51 void unload_versioncheck_confcxx . . $ pvpgn/bnetd/unload_versioncheck_conf(49f6e7a06ebc5aa8).();
52
53
54 class VersionCheckcxx . . $ pvpgn/bnetd/VersionCheck#
55 {
56 public:
57 /*******************************************************************************/
58 // Getters
59 /*******************************************************************************/
60 stdcxx . . $ std/::stringcxx . . $ std/string# get_version_tagcxx . . $ pvpgn/bnetd/VersionCheck#get_version_tag(219584694fe2b248).() const;
61
62 /*******************************************************************************/
63 // Deconstructors
64 /*******************************************************************************/
65 ~cxx . . $ pvpgn/bnetd/VersionCheck#`~VersionCheck`(49f6e7a06ebc5aa8).VersionCheckcxx . . $ pvpgn/bnetd/VersionCheck#() = default;
66 private:
67 /*******************************************************************************/
68 // Friend functions
69 /*******************************************************************************/
70 friend bool load_versioncheck_confcxx . . $ pvpgn/bnetd/load_versioncheck_conf(7c222eea44a24d43).(const stdcxx . . $ std/::stringcxx . . $ std/string#& filename);
71 friend const VersionCheckcxx . . $ pvpgn/bnetd/VersionCheck#* select_versioncheckcxx . . $ pvpgn/bnetd/select_versioncheck(eb22150cf07bbdd6).(t_tagcxx . . $ pvpgn/t_tag# architecture, t_tagcxx . . $ pvpgn/t_tag# client, stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# version_id,
72 stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# checkrevision_version, stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# checkrevision_checksum);
73
74
75 /*******************************************************************************/
76 // Constructors
77 /*******************************************************************************/
78 VersionCheckcxx . . $ pvpgn/bnetd/VersionCheck#VersionCheck(17fcd316e6b38176).(const stdcxx . . $ std/::stringcxx . . $ std/string#& title, stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# version_id, const stdcxx . . $ std/::stringcxx . . $ std/string#& game_version,
79 const stdcxx . . $ std/::stringcxx . . $ std/string#& checksum, t_tagcxx . . $ pvpgn/t_tag# architecture, t_tagcxx . . $ pvpgn/t_tag# client, const stdcxx . . $ std/::stringcxx . . $ std/string#& version_tag);
80
81 /*******************************************************************************/
82 // Member variables
83 /*******************************************************************************/
84 stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# m_version_idcxx . . $ pvpgn/bnetd/VersionCheck#m_version_id.; // AKA "Version Byte"
85 stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# m_game_versioncxx . . $ pvpgn/bnetd/VersionCheck#m_game_version.; // Windows file version
86 stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# m_checksumcxx . . $ pvpgn/bnetd/VersionCheck#m_checksum.;
87 t_tagcxx . . $ pvpgn/t_tag# m_architecturecxx . . $ pvpgn/bnetd/VersionCheck#m_architecture.;
88 t_tagcxx . . $ pvpgn/t_tag# m_clientcxx . . $ pvpgn/bnetd/VersionCheck#m_client.;
89 stdcxx . . $ std/::stringcxx . . $ std/string# m_version_tagcxx . . $ pvpgn/bnetd/VersionCheck#m_version_tag.;
90 };
91
92 } // namespace bnetd
93
94 } // namespace pvpgn
95
96 #endif //PVPGN_BNETD_VERSIONCHECK_H