Panda3D

interrogateComponent.cxx

00001 // Filename: interrogateComponent.cxx
00002 // Created by:  drose (08Aug00)
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 "interrogateComponent.h"
00016 #include "interrogate_datafile.h"
00017 
00018 
00019 ////////////////////////////////////////////////////////////////////
00020 //     Function: InterrogateComponent::output
00021 //       Access: Public
00022 //  Description: Formats the component for output to a data file.
00023 ////////////////////////////////////////////////////////////////////
00024 void InterrogateComponent::
00025 output(ostream &out) const {
00026   idf_output_string(out, _name);
00027 }
00028 
00029 ////////////////////////////////////////////////////////////////////
00030 //     Function: InterrogateComponent::input
00031 //       Access: Public
00032 //  Description: Reads the data file as previously formatted by
00033 //               output().
00034 ////////////////////////////////////////////////////////////////////
00035 void InterrogateComponent::
00036 input(istream &in) {
00037   idf_input_string(in, _name);
00038 }
 All Classes Functions Variables Enumerations