14#ifndef DATAGRAMOUTPUTFILE_H
15#define DATAGRAMOUTPUTFILE_H
32 INLINE DatagramOutputFile();
33 INLINE ~DatagramOutputFile();
60 bool _wrote_first_datagram;
virtual void flush()
Ensures that all datagrams previously written will be visible in the output file.
bool open(const FileReference *file)
Opens the indicated filename for writing.
bool write_header(const vector_uchar &header)
Writes a sequence of bytes to the beginning of the datagram file.
void close()
Closes the file.
get_stream
Returns the ostream represented by the output file.
virtual bool is_error()
Returns true if the file has reached an error condition.
virtual bool put_datagram(const Datagram &data)
Writes the given datagram to the file.
get_filename
Returns the filename that provides the target for these datagrams, if any, or empty string if the dat...
virtual bool copy_datagram(SubfileInfo &result, const Filename &filename)
Copies the file data from the entire indicated file (via the vfs) as the next datagram.
get_file
Returns the FileReference that provides the target for these datagrams, if any, or NULL if the datagr...
DatagramSink()
Does nothing since this is class is just the definition of an interface.
get_file_pos
Returns the current file position within the data stream, if any, or 0 if the file position is not me...
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.