Panda3D
 All Classes Functions Variables Enumerations
eggMultiFilter.h
1 // Filename: eggMultiFilter.h
2 // Created by: drose (02Nov00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef EGGMULTIFILTER_H
16 #define EGGMULTIFILTER_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "eggMultiBase.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : EggMultiFilter
24 // Description : This is a base class for a program that reads in a
25 // number of egg files, operates on them, and writes
26 // them out again (presumably to a different directory).
27 ////////////////////////////////////////////////////////////////////
28 class EggMultiFilter : public EggMultiBase {
29 public:
30  EggMultiFilter(bool allow_empty = false);
31 
32 protected:
33  virtual bool handle_args(Args &args);
34  virtual bool post_command_line();
35 
36  Filename get_output_filename(const Filename &source_filename) const;
37  virtual void write_eggs();
38 
39 protected:
40  bool _allow_empty;
41  bool _got_output_filename;
42  Filename _output_filename;
43  bool _got_output_dirname;
44  Filename _output_dirname;
45  bool _inplace;
46  Filename _input_filename;
47  Filename _filename;
48  bool _got_input_filename;
49 
50  bool _read_only;
51 };
52 
53 #endif
54 
55 
This specialization of ProgramBase is intended for programs that read and/or write multiple egg files...
Definition: eggMultiBase.h:36
This is a base class for a program that reads in a number of egg files, operates on them...
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44