TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ChatLink Class Referenceabstract

#include <ChatLink.h>

Public Member Functions

 ChatLink ()
 
virtual ~ChatLink ()
 
void SetColor (uint32 color)
 
void SetBounds (std::istringstream::pos_type startPos, std::istringstream::pos_type endPos)
 
virtual bool Initialize (std::istringstream &iss)=0
 
virtual bool ValidateName (char *buffer, const char *context)=0
 

Protected Attributes

uint32 _color
 
std::string _name
 
std::istringstream::pos_type _startPos
 
std::istringstream::pos_type _endPos
 

Constructor & Destructor Documentation

ChatLink::ChatLink ( )
inline
41 : _color(0), _startPos(0), _endPos(0) { }
virtual ChatLink::~ChatLink ( )
inlinevirtual
42 { }

Member Function Documentation

virtual bool ChatLink::Initialize ( std::istringstream &  iss)
pure virtual

Implemented in GlyphChatLink, EnchantmentChatLink, TalentChatLink, TradeChatLink, AchievementChatLink, SpellChatLink, QuestChatLink, and ItemChatLink.

+ Here is the caller graph for this function:

void ChatLink::SetBounds ( std::istringstream::pos_type  startPos,
std::istringstream::pos_type  endPos 
)
inline
45 { _startPos = startPos; _endPos = endPos; }

+ Here is the caller graph for this function:

void ChatLink::SetColor ( uint32  color)
inline
43 { _color = color; }

+ Here is the caller graph for this function:

bool ChatLink::ValidateName ( char *  buffer,
const char *  context 
)
pure virtual

Implemented in AchievementChatLink, SpellChatLink, QuestChatLink, and ItemChatLink.

100 {
101  _name = buffer;
102  return true;
103 }

+ Here is the caller graph for this function:

Member Data Documentation

uint32 ChatLink::_color
protected
std::istringstream::pos_type ChatLink::_endPos
protected
std::string ChatLink::_name
protected
std::istringstream::pos_type ChatLink::_startPos
protected

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