WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
WowheadImporter Class Reference

Imports NPC and item data by scraping Wowhead web pages. More...

#include <WowheadImporter.h>

Inheritance diagram for WowheadImporter:
[legend]
Collaboration diagram for WowheadImporter:
[legend]

Public Member Functions

 WowheadImporter ()
 
 ~WowheadImporter ()=default
 
bool acceptURL (const std::string &url) const
 
NPCInfosimportNPC (const std::string &url) const
 
CharInfosimportChar (const std::string &url) const
 
ItemRecordimportItem (const std::string &url) const
 
- Public Member Functions inherited from ImporterPlugin
 ImporterPlugin ()=default
 
virtual ~ImporterPlugin ()=default
 

Private Member Functions

std::string extractSubString (const std::string &datas, const std::string &beginPattern, const std::string &endPattern={}) const
 
std::string getURLData (const std::string &inputUrl) const
 

Detailed Description

Imports NPC and item data by scraping Wowhead web pages.

Definition at line 33 of file WowheadImporter.h.

Constructor & Destructor Documentation

◆ WowheadImporter()

WowheadImporter::WowheadImporter ( )
default

◆ ~WowheadImporter()

WowheadImporter::~WowheadImporter ( )
default

Member Function Documentation

◆ acceptURL()

bool WowheadImporter::acceptURL ( const std::string &  url) const
virtual

Implements ImporterPlugin.

Definition at line 38 of file WowheadImporter.cpp.

◆ extractSubString()

std::string WowheadImporter::extractSubString ( const std::string &  datas,
const std::string &  beginPattern,
const std::string &  endPattern = {} 
) const
private

Definition at line 121 of file WowheadImporter.cpp.

Here is the caller graph for this function:

◆ getURLData()

std::string WowheadImporter::getURLData ( const std::string &  inputUrl) const
private

Definition at line 147 of file WowheadImporter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ importChar()

CharInfos * WowheadImporter::importChar ( const std::string &  url) const
inlinevirtual

Implements ImporterPlugin.

Definition at line 44 of file WowheadImporter.h.

◆ importItem()

ItemRecord * WowheadImporter::importItem ( const std::string &  url) const
virtual

Implements ImporterPlugin.

Definition at line 83 of file WowheadImporter.cpp.

Here is the call graph for this function:

◆ importNPC()

NPCInfos * WowheadImporter::importNPC ( const std::string &  url) const
virtual

Implements ImporterPlugin.

Definition at line 43 of file WowheadImporter.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: