Twitch SDK (Internal)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ttv::chat::ChatWriter Class Reference

#include <chatwriter.h>

Inheritance diagram for ttv::chat::ChatWriter:
ttv::chat::IChatWriteNetworkEvent

Public Member Functions

 ChatWriter ()
 
 ~ChatWriter ()
 
void SetTransport (std::shared_ptr< IChatTransport > pTransport)
 
void WriteEvent (const ChatNetworkEvent &evt)
 

Protected Member Functions

void WriteRaw (const std::string &message)
 

Protected Attributes

std::shared_ptr< IChatTransportmTransport
 
char mParseBuffer [IChatTransport::kMaxBufferSize]
 A scratch buffer for parsing lines. More...
 

Detailed Description

Handles receiving a chat event and writing it to the transport.

Constructor & Destructor Documentation

◆ ChatWriter()

ttv::chat::ChatWriter::ChatWriter ( )

◆ ~ChatWriter()

ttv::chat::ChatWriter::~ChatWriter ( )

Member Function Documentation

◆ SetTransport()

void ttv::chat::ChatWriter::SetTransport ( std::shared_ptr< IChatTransport pTransport)

◆ WriteEvent()

void ttv::chat::ChatWriter::WriteEvent ( const ChatNetworkEvent evt)
virtual

◆ WriteRaw()

void ttv::chat::ChatWriter::WriteRaw ( const std::string &  message)
protectedvirtual

Member Data Documentation

◆ mParseBuffer

char ttv::chat::ChatWriter::mParseBuffer[IChatTransport::kMaxBufferSize]
protected

A scratch buffer for parsing lines.

◆ mTransport

std::shared_ptr<IChatTransport> ttv::chat::ChatWriter::mTransport
protected

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