TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
 

Constructor & Destructor Documentation

SymbolDetail::SymbolDetail ( )
inline
115 : Prefix(), Type(), Suffix(), Name(), Value(), Logged(false), HasChildren(false) {}
bool HasChildren
Definition: WheatyExceptionReport.h:143
bool Logged
Definition: WheatyExceptionReport.h:142
std::string Type
Definition: WheatyExceptionReport.h:138
std::string Prefix
Definition: WheatyExceptionReport.h:137
std::string Suffix
Definition: WheatyExceptionReport.h:139
std::string Value
Definition: WheatyExceptionReport.h:141
std::string Name
Definition: WheatyExceptionReport.h:140

Member Function Documentation

bool SymbolDetail::empty ( ) const
inline
133  {
134  return Value.empty() && !HasChildren;
135  }
bool HasChildren
Definition: WheatyExceptionReport.h:143
std::string SymbolDetail::ToString ( )
inline
118  {
119  Logged = true;
120  std::string formatted = Prefix + Type + Suffix;
121  if (!Name.empty())
122  {
123  if (!formatted.empty())
124  formatted += " ";
125  formatted += Name;
126  }
127  if (!Value.empty())
128  formatted += " = " + Value;
129  return formatted;
130  }
bool Logged
Definition: WheatyExceptionReport.h:142
std::string Prefix
Definition: WheatyExceptionReport.h:137
std::string Suffix
Definition: WheatyExceptionReport.h:139
std::string Name
Definition: WheatyExceptionReport.h:140
Type
Type of JSON value.
Definition: rapidjson.h:642

Member Data Documentation

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

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