• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kget

bt::BNode

bt::BNode Class Reference

#include <bnode.h>

Inheritance diagram for bt::BNode:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Joris Guisson

Base class for a node in a b-encoded piece of data

There are 3 possible pieces of data in b-encoded piece of data. This is the base class for all those 3 things.

Definition at line 40 of file bnode.h.


Public Types

enum  Type { VALUE, DICT, LIST }

Public Member Functions

 BNode (Type type, Uint32 off)
Uint32 getLength () const
Uint32 getOffset () const
Type getType () const
virtual void printDebugInfo ()=0
void setLength (Uint32 l)
virtual ~BNode ()

Member Enumeration Documentation

enum bt::BNode::Type

Enumerator:
VALUE 
DICT 
LIST 

Definition at line 43 of file bnode.h.


Constructor & Destructor Documentation

bt::BNode::BNode ( Type  type,
Uint32  off 
)

Constructor, sets the Type, and the offset into the data.

Parameters:
type Type of node
off The offset into the data

Definition at line 26 of file bnode.cpp.

bt::BNode::~BNode (  )  [virtual]

Definition at line 31 of file bnode.cpp.


Member Function Documentation

Uint32 bt::BNode::getLength (  )  const [inline]

Get the length this node takes up in the bytearray.

Definition at line 64 of file bnode.h.

Uint32 bt::BNode::getOffset (  )  const [inline]

Get the offset in the bytearray where this node starts.

Definition at line 61 of file bnode.h.

Type bt::BNode::getType (  )  const [inline]

Get the type of node.

Definition at line 58 of file bnode.h.

virtual void bt::BNode::printDebugInfo (  )  [pure virtual]

Print some debugging info.

Implemented in bt::BValueNode, bt::BDictNode, and bt::BListNode.

void bt::BNode::setLength ( Uint32  l  )  [inline]

Set the length.

Definition at line 67 of file bnode.h.


The documentation for this class was generated from the following files:
  • bnode.h
  • bnode.cpp

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal