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();
49 virtual const Filename &get_filename();
51 virtual std::streampos get_file_pos();
53 INLINE std::ostream &get_stream();
56 MAKE_PROPERTY(stream, get_stream);
59 bool _wrote_first_datagram;
Keeps a reference-counted pointer to a file on disk.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
This class defines the abstract interface to sending datagrams to any target, whether it be into a fi...
The name of a file, such as a texture file or an Egg file.
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.
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.
This class records a particular byte sub-range within an existing file on disk.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.