21 INLINE DatagramOutputFile::
22 DatagramOutputFile() {
24 _wrote_first_datagram =
false;
25 _out = (ostream *)NULL;
34 INLINE DatagramOutputFile::
35 ~DatagramOutputFile() {
57 static ofstream null_stream;
58 nassertr(_out != NULL, null_stream);
Keeps a reference-counted pointer to a file on disk.
bool open(const FileReference *file)
Opens the indicated filename for writing.
The name of a file, such as a texture file or an Egg file.
ostream & get_stream()
Returns the ostream represented by the output file.
void close()
Closes the file.