ZNC  trunk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | Private Attributes | List of all members
CBuffer Class Reference

#include <Buffer.h>

+ Inheritance diagram for CBuffer:
+ Collaboration diagram for CBuffer:

Public Member Functions

 CBuffer (unsigned int uLineCount=100)
 
 ~CBuffer ()
 
size_type AddLine (const CString &sFormat, const CString &sText="", const timeval *ts=0)
 
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. More...
 
size_type UpdateExactLine (const CString &sFormat, const CString &sText="")
 Same as UpdateLine, but does nothing if this exact line already exists. More...
 
const CBufLineGetBufLine (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
 

Private Attributes

elements
 STL member. More...
 

Constructor & Destructor Documentation

CBuffer::CBuffer ( unsigned int  uLineCount = 100)
CBuffer::~CBuffer ( )

Member Function Documentation

size_type CBuffer::AddLine ( const CString sFormat,
const CString sText = "",
const timeval *  ts = 0 
)
void CBuffer::Clear ( )
inline
const CBufLine& CBuffer::GetBufLine ( unsigned int  uIdx) const
CString CBuffer::GetLine ( size_type  uIdx,
const CClient Client,
const MCString msParams = MCString::EmptyMap 
) const
unsigned int CBuffer::GetLineCount ( ) const
inline

References m_uLineCount.

Referenced by CChan::GetBufferCount().

bool CBuffer::IsEmpty ( ) const
inline
bool CBuffer::SetLineCount ( unsigned int  u,
bool  bForce = false 
)

Referenced by CChan::SetBufferCount().

size_type CBuffer::Size ( ) const
inline
size_type CBuffer::UpdateExactLine ( const CString sFormat,
const CString sText = "" 
)

Same as UpdateLine, but does nothing if this exact line already exists.

We need this because "/version" sends us the 005 raws again

Referenced by CIRCNetwork::UpdateExactRawBuffer().

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.

Referenced by CIRCNetwork::UpdateMotdBuffer(), CIRCNetwork::UpdateQueryBuffer(), and CIRCNetwork::UpdateRawBuffer().

Member Data Documentation

unsigned int CBuffer::m_uLineCount
protected

Referenced by GetLineCount().


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