wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
wowlib::FileKey Struct Reference

#include <wowlib/core/file_key.hpp>

Public Member Functions

 FileKey ()=default
 FileKey (std::string_view filePath)
 FileKey (FileDataID fileId)
 An id-only key.
 FileKey (std::string_view filePath, FileDataID fileId)
 A key carrying both identities of one file.

Public Attributes

std::optional< FileDataID > fdid
 The numeric identifier, if known.
std::optional< std::string > path
 The canonical client-internal path, if known.

Detailed Description

Definition at line 26 of file file_key.hpp.

Constructor & Destructor Documentation

◆ FileKey() [1/4]

wowlib::FileKey::FileKey ( )
default

◆ FileKey() [2/4]

wowlib::FileKey::FileKey ( std::string_view filePath)
inline
Parameters
filePaththe client-internal file path

Definition at line 35 of file file_key.hpp.

References wowlib::normalizePath(), and path.

◆ FileKey() [3/4]

wowlib::FileKey::FileKey ( FileDataID fileId)
inline

An id-only key.

Parameters
fileIdthe numeric file identifier

Definition at line 40 of file file_key.hpp.

References fdid.

◆ FileKey() [4/4]

wowlib::FileKey::FileKey ( std::string_view filePath,
FileDataID fileId )
inline

A key carrying both identities of one file.

Parameters
filePaththe client-internal file path
fileIdthe numeric file identifier

Definition at line 44 of file file_key.hpp.

References fdid, wowlib::normalizePath(), and path.

Member Data Documentation

◆ fdid

std::optional<FileDataID> wowlib::FileKey::fdid

◆ path


The documentation for this struct was generated from the following file: