eggMultiFilter.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * PANDA 3D SOFTWARE
  3. * Copyright (c) Carnegie Mellon University. All rights reserved.
  4. *
  5. * All use of this software is subject to the terms of the revised BSD
  6. * license. You should have received a copy of this license along
  7. * with this source code in a file named "LICENSE."
  8. *
  9. * @file eggMultiFilter.h
  10. * @author drose
  11. * @date 2000-11-02
  12. */
  13. #ifndef EGGMULTIFILTER_H
  14. #define EGGMULTIFILTER_H
  15. #include "pandatoolbase.h"
  16. #include "eggMultiBase.h"
  17. /**
  18. * This is a base class for a program that reads in a number of egg files,
  19. * operates on them, and writes them out again (presumably to a different
  20. * directory).
  21. */
  22. class EggMultiFilter : public EggMultiBase {
  23. public:
  24. EggMultiFilter(bool allow_empty = false);
  25. protected:
  26. virtual bool handle_args(Args &args);
  27. virtual bool post_command_line();
  28. Filename get_output_filename(const Filename &source_filename) const;
  29. virtual void write_eggs();
  30. protected:
  31. bool _allow_empty;
  32. bool _got_output_filename;
  33. Filename _output_filename;
  34. bool _got_output_dirname;
  35. Filename _output_dirname;
  36. bool _inplace;
  37. Filename _input_filename;
  38. Filename _filename;
  39. bool _got_input_filename;
  40. bool _read_only;
  41. };
  42. #endif