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

SDESItem Class Reference

#include <sdes.h>

List of all members.

Public Types

enum  SDES_ITEM_TYPE {
  SDES_UNDEF = 0, SDES_CNAME = 1, SDES_NAME = 2, SDES_EMAIL = 3,
  SDES_PHONE = 4, SDES_LOC = 5, SDES_TOOL = 6, SDES_NOTE = 7,
  SDES_PRIV = 8
}

Public Member Functions

 SDESItem (const char *name=NULL)
 SDESItem (SDES_ITEM_TYPE type, const char *content)
 SDESItem (const SDESItem &sdesItem)
virtual ~SDESItem ()
SDESItemoperator= (const SDESItem &sdesItem)
virtual cObject * dup () const
virtual const char * className () const
virtual void info (char *buf)
virtual void writeContents (ostream &os)
virtual SDES_ITEM_TYPE type ()
virtual const char * content ()
virtual int length ()

Protected Attributes

SDES_ITEM_TYPE _type
int _length
const char * _content


Detailed Description

The class SDESItem is used for storing a source description item (type of description, description string) for an rtp end system.


Member Enumeration Documentation

enum SDESItem::SDES_ITEM_TYPE
 

This enumeration holds the types of source description items as defined in the rfc. In this implementation only SDES_UNDEF and SDES_CNAME are usable.

Enumeration values:
SDES_UNDEF 
SDES_CNAME 
SDES_NAME 
SDES_EMAIL 
SDES_PHONE 
SDES_LOC 
SDES_TOOL 
SDES_NOTE 
SDES_PRIV 


Constructor & Destructor Documentation

SDESItem::SDESItem const char *  name = NULL  ) 
 

Default constructor.

SDESItem::SDESItem SDES_ITEM_TYPE  type,
const char *  content
 

Constructor which sets the entry.

SDESItem::SDESItem const SDESItem sdesItem  ) 
 

Copy constructor.

SDESItem::~SDESItem  )  [virtual]
 

Destructor.


Member Function Documentation

const char * SDESItem::className  )  const [virtual]
 

Returns the class name "SDESItem".

const char * SDESItem::content  )  [virtual]
 

Returns the stored sdes string.

cObject * SDESItem::dup  )  const [virtual]
 

Duplicates theis SDESItem by calling the copy constructor.

void SDESItem::info char *  buf  )  [virtual]
 

Writes a short info about this SDESItem into the given string.

int SDESItem::length  )  [virtual]
 

This method returns the size of this SDESItem in bytes as it would be in the real world.

SDESItem & SDESItem::operator= const SDESItem sdesItem  ) 
 

Assignment operator.

SDESItem::SDES_ITEM_TYPE SDESItem::type  )  [virtual]
 

Returns the type of this sdes item.

void SDESItem::writeContents ostream &  os  )  [virtual]
 

Writes an info about this SDESItem into the give output stream.


Member Data Documentation

const char* SDESItem::_content [protected]
 

The sdes string.

int SDESItem::_length [protected]
 

The length of this SDESItem.

SDES_ITEM_TYPE SDESItem::_type [protected]
 

The type of this SDESItem.


The documentation for this class was generated from the following files:
Generated on Tue Sep 12 12:20:21 2006 for RTP model for OMNeT++ by  doxygen 1.4.2