00001 // Filename: interrogateComponent.cxx 00002 // Created by: drose (08Aug00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #include "interrogateComponent.h" 00020 #include "interrogate_datafile.h" 00021 00022 00023 //////////////////////////////////////////////////////////////////// 00024 // Function: InterrogateComponent::output 00025 // Access: Public 00026 // Description: Formats the component for output to a data file. 00027 //////////////////////////////////////////////////////////////////// 00028 void InterrogateComponent:: 00029 output(ostream &out) const { 00030 idf_output_string(out, _name); 00031 } 00032 00033 //////////////////////////////////////////////////////////////////// 00034 // Function: InterrogateComponent::input 00035 // Access: Public 00036 // Description: Reads the data file as previously formatted by 00037 // output(). 00038 //////////////////////////////////////////////////////////////////// 00039 void InterrogateComponent:: 00040 input(istream &in) { 00041 idf_input_string(in, _name); 00042 }