]> SALOME platform Git repositories - tools/hxx2salome.git/blobdiff - scripts/parse3.awk
Salome HOME
GUI developement
[tools/hxx2salome.git] / scripts / parse3.awk
index 4a537850db62ef8e19f8232d92521ebd3f7f068a..0d8a22b22eb760a9380ccefc85f85f7dff4ac449 100644 (file)
@@ -3,18 +3,18 @@
 #
 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"
@@ -124,6 +124,7 @@ BEGIN {
   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"\