Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CGGEPBlock Class Reference

#include <GGEP.h>

List of all members.

Public Member Functions

 CGGEPBlock ()
virtual ~CGGEPBlock ()
void Clear ()
CGGEPItemAdd (LPCTSTR pszID)
CGGEPItemFind (LPCTSTR pszID, DWORD nMinLength=0)
BOOL ReadFromPacket (CPacket *pPacket)
BOOL ReadFromString (LPCTSTR pszData)
void Write (CPacket *pPacket)
void Write (CString &str)

Static Public Member Functions

static CGGEPBlockFromPacket (CPacket *pPacket)

Public Attributes

CGGEPItemm_pFirst
CGGEPItemm_pLast
BYTE * m_pInput
DWORD m_nInput

Protected Member Functions

BOOL ReadInternal ()
BYTE ReadByte ()

Friends

class CGGEPItem


Constructor & Destructor Documentation

CGGEPBlock::CGGEPBlock  ) 
 

Definition at line 39 of file GGEP.cpp.

References m_nInput, m_pFirst, m_pInput, m_pLast, and NULL.

Referenced by FromPacket().

CGGEPBlock::~CGGEPBlock  )  [virtual]
 

Definition at line 47 of file GGEP.cpp.

References Clear().


Member Function Documentation

CGGEPItem * CGGEPBlock::Add LPCTSTR  pszID  ) 
 

Definition at line 70 of file GGEP.cpp.

References CGGEPItem, m_pFirst, m_pLast, and NULL.

void CGGEPBlock::Clear  ) 
 

Definition at line 55 of file GGEP.cpp.

References m_pFirst, m_pLast, CGGEPItem::m_pNext, and NULL.

Referenced by Write(), and ~CGGEPBlock().

CGGEPItem * CGGEPBlock::Find LPCTSTR  pszID,
DWORD  nMinLength = 0
 

Definition at line 86 of file GGEP.cpp.

References m_pFirst, CGGEPItem::m_pNext, and NULL.

Referenced by CQuerySearch::ReadG1Packet(), CQueryHit::ReadG1Packet(), and CQueryHit::ReadGGEP().

CGGEPBlock * CGGEPBlock::FromPacket CPacket pPacket  )  [static]
 

Definition at line 102 of file GGEP.cpp.

References CGGEPBlock(), NULL, and ReadFromPacket().

BYTE CGGEPBlock::ReadByte  )  [protected]
 

Definition at line 170 of file GGEP.cpp.

References m_nInput, and m_pInput.

Referenced by ReadInternal().

BOOL CGGEPBlock::ReadFromPacket CPacket pPacket  ) 
 

Definition at line 113 of file GGEP.cpp.

References m_nInput, m_pInput, and ReadInternal().

Referenced by FromPacket(), and CQueryHit::ReadGGEP().

BOOL CGGEPBlock::ReadFromString LPCTSTR  pszData  ) 
 

Definition at line 125 of file GGEP.cpp.

References m_nInput, m_pInput, and ReadInternal().

Referenced by CQuerySearch::ReadG1Packet(), and CQueryHit::ReadG1Packet().

BOOL CGGEPBlock::ReadInternal  )  [protected]
 

Definition at line 136 of file GGEP.cpp.

References CGGEPItem, GGEP_HDR_IDLEN, GGEP_HDR_LAST, GGEP_MAGIC, m_nInput, m_pFirst, m_pLast, ReadByte(), and CGGEPItem::ReadFrom().

Referenced by ReadFromPacket(), and ReadFromString().

void CGGEPBlock::Write CString &  str  ) 
 

Definition at line 196 of file GGEP.cpp.

References Clear(), GGEP_MAGIC, m_pFirst, and CGGEPItem::m_pNext.

void CGGEPBlock::Write CPacket pPacket  ) 
 

Definition at line 182 of file GGEP.cpp.

References Clear(), GGEP_MAGIC, m_pFirst, CGGEPItem::m_pNext, and CPacket::WriteByte().


Friends And Related Function Documentation

friend class CGGEPItem [friend]
 

Definition at line 61 of file GGEP.h.

Referenced by Add(), and ReadInternal().


Member Data Documentation

DWORD CGGEPBlock::m_nInput
 

Definition at line 44 of file GGEP.h.

Referenced by CGGEPBlock(), ReadByte(), ReadFromPacket(), ReadFromString(), and ReadInternal().

CGGEPItem* CGGEPBlock::m_pFirst
 

Definition at line 41 of file GGEP.h.

Referenced by Add(), CGGEPBlock(), Clear(), Find(), ReadInternal(), and Write().

BYTE* CGGEPBlock::m_pInput
 

Definition at line 43 of file GGEP.h.

Referenced by CGGEPBlock(), ReadByte(), ReadFromPacket(), and ReadFromString().

CGGEPItem* CGGEPBlock::m_pLast
 

Definition at line 42 of file GGEP.h.

Referenced by Add(), CGGEPBlock(), Clear(), and ReadInternal().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:07 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2