Go to the documentation of this file.
14 #ifndef DATAGRAMOUTPUTFILE_H
15 #define DATAGRAMOUTPUTFILE_H
36 INLINE
bool open(
const Filename &filename);
41 bool write_header(
const std::string &header);
42 virtual bool put_datagram(
const Datagram &data);
45 virtual bool is_error();
53 INLINE std::ostream &get_stream();
56 MAKE_PROPERTY(stream, get_stream);
59 bool _wrote_first_datagram;
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.
get_file
Returns the FileReference that provides the target for these datagrams, if any, or NULL if the datagr...
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
get_file_pos
Returns the current file position within the data stream, if any, or 0 if the file position is not me...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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_filename
Returns the filename that provides the target for these datagrams, if any, or empty string if the dat...
This class defines the abstract interface to sending datagrams to any target, whether it be into a fi...
This class can be used to write a binary file that consists of an arbitrary header followed by a numb...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Keeps a reference-counted pointer to a file on disk.
The abstract base class for a file or directory within the VirtualFileSystem.
This class records a particular byte sub-range within an existing file on disk.
The name of a file, such as a texture file or an Egg file.