AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
StringTransaction Class Reference

Public Member Functions

 StringTransaction ()
 
void Append (char const *sql)
 
char const * GetBuffer () const
 

Private Attributes

std::string _buf
 

Detailed Description

Constructor & Destructor Documentation

◆ StringTransaction()

StringTransaction::StringTransaction ( )
inline
129: _buf() { }
std::string _buf
Definition: PlayerDump.cpp:144

Member Function Documentation

◆ Append()

void StringTransaction::Append ( char const *  sql)
inline
132 {
133 std::ostringstream oss;
134 oss << sql << '\n';
135 _buf += oss.str();
136 }

References _buf.

Referenced by AppendTableDump().

◆ GetBuffer()

char const * StringTransaction::GetBuffer ( ) const
inline
139 {
140 return _buf.c_str();
141 }

References _buf.

Referenced by PlayerDumpWriter::GetDump().

Member Data Documentation

◆ _buf

std::string StringTransaction::_buf
private

Referenced by Append(), and GetBuffer().