#
BEGIN {
#
-# file name genaration
+# file name generation
idl_file="code_idl"
hxx_file="code_hxx"
cxx_file="code_cxx"
class_i=class_name"_i"
- print "\t// genetated part" > idl_file
- printf " // genetated part\n" > hxx_file
- printf "//\n// genetated part\n//\n" > cxx_file
+ print "\t// generated part" > idl_file
+ printf " // generated part\n" > hxx_file
+ printf "//\n// generated part\n//\n" > cxx_file
print "Functions parsing (for debug)" > "parse_result"
#
#
-# type mapping from c++ componant to idl
+# type mapping from c++ component to idl
#
idl_arg_type["int"]="in long"
idl_arg_type["double"]="in double"
cpp_impl_a["std::string&"]="std::string _%s;\n"
cpp_impl_a["const MEDMEM::MESH&"]="\tMEDMEM::MESHClient* _%s = new MEDMEM::MESHClient(%s);\n" # MESHClient cannot be created on the stack (private constructor), so we create it on the heap and dereference it later (in treatment 4)
cpp_impl_a["const MEDMEM::MESH*"]="\tMEDMEM::MESHClient* _%s = new MEDMEM::MESHClient(%s);\n"
+ cpp_impl_a["MEDMEM::FIELD<double>*&"]="\tMEDMEM::FIELD<double>* _%s;\n"
cpp_impl_a["const MEDMEM::FIELD<double>*"]="\tstd::auto_ptr<MEDMEM::FIELD<double> > _%s ( new MEDMEM::FIELDClient<double>(%s) );\n"
cpp_impl_a["const MEDMEM::FIELD<double>&"]="\tMEDMEM::FIELDClient<double> _%s(%s);\n"
cpp_impl_a["const std::vector<double>&"]="\tlong _size;\n\tdouble *_value = ReceiverFactory::getValue(%s,_size);\n"\