AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
SymbolDetail Struct Reference

#include "WheatyExceptionReport.h"

Public Member Functions

 SymbolDetail ()
 
std::string ToString ()
 
bool empty () const
 

Public Attributes

std::string Prefix
 
std::string Type
 
std::string Suffix
 
std::string Name
 
std::string Value
 
bool Logged
 
bool HasChildren
 

Detailed Description

Constructor & Destructor Documentation

◆ SymbolDetail()

SymbolDetail::SymbolDetail ( )
inline
116: Prefix(), Type(), Suffix(), Name(), Value(), Logged(false), HasChildren(false) {}
std::string Prefix
Definition: WheatyExceptionReport.h:125
bool Logged
Definition: WheatyExceptionReport.h:130
std::string Value
Definition: WheatyExceptionReport.h:129
std::string Type
Definition: WheatyExceptionReport.h:126
std::string Suffix
Definition: WheatyExceptionReport.h:127
bool HasChildren
Definition: WheatyExceptionReport.h:131
std::string Name
Definition: WheatyExceptionReport.h:128

Member Function Documentation

◆ empty()

bool SymbolDetail::empty ( ) const
inline
121 {
122 return Value.empty() && !HasChildren;
123 }

References HasChildren, and Value.

◆ ToString()

std::string SymbolDetail::ToString ( )
1691{
1692 Logged = true;
1693 std::string formatted = Prefix + Type + Suffix;
1694 if (!Name.empty())
1695 {
1696 if (!formatted.empty())
1697 {
1698 formatted += " ";
1699 }
1700 formatted += Name;
1701 }
1702 if (!Value.empty())
1703 {
1704 if (Name == "passwd" || Name == "password")
1705 {
1706 Value = "<sensitive data>";
1707 }
1708 formatted += " = " + Value;
1709 }
1710 return formatted;
1711}

References Logged, Name, Prefix, Suffix, Type, and Value.

Member Data Documentation

◆ HasChildren

bool SymbolDetail::HasChildren

Referenced by empty().

◆ Logged

bool SymbolDetail::Logged

Referenced by ToString().

◆ Name

std::string SymbolDetail::Name

Referenced by ToString().

◆ Prefix

std::string SymbolDetail::Prefix

Referenced by ToString().

◆ Suffix

std::string SymbolDetail::Suffix

Referenced by ToString().

◆ Type

std::string SymbolDetail::Type

Referenced by ToString().

◆ Value

std::string SymbolDetail::Value

Referenced by empty(), and ToString().