ManaPlus
networkdb.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2011-2019 The ManaPlus Developers
4  * Copyright (C) 2019-2021 Andrei Karas
5  *
6  * This file is part of The ManaPlus Client.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef RESOURCES_DB_NETWORKDB_H
23 #define RESOURCES_DB_NETWORKDB_H
24 
26 
27 #include "utils/vector.h"
28 
29 #include <map>
30 #include <string>
31 
32 typedef std::map<int32_t, int32_t> NetworkInPacketInfos;
33 typedef NetworkInPacketInfos::const_iterator NetworkInPacketInfosIter;
34 typedef STD_VECTOR<int> NetworkRemovePacketInfos;
35 typedef NetworkRemovePacketInfos::const_iterator NetworkRemovePacketInfosIter;
36 
37 namespace NetworkDb
38 {
42  void load();
43 
44  void loadXmlFile(const std::string &fileName,
45  const SkipError skipError);
46 
50  void unload();
51 
53 
55 } // namespace NetworkDb
56 
57 #endif // RESOURCES_DB_NETWORKDB_H
void loadXmlFile(const std::string &fileName, const SkipError skipError)
Definition: networkdb.cpp:52
void load()
Definition: networkdb.cpp:40
const NetworkRemovePacketInfos & getRemovePackets()
Definition: networkdb.cpp:86
const NetworkInPacketInfos & getFakePackets()
Definition: networkdb.cpp:81
void unload()
Definition: networkdb.cpp:73
NetworkInPacketInfos::const_iterator NetworkInPacketInfosIter
Definition: networkdb.h:33
std::map< int32_t, int32_t > NetworkInPacketInfos
Definition: networkdb.h:32
std::vector< int > NetworkRemovePacketInfos
Definition: networkdb.h:34
NetworkRemovePacketInfos::const_iterator NetworkRemovePacketInfosIter
Definition: networkdb.h:35
bool SkipError
Definition: skiperror.h:30
std::string fileName
Definition: testmain.cpp:39