00001 // Filename: eggConverter.cxx 00002 // Created by: drose (15Feb00) 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 #include "eggConverter.h" 00016 00017 //////////////////////////////////////////////////////////////////// 00018 // Function: EggConverter::Constructor 00019 // Access: Public 00020 // Description: The first parameter to the constructor should be the 00021 // one-word name of the alien file format that is to be 00022 // read or written, for instance "OpenFlight" or 00023 // "Alias". It's just used in printing error messages 00024 // and such. The second parameter is the preferred 00025 // extension of files of this form, if any, with a 00026 // leading dot. 00027 //////////////////////////////////////////////////////////////////// 00028 EggConverter:: 00029 EggConverter(const string &format_name, 00030 const string &preferred_extension, 00031 bool allow_last_param, 00032 bool allow_stdout) : 00033 EggFilter(allow_last_param, allow_stdout), 00034 _format_name(format_name) 00035 { 00036 // Indicate the extension name we expect the user to supply for 00037 // output files. 00038 _preferred_extension = preferred_extension; 00039 }