14#ifndef DATAGRAMGENERATOR_H
15#define DATAGRAMGENERATOR_H
35 virtual bool get_datagram(
Datagram &data) = 0;
37 virtual bool is_eof() = 0;
38 virtual bool is_error() = 0;
virtual std::streampos get_file_pos()
Returns the current file position within the data stream, if any, or 0 if the file position is not me...
virtual const FileReference * get_file()
Returns the FileReference that provides the source for these datagrams, if any, or NULL if the datagr...
virtual const Filename & get_filename()
Returns the filename that provides the source for these datagrams, if any, or empty string if the dat...
virtual time_t get_timestamp() const
Returns the on-disk timestamp of the file that was read, at the time it was opened,...
virtual bool save_datagram(SubfileInfo &info)
Skips over the next datagram without extracting it, but saves the relevant file information in the Su...
DatagramGenerator()
Does nothing since this is class is just the definition of an interface.
virtual VirtualFile * get_vfile()
Returns the VirtualFile that provides the source for these datagrams, if any, or NULL if the datagram...
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
Keeps a reference-counted pointer to a file on disk.
The name of a file, such as a texture file or an Egg file.
This class records a particular byte sub-range within an existing file on disk.
The abstract base class for a file or directory within the VirtualFileSystem.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.