Ogg::Logical::Writer Class Reference
[Derivable and Nonderivable Classes]

Logical stream writer. More...

#include <Logical.H>

List of all members.

Public Member Functions

 ~Writer ()
 Ends writing this Logical stream.
size_t dataSize ()
 Get the current size of the data payload.
void dataSize (size_t)
 Set the size of the next packet's data payload.
void flush ()
 Flush previously enqued packets.
void beginData ()
 Set the current packet to begin data packets.
void granulePosition (Position)
 Set granule position of current packet.
Position granulePosition ()
 Get granule position of the last enqued packet.
size_t pageSize ()
 Get the current page size for transport.
void pageSize (size_t)
 Set size for transport pages.
Writeroperator++ ()
 Creates the next packet and enques the last.
Packetoperator-> () const throw ()
 Get to the Packet methods.


Detailed Description

Logical stream writer.

Do not derive from Writer. It is an iterator-like class for writing packets.


Constructor & Destructor Documentation

Ogg::Logical::Writer::~Writer (  ) 

Ends writing this Logical stream.

The user deletes the Writer instance, or the Writer instance falls out of scrope, which implicitly calls this destructor which closes the Logical stream.


Member Function Documentation

size_t Ogg::Logical::Writer::dataSize (  ) 

Get the current size of the data payload.

void Ogg::Logical::Writer::dataSize ( size_t   ) 

Set the size of the next packet's data payload.

void Ogg::Logical::Writer::flush (  ) 

Flush previously enqued packets.

void Ogg::Logical::Writer::beginData (  ) 

Set the current packet to begin data packets.

Writer assumes header packets until beginData() is called.

void Ogg::Logical::Writer::granulePosition ( Position   ) 

Set granule position of current packet.

Default increments last granulePosition by 1.

Position Ogg::Logical::Writer::granulePosition (  ) 

Get granule position of the last enqued packet.

size_t Ogg::Logical::Writer::pageSize (  ) 

Get the current page size for transport.

void Ogg::Logical::Writer::pageSize ( size_t   ) 

Set size for transport pages.

beginning with the page where the current packet begins.

Writer& Ogg::Logical::Writer::operator++ (  ) 

Creates the next packet and enques the last.

Packet* Ogg::Logical::Writer::operator-> (  )  const throw ()

Get to the Packet methods.


The documentation for this class was generated from the following file:
Generated on Tue May 1 16:48:33 2007 for libogg++ by  doxygen 1.5.1