00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef EGGWRITER_H
00016 #define EGGWRITER_H
00017
00018 #include "pandatoolbase.h"
00019 #include "eggSingleBase.h"
00020 #include "withOutputFile.h"
00021
00022 #include "filename.h"
00023 #include "luse.h"
00024
00025
00026
00027
00028
00029
00030 class EggWriter : virtual public EggSingleBase, public WithOutputFile {
00031 public:
00032 EggWriter(bool allow_last_param = false, bool allow_stdout = true);
00033
00034 virtual EggWriter *as_writer();
00035
00036 virtual void post_process_egg_file();
00037 void write_egg_file();
00038
00039 protected:
00040 virtual bool handle_args(Args &args);
00041 virtual bool post_command_line();
00042
00043 private:
00044 ofstream _output_stream;
00045 ostream *_output_ptr;
00046 };
00047
00048 #endif
00049
00050