framefast::basic_frameout Class Reference

Abstract helper object to write a frame. More...

#include <frameio.hh>

Inheritance diagram for framefast::basic_frameout:

framefast::desc_out framefast::memory_out framefast::file_out

List of all members.

Public Member Functions

 basic_frameout ()
 Constructor.
virtual ~basic_frameout ()
 Denstructor.
virtual bool open (int len=0)=0
virtual void close ()=0
virtual bool write (const char *p, int len)=0
virtual bool write (const src_dest_t *s, int slen)
virtual int length () const

Protected Attributes

int fSofar
 written so far

Classes

struct  src_dest_t
 address and length of a data block More...


Detailed Description

Abstract helper object to write a frame.

Member Function Documentation

virtual bool framefast::basic_frameout::open ( int  len = 0  )  [pure virtual]

Open method.

Parameters:
len Length of frame
Returns:
true if successful

Implemented in framefast::memory_out, framefast::desc_out, and framefast::file_out.

virtual void framefast::basic_frameout::close (  )  [pure virtual]

Close method.

Implemented in framefast::memory_out, framefast::desc_out, and framefast::file_out.

virtual bool framefast::basic_frameout::write ( const char *  p,
int  len 
) [pure virtual]

Output method.

Parameters:
p Pointer to data block
len Length of data block
Returns:
true if successful

Implemented in framefast::memory_out, and framefast::desc_out.

virtual bool framefast::basic_frameout::write ( const src_dest_t s,
int  slen 
) [inline, virtual]

Output method. Scatter/gather write method.

Parameters:
s Pointer to an array of data block addresses
slen Length of array of data block addresses
Returns:
true if successful

Reimplemented in framefast::memory_out, and framefast::desc_out.

virtual int framefast::basic_frameout::length (  )  const [inline, virtual]

Output size method.

Returns:
Number of bytes written so far


The documentation for this class was generated from the following file:
Generated on Sun Mar 8 19:21:16 2009 for dmt by  doxygen 1.5.4