00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "interrogateElement.h"
00016 #include "indexRemapper.h"
00017 #include "interrogate_datafile.h"
00018
00019
00020
00021
00022
00023
00024
00025 void InterrogateElement::
00026 output(ostream &out) const {
00027 InterrogateComponent::output(out);
00028 out << _flags << " "
00029 << _type << " "
00030 << _getter << " "
00031 << _setter << " ";
00032 idf_output_string(out, _scoped_name);
00033 }
00034
00035
00036
00037
00038
00039
00040
00041 void InterrogateElement::
00042 input(istream &in) {
00043 InterrogateComponent::input(in);
00044 in >> _flags >> _type >> _getter >> _setter;
00045 idf_input_string(in, _scoped_name);
00046 }
00047
00048
00049
00050
00051
00052
00053
00054
00055 void InterrogateElement::
00056 remap_indices(const IndexRemapper &remap) {
00057 _type = remap.map_from(_type);
00058 _getter = remap.map_from(_getter);
00059 _setter = remap.map_from(_setter);
00060 }