Panda3D
 All Classes Functions Variables Enumerations
eggConverter.cxx
1 // Filename: eggConverter.cxx
2 // Created by: drose (15Feb00)
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 #include "eggConverter.h"
16 
17 ////////////////////////////////////////////////////////////////////
18 // Function: EggConverter::Constructor
19 // Access: Public
20 // Description: The first parameter to the constructor should be the
21 // one-word name of the alien file format that is to be
22 // read or written, for instance "OpenFlight" or
23 // "Alias". It's just used in printing error messages
24 // and such. The second parameter is the preferred
25 // extension of files of this form, if any, with a
26 // leading dot.
27 ////////////////////////////////////////////////////////////////////
29 EggConverter(const string &format_name,
30  const string &preferred_extension,
31  bool allow_last_param,
32  bool allow_stdout) :
33  EggFilter(allow_last_param, allow_stdout),
34  _format_name(format_name)
35 {
36  // Indicate the extension name we expect the user to supply for
37  // output files.
38  _preferred_extension = preferred_extension;
39 }
EggConverter(const string &format_name, const string &preferred_extension=string(), bool allow_last_param=true, bool allow_stdout=true)
The first parameter to the constructor should be the one-word name of the alien file format that is t...
This is the base class for a program that reads an egg file, operates on it, and writes another egg f...
Definition: eggFilter.h:29