|
ZNC trunk
|
#include <Buffer.h>
Public Member Functions | |
| CBuffer (unsigned int uLineCount=100) | |
| ~CBuffer () | |
| size_type | AddLine (const CMessage &Format, const CString &sText="") |
| size_type | UpdateLine (const CString &sCommand, const CMessage &Format, const CString &sText="") |
| size_type | UpdateExactLine (const CMessage &Format, const CString &sText="") |
| size_type | AddLine (const CString &sFormat, const CString &sText="", const timeval *ts=nullptr, const MCString &mssTags=MCString::EmptyMap) |
| size_type | UpdateLine (const CString &sMatch, const CString &sFormat, const CString &sText="") |
| Same as AddLine, but replaces a line whose format string starts with sMatch if there is one. | |
| size_type | UpdateExactLine (const CString &sFormat, const CString &sText="") |
| Same as UpdateLine, but does nothing if this exact line already exists. | |
| const CBufLine & | GetBufLine (unsigned int uIdx) const |
| CString | GetLine (size_type uIdx, const CClient &Client, const MCString &msParams=MCString::EmptyMap) const |
| size_type | Size () const |
| bool | IsEmpty () const |
| void | Clear () |
| bool | SetLineCount (unsigned int u, bool bForce=false) |
| unsigned int | GetLineCount () const |
Protected Attributes | |
| unsigned int | m_uLineCount |
| CBuffer::CBuffer | ( | unsigned int | uLineCount = 100 | ) |
| CBuffer::~CBuffer | ( | ) |
| size_type CBuffer::AddLine | ( | const CString & | sFormat, |
| const CString & | sText = "", | ||
| const timeval * | ts = nullptr, | ||
| const MCString & | mssTags = MCString::EmptyMap ) |
References MCString::EmptyMap.
|
inline |
| const CBufLine & CBuffer::GetBufLine | ( | unsigned int | uIdx | ) | const |
| CString CBuffer::GetLine | ( | size_type | uIdx, |
| const CClient & | Client, | ||
| const MCString & | msParams = MCString::EmptyMap ) const |
References MCString::EmptyMap.
|
inline |
References m_uLineCount.
|
inline |
| bool CBuffer::SetLineCount | ( | unsigned int | u, |
| bool | bForce = false ) |
|
inline |
Same as UpdateLine, but does nothing if this exact line already exists.
We need this because "/version" sends us the 005 raws again
| size_type CBuffer::UpdateLine | ( | const CString & | sCommand, |
| const CMessage & | Format, | ||
| const CString & | sText = "" ) |
| size_type CBuffer::UpdateLine | ( | const CString & | sMatch, |
| const CString & | sFormat, | ||
| const CString & | sText = "" ) |
Same as AddLine, but replaces a line whose format string starts with sMatch if there is one.
|
protected |
Referenced by GetLineCount().