Public Types | Public Member Functions | Static Public Member Functions

Swift::IBB Class Reference

Inheritance diagram for Swift::IBB:
Collaboration diagram for Swift::IBB:

List of all members.

Public Types

enum  Action { Open, Close, Data }
enum  StanzaType { IQStanza, MessageStanza }
typedef boost::shared_ptr< IBBref

Public Member Functions

 IBB (Action action=Open, const std::string &streamID="")
void setAction (Action action)
Action getAction () const
void setStanzaType (StanzaType stanzaType)
StanzaType getStanzaType () const
void setStreamID (const std::string &id)
const std::string & getStreamID () const
const std::vector< unsigned
char > & 
getData () const
void setData (const std::vector< unsigned char > &data)
int getBlockSize () const
void setBlockSize (int blockSize)
int getSequenceNumber () const
void setSequenceNumber (int i)

Static Public Member Functions

static IBB::ref createIBBOpen (const std::string &streamID, int blockSize)
static IBB::ref createIBBData (const std::string &streamID, int sequenceNumber, const std::vector< unsigned char > &data)
static IBB::ref createIBBClose (const std::string &streamID)

Detailed Description

Definition at line 17 of file IBB.h.

Member Typedef Documentation

typedef boost::shared_ptr<IBB> Swift::IBB::ref

Reimplemented from Swift::Payload.

Definition at line 19 of file IBB.h.

Member Enumeration Documentation


Definition at line 21 of file IBB.h.


Definition at line 26 of file IBB.h.

Constructor & Destructor Documentation

Swift::IBB::IBB ( Action  action = Open,
const std::string &  streamID = "" 
) [inline]

Definition at line 31 of file IBB.h.

Member Function Documentation

static IBB::ref Swift::IBB::createIBBClose ( const std::string &  streamID  )  [inline, static]

Definition at line 47 of file IBB.h.

static IBB::ref Swift::IBB::createIBBData ( const std::string &  streamID,
int  sequenceNumber,
const std::vector< unsigned char > &  data 
) [inline, static]

Definition at line 40 of file IBB.h.

static IBB::ref Swift::IBB::createIBBOpen ( const std::string &  streamID,
int  blockSize 
) [inline, static]

Definition at line 34 of file IBB.h.

Action Swift::IBB::getAction (  )  const [inline]

Definition at line 55 of file IBB.h.

int Swift::IBB::getBlockSize (  )  const [inline]

Definition at line 83 of file IBB.h.

const std::vector<unsigned char>& Swift::IBB::getData (  )  const [inline]

Definition at line 75 of file IBB.h.

int Swift::IBB::getSequenceNumber (  )  const [inline]

Definition at line 91 of file IBB.h.

StanzaType Swift::IBB::getStanzaType (  )  const [inline]

Definition at line 63 of file IBB.h.

const std::string& Swift::IBB::getStreamID (  )  const [inline]

Definition at line 71 of file IBB.h.

void Swift::IBB::setAction ( Action  action  )  [inline]

Definition at line 51 of file IBB.h.

void Swift::IBB::setBlockSize ( int  blockSize  )  [inline]

Definition at line 87 of file IBB.h.

void Swift::IBB::setData ( const std::vector< unsigned char > &  data  )  [inline]

Definition at line 79 of file IBB.h.

void Swift::IBB::setSequenceNumber ( int  i  )  [inline]

Definition at line 95 of file IBB.h.

void Swift::IBB::setStanzaType ( StanzaType  stanzaType  )  [inline]

Definition at line 59 of file IBB.h.

void Swift::IBB::setStreamID ( const std::string &  id  )  [inline]

Definition at line 67 of file IBB.h.