assert(element->get_attribute("name"));
type_info ret;
- if (element->get_attribute("context"))
- ret.name=get_namespace(root, element->get_attribute("context")->get_value())+"::";
+ if (element->get_attribute("context")) {
+ ret.name=get_namespace(root, element->get_attribute("context")->get_value());
+ if (ret.name!="::")
+ ret.name+="::";
+ else
+ // do not explicitely add ::
+ ret.name="";
+ }
ret.name+=element->get_attribute("name")->get_value();
return ret;
}
<< "private:\n"
<< " friend class boost::serialization::access;\n"
<< " template<class Archive>\n"
- << " void serialize(Archive & ar, const unsigned int version)\n"
+ << " void serialize(Archive & ar, const unsigned int /* version */)\n"
<< " {ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(libt2n::command);}\n"
<< "};\n";
}
<< " " << it->ret_type << " res;\n"
<< " friend class boost::serialization::access;\n"
<< " template<class Archive>\n"
- << " void serialize(Archive & ar, const unsigned int version)\n"
+ << " void serialize(Archive & ar, const unsigned int /* version */)\n"
<< " {\n"
<< " ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(libt2n::result);\n"
<< " ar & BOOST_SERIALIZATION_NVP(res);\n"
}
o << " friend class boost::serialization::access;\n"
<< " template<class Archive>\n"
- << " void serialize(Archive & ar, const unsigned int version)\n"
+ << " void serialize(Archive & ar, const unsigned int /* version */)\n"
<< " {\n"
<< " ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(cmd_group_" << it->group << ");\n";
for (t2n_procedure::Args::const_iterator ait=it->args.begin();ait!=it->args.end();++ait) {
output_common_cpp(common_cpp, procedures, common_hpp_fname);
header_file client_hpp(client_hpp_fname.c_str());
+ client_hpp << "#include \"codegen-stubhead.hxx\"\n";
// we can't paste the includes before codegen-stubhead.hxx was included
- // but we also do not want to include codegen-stubhead.hxx in this file
- // paste_includes(client_hpp, includes);
+ paste_includes(client_hpp, includes);
output_client_hpp(client_hpp, procedures);
cpp_file client_cpp(client_cpp_fname.c_str());