Panda3D
Public Member Functions

DatagramGenerator Class Reference

This class defines the abstract interace to any source of datagrams, whether it be from a file or from the net. More...

Inheritance diagram for DatagramGenerator:
DatagramGeneratorNet

List of all members.

Public Member Functions

bool getDatagram (Datagram data)
VirtualFile getFile ()
 Returns the VirtualFile that provides the source for these datagrams, if any, or NULL if the datagrams do not originate from a VirtualFile.
int getFilePos ()
 Returns the current file position within the data stream, if any, or 0 if the file position is not meaningful or cannot be determined.
bool isEof ()
bool isError ()

Detailed Description

This class defines the abstract interace to any source of datagrams, whether it be from a file or from the net.


Member Function Documentation

bool getDatagram ( Datagram  data)

Reimplemented in DatagramGeneratorNet.

VirtualFile getFile ( )

Returns the VirtualFile that provides the source for these datagrams, if any, or NULL if the datagrams do not originate from a VirtualFile.

int getFilePos ( )

Returns the current file position within the data stream, if any, or 0 if the file position is not meaningful or cannot be determined.

For DatagramGenerators that return a meaningful file position, this will be pointing to the first byte following the datagram returned after a call to get_datagram().

bool isEof ( )

Reimplemented in DatagramGeneratorNet.

bool isError ( )

Reimplemented in DatagramGeneratorNet.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties