Panda3D
|
00001 // Filename: eggMultiFilter.h 00002 // Created by: drose (02Nov00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef EGGMULTIFILTER_H 00016 #define EGGMULTIFILTER_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "eggMultiBase.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : EggMultiFilter 00024 // Description : This is a base class for a program that reads in a 00025 // number of egg files, operates on them, and writes 00026 // them out again (presumably to a different directory). 00027 //////////////////////////////////////////////////////////////////// 00028 class EggMultiFilter : public EggMultiBase { 00029 public: 00030 EggMultiFilter(bool allow_empty = false); 00031 00032 protected: 00033 virtual bool handle_args(Args &args); 00034 virtual bool post_command_line(); 00035 00036 Filename get_output_filename(const Filename &source_filename) const; 00037 virtual void write_eggs(); 00038 00039 protected: 00040 bool _allow_empty; 00041 bool _got_output_filename; 00042 Filename _output_filename; 00043 bool _got_output_dirname; 00044 Filename _output_dirname; 00045 bool _inplace; 00046 Filename _input_filename; 00047 Filename _filename; 00048 bool _got_input_filename; 00049 00050 bool _read_only; 00051 }; 00052 00053 #endif 00054 00055