Panda3D
interrogateMakeSeq.cxx
1 // Filename: interrogateMakeSeq.cxx
2 // Created by: drose (15Sep09)
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 "interrogateMakeSeq.h"
16 #include "indexRemapper.h"
17 #include "interrogate_datafile.h"
18 
19 ////////////////////////////////////////////////////////////////////
20 // Function: InterrogateMakeSeq::output
21 // Access: Public
22 // Description: Formats the InterrogateMakeSeq data for output to a data
23 // file.
24 ////////////////////////////////////////////////////////////////////
26 output(ostream &out) const {
28  out << _class << " ";
29  idf_output_string(out, _seq_name);
30  idf_output_string(out, _num_name);
31  idf_output_string(out, _element_name);
32 }
33 
34 ////////////////////////////////////////////////////////////////////
35 // Function: InterrogateMakeSeq::input
36 // Access: Public
37 // Description: Reads the data file as previously formatted by
38 // output().
39 ////////////////////////////////////////////////////////////////////
41 input(istream &in) {
43  in >> _class;
44  idf_input_string(in, _seq_name);
45  idf_input_string(in, _num_name);
46  idf_input_string(in, _element_name);
47 }
48 
49 ////////////////////////////////////////////////////////////////////
50 // Function: InterrogateMakeSeq::remap_indices
51 // Access: Public
52 // Description: Remaps all internal index numbers according to the
53 // indicated map. This called from
54 // InterrogateDatabase::remap_indices().
55 ////////////////////////////////////////////////////////////////////
58 }
This class manages a mapping of integers to integers.
Definition: indexRemapper.h:33
void input(istream &in)
Reads the data file as previously formatted by output().
void output(ostream &out) const
Formats the component for output to a data file.
void input(istream &in)
Reads the data file as previously formatted by output().
void remap_indices(const IndexRemapper &remap)
Remaps all internal index numbers according to the indicated map.
void output(ostream &out) const
Formats the InterrogateMakeSeq data for output to a data file.