}
std::string CProxyBodyGenerator::GenMethodArgs(const Interface& iface,
- const Declaration& decl) {
+ const Declaration& decl, const std::string& id) {
std::string code;
for (const auto& param : decl.GetParameters()) {
auto& param_type = param->GetParameterType();
continue;
auto& type = param_type.GetBaseType();
- code += GetReturnTypeString(type) + "new_" + param->GetID() + ";";
+ code += GetReturnTypeString(type, id) + "new_" + param->GetID() + ";";
code += NLine(1);
}
.Change("<NAME>", iface.GetID())
.Change("<METHOD_NAME>", decl.GetID())
.Change("<METHOD_PARAMS>", GenMethodParams(iface, decl))
- .Change("<METHOD_ARGS>", GenMethodArgs(iface, decl))
+ .Change("<METHOD_ARGS>", GenMethodArgs(iface, decl, iface.GetID()))
.Change("<ERROR_VALUE>", GetErrorValue(decl.GetType()))
.Change("<METHOD_PARAMS_CHECK>", GenMethodParamsCheck(iface, decl))
.ChangeToUpper("<UPPERCASE_PREFIX>", GetHandlePrefix())
const Interface& iface);
void GenInterface(std::ofstream& stream);
std::string GenMethodParams(const Interface& iface, const Declaration& decl);
- std::string GenMethodArgs(const Interface& iface, const Declaration& decl);
+ std::string GenMethodArgs(const Interface& iface,
+ const Declaration& decl,
+ const std::string& id);
std::string GenMethodParamsCheck(const Interface& iface,
const Declaration& decl);
std::string GenMethodUnitMapWrite(const Interface& iface,