14#ifndef WITHOUTPUTFILE_H
15#define WITHOUTPUTFILE_H
41 INLINE
void set_binary_output(
bool binary_output);
44 bool verify_output_file_safe()
const;
47 bool _allow_last_param;
50 std::string _preferred_extension;
51 bool _got_output_filename;
55 std::ofstream _output_stream;
56 std::ostream *_output_ptr;
57 bool _owns_output_ptr;
The name of a file, such as a texture file or an Egg file.
This is the bare functionality (intended to be inherited from along with ProgramBase or some derivati...
Filename get_output_filename() const
If has_output_filename() returns true, this is the filename that the user specified.
void close_output()
Closes the output stream previously opened by get_output().
bool has_output_filename() const
Returns true if the user specified an output filename, false otherwise (e.g.
std::ostream & get_output()
Returns an output stream that corresponds to the user's intended egg file output–either stdout,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.