00001 // Filename: interrogateMakeSeq.cxx 00002 // Created by: drose (15Sep09) 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 "interrogateMakeSeq.h" 00016 #include "indexRemapper.h" 00017 #include "interrogate_datafile.h" 00018 00019 //////////////////////////////////////////////////////////////////// 00020 // Function: InterrogateMakeSeq::output 00021 // Access: Public 00022 // Description: Formats the InterrogateMakeSeq data for output to a data 00023 // file. 00024 //////////////////////////////////////////////////////////////////// 00025 void InterrogateMakeSeq:: 00026 output(ostream &out) const { 00027 InterrogateComponent::output(out); 00028 out << _class << " "; 00029 idf_output_string(out, _seq_name); 00030 idf_output_string(out, _num_name); 00031 idf_output_string(out, _element_name); 00032 } 00033 00034 //////////////////////////////////////////////////////////////////// 00035 // Function: InterrogateMakeSeq::input 00036 // Access: Public 00037 // Description: Reads the data file as previously formatted by 00038 // output(). 00039 //////////////////////////////////////////////////////////////////// 00040 void InterrogateMakeSeq:: 00041 input(istream &in) { 00042 InterrogateComponent::input(in); 00043 in >> _class; 00044 idf_input_string(in, _seq_name); 00045 idf_input_string(in, _num_name); 00046 idf_input_string(in, _element_name); 00047 } 00048 00049 //////////////////////////////////////////////////////////////////// 00050 // Function: InterrogateMakeSeq::remap_indices 00051 // Access: Public 00052 // Description: Remaps all internal index numbers according to the 00053 // indicated map. This called from 00054 // InterrogateDatabase::remap_indices(). 00055 //////////////////////////////////////////////////////////////////// 00056 void InterrogateMakeSeq:: 00057 remap_indices(const IndexRemapper &remap) { 00058 }