From 4aad14e3e5aab44bee7acd98c4a2e9d19fb52d9b Mon Sep 17 00:00:00 2001 From: crouzet Date: Wed, 16 Sep 2009 15:04:40 +0000 Subject: [PATCH] add a call to fillCopy() to the meshClient, in order to be sure to have everything available. --- scripts/parse3.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/parse3.awk b/scripts/parse3.awk index 704cd4c..dcbe559 100644 --- a/scripts/parse3.awk +++ b/scripts/parse3.awk @@ -146,8 +146,8 @@ BEGIN { cpp_impl_a["short&"]="\tshort _%s;\n" cpp_impl_a["unsigned&"]="\tunsigned _%s;\n" cpp_impl_a["std::string&"]="\tstd::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["const MEDMEM::MESH&"]="\tMEDMEM::MESHClient* _%s = new MEDMEM::MESHClient(%s);\n\t _%s->fillCopy();\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\t _%s->fillCopy();\n" cpp_impl_a["const MEDMEM::SUPPORT&"]="\tMEDMEM::SUPPORTClient* _%s = new MEDMEM::SUPPORTClient(%s);\n" # SUPPORTClient cannot be created on the stack (protected destructor), so we create it on the heap and dereference it later (in treatment 4) cpp_impl_a["const MEDMEM::SUPPORT*"]="\tMEDMEM::SUPPORTClient* _%s = new MEDMEM::SUPPORTClient(%s);\n" cpp_impl_a["MEDMEM::FIELD*&"]="\tMEDMEM::FIELD* _%s;\n" -- 2.39.2