Protocols::BitTorrent::Bencoding::BString Class Reference

#include <BString.h> [code]

Inherits Protocols::BitTorrent::Bencoding::BItem.

Inheritance diagram for Protocols::BitTorrent::Bencoding::BString:

Inheritance graph
[legend]
Collaboration diagram for Protocols::BitTorrent::Bencoding::BString:

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents the bencoding string type.

A Derived form BItem class representing the bencoding string type.

Definition at line 37 of file BString.h.

Public Member Functions

 BString (const QByteArray &string=QByteArray())
 Constructs a BString from QByteArray byteArray.
 ~BString ()
 BString destructor.
QByteArray value () const
 Returns the string value.

Protected Member Functions

bool read (BinaryReader &)
 Reads and loads a bencoded string from the reader.

Protected Attributes

QByteArray value_


Constructor & Destructor Documentation

Protocols::BitTorrent::Bencoding::BString::BString const QByteArray &  string = QByteArray()  )  [inline]
 

Constructs a BString from QByteArray byteArray.

Definition at line 52 of file BString.h.

Protocols::BitTorrent::Bencoding::BString::~BString  )  [inline]
 

BString destructor.

Definition at line 57 of file BString.h.


Member Function Documentation

bool BString::read BinaryReader reader  )  [protected, virtual]
 

Reads and loads a bencoded string from the reader.

Returns true if the loaded string is correct, false otherwise.

Implements Protocols::BitTorrent::Bencoding::BItem.

Definition at line 31 of file BString.cpp.

QByteArray Protocols::BitTorrent::Bencoding::BString::value  )  const [inline]
 

Returns the string value.

Definition at line 61 of file BString.h.


Member Data Documentation

QByteArray Protocols::BitTorrent::Bencoding::BString::value_ [protected]
 

Definition at line 48 of file BString.h.


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