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;
This class can be used to write a binary file that consists of an arbitrary header followed by a numb...
This class defines the abstract interface to sending datagrams to any target, whether it be into a fi...
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...
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.