Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
API::PdbReader Class Reference

#include <PDBReader.h>

Public Member Functions

 PdbReader ()=default
 
 ~PdbReader ()=default
 
void Read (const std::wstring &path, std::unordered_map< std::string, intptr_t > *offsets_dump, std::unordered_map< std::string, BitField > *bitfields_dump, const std::unordered_set< std::string > filter_set)
 

Private Member Functions

void DumpStructs (IDiaSymbol *)
 
void DumpFunctions (IDiaSymbol *)
 
void DumpGlobalVariables (IDiaSymbol *)
 
void DumpType (IDiaSymbol *, const std::string &, int) const
 
void DumpData (IDiaSymbol *, const std::string &) const
 
bool FilterSymbols (const std::string input)
 

Static Private Member Functions

static void LoadDataFromPdb (const std::wstring &, IDiaDataSource **, IDiaSession **, IDiaSymbol **)
 
static std::string GetSymbolNameString (IDiaSymbol *)
 
static uint32_t GetSymbolId (IDiaSymbol *)
 
static void Cleanup (IDiaSymbol *, IDiaSession *, IDiaDataSource *)
 
static std::string GetFunctionSymbolParams (IDiaSymbol *)
 

Private Attributes

std::unordered_map< std::string, intptr_t > * offsets_dump_ {nullptr}
 
std::unordered_map< std::string, BitField > * bitfields_dump_ {nullptr}
 
std::unordered_set< std::string > filter_set_
 
std::unordered_set< uint32_tvisited_
 

Detailed Description

Definition at line 12 of file PDBReader.h.

Constructor & Destructor Documentation

◆ PdbReader()

API::PdbReader::PdbReader ( )
default

◆ ~PdbReader()

API::PdbReader::~PdbReader ( )
default

Member Function Documentation

◆ Cleanup()

void API::PdbReader::Cleanup ( IDiaSymbol * symbol,
IDiaSession * session,
IDiaDataSource * source )
staticprivate

Definition at line 395 of file PDBReader.cpp.

◆ DumpData()

void API::PdbReader::DumpData ( IDiaSymbol * symbol,
const std::string & structure ) const
private

Definition at line 302 of file PDBReader.cpp.

◆ DumpFunctions()

void API::PdbReader::DumpFunctions ( IDiaSymbol * g_symbol)
private

Definition at line 175 of file PDBReader.cpp.

◆ DumpGlobalVariables()

void API::PdbReader::DumpGlobalVariables ( IDiaSymbol * g_symbol)
private

Definition at line 232 of file PDBReader.cpp.

◆ DumpStructs()

void API::PdbReader::DumpStructs ( IDiaSymbol * g_symbol)
private

Definition at line 147 of file PDBReader.cpp.

◆ DumpType()

void API::PdbReader::DumpType ( IDiaSymbol * symbol,
const std::string & structure,
int indent ) const
private

Definition at line 267 of file PDBReader.cpp.

◆ FilterSymbols()

bool API::PdbReader::FilterSymbols ( const std::string input)
private

Definition at line 350 of file PDBReader.cpp.

◆ GetFunctionSymbolParams()

std::string API::PdbReader::GetFunctionSymbolParams ( IDiaSymbol * pFunction)
staticprivate

Definition at line 407 of file PDBReader.cpp.

◆ GetSymbolId()

uint32_t API::PdbReader::GetSymbolId ( IDiaSymbol * symbol)
staticprivate

Definition at line 387 of file PDBReader.cpp.

◆ GetSymbolNameString()

std::string API::PdbReader::GetSymbolNameString ( IDiaSymbol * symbol)
staticprivate

Definition at line 367 of file PDBReader.cpp.

◆ LoadDataFromPdb()

void API::PdbReader::LoadDataFromPdb ( const std::wstring & path,
IDiaDataSource ** dia_source,
IDiaSession ** session,
IDiaSymbol ** symbol )
staticprivate

Definition at line 86 of file PDBReader.cpp.

◆ Read()

void API::PdbReader::Read ( const std::wstring & path,
std::unordered_map< std::string, intptr_t > * offsets_dump,
std::unordered_map< std::string, BitField > * bitfields_dump,
const std::unordered_set< std::string > filter_set )

Definition at line 44 of file PDBReader.cpp.

Member Data Documentation

◆ bitfields_dump_

std::unordered_map<std::string, BitField>* API::PdbReader::bitfields_dump_ {nullptr}
private

Definition at line 38 of file PDBReader.h.

◆ filter_set_

std::unordered_set<std::string> API::PdbReader::filter_set_
private

Definition at line 40 of file PDBReader.h.

◆ offsets_dump_

std::unordered_map<std::string, intptr_t>* API::PdbReader::offsets_dump_ {nullptr}
private

Definition at line 37 of file PDBReader.h.

◆ visited_

std::unordered_set<uint32_t> API::PdbReader::visited_
private

Definition at line 41 of file PDBReader.h.


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