15 #ifndef WITHOUTPUTFILE_H 16 #define WITHOUTPUTFILE_H 18 #include "pandatoolbase.h" 20 #include "programBase.h" 45 INLINE
void set_binary_output(
bool binary_output);
48 bool verify_output_file_safe()
const;
51 bool _allow_last_param;
54 string _preferred_extension;
55 bool _got_output_filename;
59 ofstream _output_stream;
61 bool _owns_output_ptr;
64 #include "withOutputFile.I" void close_output()
Closes the output stream previously opened by get_output().
Filename get_output_filename() const
If has_output_filename() returns true, this is the filename that the user specified.
bool has_output_filename() const
Returns true if the user specified an output filename, false otherwise (e.g.
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...
ostream & get_output()
Returns an output stream that corresponds to the user's intended egg file output–either stdout...