14 #ifndef DATAGRAMINPUTFILE_H
15 #define DATAGRAMINPUTFILE_H
34 INLINE
bool open(
const Filename &filename);
36 INLINE std::istream &get_stream();
40 bool read_header(std::string &header,
size_t num_bytes);
41 virtual bool get_datagram(
Datagram &data);
43 virtual bool is_eof();
44 virtual bool is_error();
53 bool _read_first_datagram;
This class defines the abstract interace to any source of datagrams, whether it be from a file or fro...
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...
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.