WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
WowheadImporter.h
Go to the documentation of this file.
1/*----------------------------------------------------------------------*\
2| This file is part of WoW Model Viewer |
3| |
4| WoW Model Viewer is free software: you can redistribute it and/or |
5| modify it under the terms of the GNU General Public License as |
6| published by the Free Software Foundation, either version 3 of the |
7| License, or (at your option) any later version. |
8| |
9| WoW Model Viewer 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 WoW Model Viewer. |
16| If not, see <http://www.gnu.org/licenses/>. |
17\*----------------------------------------------------------------------*/
18
19/*
20 * WowheadImporter.h
21 *
22 * Created on: 1 dec. 2013
23 * Copyright: 2013 , WoW Model Viewer (http://wowmodelviewer.net)
24 */
25
26#pragma once
27
28#include <string>
29
30#include "ImporterPlugin.h"
31
33class WowheadImporter : public ImporterPlugin //-V1106
34{
35
36public:
38
39 ~WowheadImporter() = default;
40
41 bool acceptURL(const std::string& url) const;
42
43 NPCInfos* importNPC(const std::string& url) const;
44 CharInfos* importChar(const std::string& url) const { return nullptr; }
45 ItemRecord* importItem(const std::string& url) const;
46
47private:
48 std::string extractSubString(const std::string& datas, const std::string& beginPattern, const std::string& endPattern = {}) const;
49 std::string getURLData(const std::string& inputUrl) const;
50};
Stores imported character information (race, gender, equipment, customisations, tabard).
Definition CharInfos.h:8
Abstract base class for URL-based import plugins (Armory, Wowhead, etc.).
Stores basic NPC metadata (id, display id, type, name) imported from external sources.
Definition NPCInfos.h:7
Imports NPC and item data by scraping Wowhead web pages.
std::string getURLData(const std::string &inputUrl) const
std::string extractSubString(const std::string &datas, const std::string &beginPattern, const std::string &endPattern={}) const
CharInfos * importChar(const std::string &url) const
bool acceptURL(const std::string &url) const
ItemRecord * importItem(const std::string &url) const
NPCInfos * importNPC(const std::string &url) const
~WowheadImporter()=default
A single equipment item record from the item database.
Definition database.h:26