SegStreamMarker Class Reference

SegStreamMarker refines ByteStreamMarker with a physical stream position, allowing for random-access mark/reset. More...

#include <SegStream.h>

Inheritance diagram for SegStreamMarker:

ByteStreamMarker List of all members.

Public Member Functions

ByteStream const & getStream () const
 
Returns:
marked stream


Private Member Functions

 SegStreamMarker (SegStream const &segStream)
virtual FileSize getOffset () const
 
Returns:
byte offset of marked position within stream


Private Attributes

SegStreamPosition segPos
 Position for random-access mark/reset.

Friends

class SegInputStream

Detailed Description

SegStreamMarker refines ByteStreamMarker with a physical stream position, allowing for random-access mark/reset.

Definition at line 137 of file SegStream.h.


Constructor & Destructor Documentation

SegStreamMarker::SegStreamMarker ( SegStream const &  segStream  )  [explicit, private]

Definition at line 53 of file SegStream.cpp.

References SegStreamPosition::cbOffset, MAXU, SegStreamPosition::segByteId, and segPos.

00054     : ByteStreamMarker(segStream)
00055 {
00056     segPos.segByteId = SegByteId(MAXU);
00057     segPos.cbOffset = MAXU;
00058 }


Member Function Documentation

FileSize SegStreamMarker::getOffset (  )  const [private, virtual]

Returns:
byte offset of marked position within stream

Implements ByteStreamMarker.

Definition at line 60 of file SegStream.cpp.

References SegStreamPosition::cbOffset, and segPos.

00061 {
00062     return segPos.cbOffset;
00063 }

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 SegInputStream [friend]

Definition at line 140 of file SegStream.h.


Member Data Documentation

SegStreamPosition SegStreamMarker::segPos [private]

Position for random-access mark/reset.

Definition at line 145 of file SegStream.h.

Referenced by getOffset(), SegInputStream::mark(), SegInputStream::reset(), and SegStreamMarker().


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