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

Imports character and item data from the World of Warcraft Armory API. More...

#include <ArmoryImporter.h>

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

Public Member Functions

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

Private Types

enum  ImportType { CHARACTER , ITEM }
 

Private Member Functions

int readJSONValues (ImportType type, const std::string &url, nlohmann::json &result) const
 
std::string getURLData (const std::string &inputUrl) const
 

Static Private Member Functions

static bool hasMember (const nlohmann::json &check, const std::string &lookfor)
 
static bool hasTransmog (const nlohmann::json &check)
 

Detailed Description

Imports character and item data from the World of Warcraft Armory API.

Definition at line 34 of file ArmoryImporter.h.

Member Enumeration Documentation

◆ ImportType

Enumerator
CHARACTER 
ITEM 

Definition at line 48 of file ArmoryImporter.h.

Constructor & Destructor Documentation

◆ ArmoryImporter()

ArmoryImporter::ArmoryImporter ( )
default

◆ ~ArmoryImporter()

ArmoryImporter::~ArmoryImporter ( )
default

Member Function Documentation

◆ acceptURL()

bool ArmoryImporter::acceptURL ( const std::string &  url) const
overridevirtual

Implements ImporterPlugin.

Definition at line 46 of file ArmoryImporter.cpp.

◆ getURLData()

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

Definition at line 315 of file ArmoryImporter.cpp.

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

◆ hasMember()

bool ArmoryImporter::hasMember ( const nlohmann::json &  check,
const std::string &  lookfor 
)
staticprivate

Definition at line 326 of file ArmoryImporter.cpp.

◆ hasTransmog()

bool ArmoryImporter::hasTransmog ( const nlohmann::json &  check)
staticprivate

Definition at line 331 of file ArmoryImporter.cpp.

◆ importChar()

CharInfos * ArmoryImporter::importChar ( const std::string &  url) const
overridevirtual

Implements ImporterPlugin.

Definition at line 85 of file ArmoryImporter.cpp.

Here is the call graph for this function:

◆ importItem()

ItemRecord * ArmoryImporter::importItem ( const std::string &  url) const
overridevirtual

Implements ImporterPlugin.

Definition at line 154 of file ArmoryImporter.cpp.

Here is the call graph for this function:

◆ importNPC()

NPCInfos * ArmoryImporter::importNPC ( const std::string &  url) const
inlineoverridevirtual

Implements ImporterPlugin.

Definition at line 43 of file ArmoryImporter.h.

◆ readJSONValues()

int ArmoryImporter::readJSONValues ( ImportType  type,
const std::string &  url,
nlohmann::json &  result 
) const
private

Definition at line 177 of file ArmoryImporter.cpp.

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

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