15 #include "interrogateFunctionWrapper.h"
16 #include "indexRemapper.h"
17 #include "interrogate_datafile.h"
26 void InterrogateFunctionWrapper::Parameter::
27 output(ostream &out)
const {
28 idf_output_string(out, _name);
29 out << _parameter_flags <<
" " << _type <<
" ";
37 void InterrogateFunctionWrapper::Parameter::
39 idf_input_string(in, _name);
40 in >> _parameter_flags >> _type;
54 << _return_type <<
" "
55 << _return_value_destructor <<
" ";
56 idf_output_string(out, _unique_name);
57 idf_output_string(out, _comment);
58 idf_output_vector(out, _parameters);
73 >> _return_value_destructor;
74 idf_input_string(in, _unique_name);
75 idf_input_string(in, _comment);
76 idf_input_vector(in, _parameters);
88 _return_value_destructor = remap.
map_from(_return_value_destructor);
89 _return_type = remap.
map_from(_return_type);
91 Parameters::iterator pi;
92 for (pi = _parameters.begin(); pi != _parameters.end(); ++pi) {
93 (*pi)._type = remap.
map_from((*pi)._type);
This class manages a mapping of integers to integers.
void input(istream &in)
Reads the data file as previously formatted by output().
void output(ostream &out) const
Formats the InterrogateFunctionWrapper data 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.
int map_from(int from) const
Returns the integer that the given 'from' integer had been set to map to, or the same integer if noth...
void output(ostream &out) const
Formats the component for output to a data file.