SequentialByteStreamMarker Class Reference

SequentialByteStreamMarker is a default implementation of ByteStreamMarker based on sequential byte position. More...

#include <ByteStream.h>

Inheritance diagram for SequentialByteStreamMarker:

ByteStreamMarker List of all members.

Public Member Functions

virtual ~SequentialByteStreamMarker ()
ByteStream const & getStream () const
 
Returns:
marked stream


Protected Member Functions

 SequentialByteStreamMarker (ByteStream const &stream)
virtual FileSize getOffset () const
 
Returns:
byte offset of marked position within stream


Private Attributes

FileSize cbOffset
 Byte position in stream.

Friends

class ByteInputStream

Detailed Description

SequentialByteStreamMarker is a default implementation of ByteStreamMarker based on sequential byte position.

Definition at line 89 of file ByteStream.h.


Constructor & Destructor Documentation

virtual SequentialByteStreamMarker::~SequentialByteStreamMarker (  )  [inline, virtual]

Definition at line 99 of file ByteStream.h.

00100     {
00101     }

SequentialByteStreamMarker::SequentialByteStreamMarker ( ByteStream const &  stream  )  [explicit, protected]

Definition at line 44 of file ByteStream.cpp.

References cbOffset, and MAXU.

00046     : ByteStreamMarker(streamInit)
00047 {
00048     cbOffset = MAXU;
00049 }


Member Function Documentation

FileSize SequentialByteStreamMarker::getOffset (  )  const [protected, virtual]

Returns:
byte offset of marked position within stream

Implements ByteStreamMarker.

Definition at line 51 of file ByteStream.cpp.

References cbOffset.

00052 {
00053     return cbOffset;
00054 }

ByteStream const & ByteStreamMarker::getStream (  )  const [inherited]

Returns:
marked stream

Definition at line 39 of file ByteStream.cpp.

References ByteStreamMarker::stream.

Referenced by SegInputStream::mark(), ByteInputStream::mark(), SegInputStream::reset(), and ByteInputStream::reset().

00040 {
00041     return stream;
00042 }


Friends And Related Function Documentation

friend class ByteInputStream [friend]

Definition at line 91 of file ByteStream.h.


Member Data Documentation

FileSize SequentialByteStreamMarker::cbOffset [private]

Byte position in stream.

Definition at line 96 of file ByteStream.h.

Referenced by getOffset(), ByteInputStream::mark(), ByteInputStream::reset(), and SequentialByteStreamMarker().


The documentation for this class was generated from the following files:
Generated on Mon Jun 22 04:00:46 2009 for Fennel by  doxygen 1.5.1