/foundation/ability/idl_tool/idl_tool_2/codegen/SA/ts/ |
H A D | sa_ts_code_emitter.cpp | 52 std::string SATsCodeEmitter::FileName(const std::string &name) const
in FileName() function in OHOS::Idl::SATsCodeEmitter 104 FileName(interfaceName_).c_str());
in EmitInterfaceImports() 106 sb.AppendFormat("import %s from \"./%s\";\n", interface_->GetName().c_str(), FileName(interfaceName_).c_str());
in EmitInterfaceImports() 118 sb.AppendFormat("import %s from \"./%s\";\n", dependStubName.c_str(), FileName(dependStubName).c_str());
in EmitInterfaceImports() 128 FileName(seqType->GetName()).c_str());
in EmitInterfaceSelfDefinedTypeImports() 134 FileName(interface->GetName()).c_str());
in EmitInterfaceSelfDefinedTypeImports()
|
H A D | sa_ts_code_emitter.h | 40 std::string FileName(const std::string &name) const;
|
H A D | sa_ts_interface_code_emitter.cpp | 47 File::AdapterPath(StringHelper::Format("%s/%s.ts", directory_.c_str(), FileName(interfaceName_).c_str()));
in EmitInterfaceHeaderFile()
|
/foundation/ability/idl_tool/idl_tool_2/codegen/SA/cpp/ |
H A D | sa_cpp_interface_code_emitter.cpp | 59 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(interfaceName_).c_str()));
in EmitInterfaceHeaderFile() 112 fileName = filePath.empty() ? FileName(seqType->GetName()) : FileName(filePath);
in EmitInterfaceSelfDefinedTypeInclusions() 121 fileName = FileName(filePath + interface->GetName());
in EmitInterfaceSelfDefinedTypeInclusions()
|
H A D | sa_cpp_service_stub_code_emitter.cpp | 31 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(stubName_).c_str()));
in EmitStubHeaderFile() 38 sb.AppendFormat("#include \"%s.h\"\n", FileName(interfaceName_).c_str());
in EmitStubHeaderFile() 75 File::AdapterPath(StringHelper::Format("%s/%s.cpp", directory_.c_str(), FileName(stubName_).c_str()));
in EmitStubSourceFile() 80 sb.AppendFormat("#include \"%s.h\"\n", FileName(stubName_).c_str());
in EmitStubSourceFile()
|
H A D | sa_cpp_client_proxy_code_emitter.cpp | 32 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_ + "Proxy").c_str()));
in EmitInterfaceProxyHeaderFile() 39 sb.AppendFormat("#include \"%s.h\"\n", FileName(interfaceName_).c_str());
in EmitInterfaceProxyHeaderFile() 225 File::AdapterPath(StringHelper::Format("%s/%s.cpp", directory_.c_str(), FileName(proxyName_).c_str()));
in EmitInterfaceProxyCppFile() 230 sb.AppendFormat("#include \"%s.h\"\n", FileName(proxyName_).c_str());
in EmitInterfaceProxyCppFile()
|
/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/c/ |
H A D | c_service_impl_code_emitter.cpp | 67 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(implName_).c_str()));
in EmitLowServiceImplHeaderFile() 112 File::AdapterPath(StringHelper::Format("%s/%s.c", directory_.c_str(), FileName(implName_).c_str()));
in EmitLowServiceImplSourceFile() 119 EmitLogTagMacro(sb, FileName(implName_));
in EmitLowServiceImplSourceFile() 160 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_ + "Service").c_str()));
in EmitServiceImplHeaderFile() 220 File::AdapterPath(StringHelper::Format("%s/%s.c", directory_.c_str(), FileName(implName_).c_str()));
in EmitServiceImplSourceFile() 227 EmitLogTagMacro(sb, FileName(implName_));
in EmitServiceImplSourceFile()
|
H A D | c_client_proxy_code_emitter.cpp | 60 File::AdapterPath(StringHelper::Format("%s/%s.c", directory_.c_str(), FileName(proxyName_).c_str()));
in EmitPassthroughProxySourceFile() 67 EmitLogTagMacro(sb, FileName(proxyName_));
in EmitPassthroughProxySourceFile() 118 File::AdapterPath(StringHelper::Format("%s/%s.c", directory_.c_str(), FileName(proxyName_).c_str()));
in EmitProxySourceFile() 125 EmitLogTagMacro(sb, FileName(proxyName_));
in EmitProxySourceFile() 525 FileName(implName_).c_str());
in EmitKernelProxyGetMethodImpl() 663 FileName(implName_).c_str());
in EmitProxyGetMethodImpl() 790 "%sReleaseInstance(\"%s\", instance, isStub);\n", interfaceName_.c_str(), FileName(implName_).c_str());
in EmitProxyReleaseMethodImpl() 819 .AppendFormat("if (strcmp(%s, \"%s\") == 0) {\n", instName.c_str(), FileName(implName_).c_str());
in EmitProxyLoadOrUnLoadHdiImpl()
|
H A D | c_service_driver_code_emitter.cpp | 67 File::AdapterPath(StringHelper::Format("%s/%s.c", directory_.c_str(), FileName(baseName_ + "Driver").c_str()));
in EmitLowDriverSourceFile() 75 EmitLogTagMacro(sb, FileName(baseName_ + "Driver"));
in EmitLowDriverSourceFile() 139 File::AdapterPath(StringHelper::Format("%s/%s.c", directory_.c_str(), FileName(baseName_ + "Driver").c_str()));
in EmitDriverSourceFile() 146 EmitLogTagMacro(sb, FileName(baseName_ + "Driver"));
in EmitDriverSourceFile()
|
H A D | c_service_stub_code_emitter.cpp | 56 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(stubName_).c_str()));
in EmitServiceStubHeaderFile() 122 File::AdapterPath(StringHelper::Format("%s/%s.c", directory_.c_str(), FileName(stubName_).c_str()));
in EmitServiceStubSourceFile() 129 EmitLogTagMacro(sb, FileName(stubName_));
in EmitServiceStubSourceFile() 223 "return %sGetInstance(\"%s\", isStub);\n", interfaceName_.c_str(), FileName(implName_).c_str());
in EmitGetMethodImpl() 236 sb.Append(TAB).AppendFormat("if (strcmp(serviceName, \"%s\") == 0) {\n", FileName(implName_).c_str());
in EmitGetInstanceMehtodImpl() 250 "%sReleaseInstance(\"%s\", instance, isStub);\n", interfaceName_.c_str(), FileName(implName_).c_str());
in EmitReleaseMethodImpl() 263 sb.Append(TAB).AppendFormat("if (strcmp(serviceName, \"%s\") == 0) {\n", FileName(implName_).c_str());
in EmitReleaseInstanceMethodImpl()
|
H A D | c_interface_code_emitter.cpp | 59 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(interfaceName_).c_str()));
in EmitLowModeInterfaceHeaderFile() 105 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(interfaceName_).c_str()));
in EmitInterfaceHeaderFile()
|
H A D | c_custom_types_code_emitter.cpp | 60 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_).c_str()));
in EmitPassthroughCustomTypesHeaderFile() 97 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_).c_str()));
in EmitCustomTypesHeaderFile() 182 File::AdapterPath(StringHelper::Format("%s/%s.c", directory_.c_str(), FileName(baseName_).c_str()));
in EmitCustomTypesSourceFile()
|
/foundation/ability/idl_tool/idl_tool_2/codegen/ |
H A D | code_emitter.cpp | 77 filePath.Append(FileName(*iter));
in PackageToFilePath() 123 return StringHelper::Format("v%u_%u/%s", ast_->GetMajorVer(), ast_->GetMinorVer(), FileName(name).c_str());
in EmitVersionHeaderName() 183 std::string CodeEmitter::FileName(const std::string &name) const
in FileName() function in OHOS::Idl::CodeEmitter
|
H A D | code_emitter.h | 118 // file_name -> FileName
121 // FileName -> file_name
122 std::string FileName(const std::string &name) const;
|
/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/cpp/ |
H A D | cpp_service_impl_code_emitter.cpp | 55 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(implName_).c_str()));
in EmitImplHeaderFile() 147 StringHelper::Format("%s/%s.cpp", directory_.c_str(), FileName(implName_).c_str()));
in EmitImplSourceFile() 154 EmitLogTagMacro(sb, FileName(implName_));
in EmitImplSourceFile()
|
H A D | cpp_service_stub_code_emitter.cpp | 49 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(stubName_).c_str()));
in EmitStubHeaderFile() 186 File::AdapterPath(StringHelper::Format("%s/%s.cpp", directory_.c_str(), FileName(stubName_).c_str()));
in EmitStubSourceFile() 193 EmitLogTagMacro(sb, FileName(stubName_));
in EmitStubSourceFile() 273 std::string FileName = InterfaceToFilePath(paramType->ToString());
in GetSourceOtherFileInclusions() local 274 headerFiles.emplace(HeaderFileType::OWN_MODULE_HEADER_FILE, FileName);
in GetSourceOtherFileInclusions() 297 EmitDefinitionByInterface(interface_, interfaceName_).c_str(), FileName(implName_).c_str());
in EmitGetMethodImpl() 315 sb.AppendFormat("serviceName == \"%s\" ? \"service\" : serviceName.c_str());\n", FileName(implName_).c_str());
in EmitGetInstanceMethodImpl()
|
H A D | cpp_custom_types_code_emitter.cpp | 57 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_).c_str()));
in EmitPassthroughCustomTypesHeaderFile() 98 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_).c_str()));
in EmitCustomTypesHeaderFile() 193 File::AdapterPath(StringHelper::Format("%s/%s.cpp", directory_.c_str(), FileName(baseName_).c_str()));
in EmitCustomTypesSourceFile()
|
H A D | cpp_service_driver_code_emitter.cpp | 50 StringHelper::Format("%s/%s.cpp", directory_.c_str(), FileName(baseName_ + "Driver").c_str()));
in EmitDriverSourceFile() 57 EmitLogTagMacro(sb, FileName(baseName_ + "Driver"));
in EmitDriverSourceFile()
|
H A D | cpp_client_proxy_code_emitter.cpp | 61 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_ + "Proxy").c_str()));
in EmitProxyHeaderFile() 299 File::AdapterPath(StringHelper::Format("%s/%s.cpp", directory_.c_str(), FileName(proxyName_).c_str()));
in EmitPassthroughProxySourceFile() 306 EmitLogTagMacro(sb, FileName(proxyName_));
in EmitPassthroughProxySourceFile() 353 File::AdapterPath(StringHelper::Format("%s/%s.cpp", directory_.c_str(), FileName(proxyName_).c_str()));
in EmitProxySourceFile() 360 EmitLogTagMacro(sb, FileName(proxyName_));
in EmitProxySourceFile() 449 std::string FileName = InterfaceToFilePath(paramType->ToString());
in GetSourceOtherFileInclusions() local 450 headerFiles.emplace(HeaderFileType::OWN_MODULE_HEADER_FILE, FileName);
in GetSourceOtherFileInclusions() 462 .AppendFormat("return %s::Get(\"%s\", isStub);\n", interfaceName_.c_str(), FileName(implName_).c_str());
in EmitGetMethodImpl() 597 sb.AppendFormat("serviceName == \"%s\" ? \"service\" : serviceName.c_str());\n", FileName(implName_).c_str());
in EmitProxyPassthroughtLoadImpl()
|
/foundation/ability/idl_tool/codegen/ |
H A D | cpp_code_emitter.cpp | 30 String filePath = String::Format("%s/%s.h", directory_.string(), FileName(interfaceName_).string()); in EmitInterfaceHeaderFile() 155 filePath.IsEmpty() ? fileName = FileName(sequenceName) : fileName = FileName(filePath); in EmitInterfaceSelfDefinedTypeInclusions() 163 String fileName = FileName(filePath + mi->name_); in EmitInterfaceSelfDefinedTypeInclusions() 286 String filePath = String::Format("%s/%s.h", directory_.string(), FileName(proxyName_).string()); in EmitInterfaceProxyHeaderFile() 295 sb.AppendFormat("#include \"%s.h\"\n", FileName(interfaceName_).string()); in EmitInterfaceProxyHeaderFile() 486 String filePath = String::Format("%s/%s.cpp", directory_.string(), FileName(proxyName_).string()); in EmitInterfaceProxyCppFile() 493 sb.AppendFormat("#include \"%s.h\"\n", FileName(proxyName_).string()); in EmitInterfaceProxyCppFile() 680 String filePath = String::Format("%s/%s.h", directory_.string(), FileName(stubName_).string()); in EmitInterfaceStubHeaderFile() 689 sb.AppendFormat("#include \"%s.h\"\n", FileName(interfaceName in EmitInterfaceStubHeaderFile() 1520 String CppCodeEmitter::FileName(const String& name) FileName() function in OHOS::Idl::CppCodeEmitter [all...] |
H A D | ts_code_emitter.cpp | 44 String filePath = String::Format("%s/%s.ts", directory_.string(), FileName(interfaceName_).string()); in EmitInterface() 67 item.callbackName_.c_str(), FileName(interfaceName_).string()); in EmitInterfaceImports() 70 stringBuilder.AppendFormat("import %s from \"./%s\";\n", metaInterface_->name_, FileName(interfaceName_).string()); in EmitInterfaceImports() 81 FileName(dependStubName).string()); in EmitInterfaceImports() 90 stringBuilder.AppendFormat("import %s from \"./%s\";\n", mp->name_, FileName(mp->name_).string()); in EmitInterfaceSelfDefinedTypeImports() 96 stringBuilder.AppendFormat("import %s from \"./%s\";\n", mi->name_, FileName(mi->name_).string()); in EmitInterfaceSelfDefinedTypeImports() 235 String filePath = String::Format("%s/%s.ts", directory_.string(), FileName(proxyName_).string()); in EmitInterfaceProxy() 469 String filePath = String::Format("%s/%s.ts", directory_.string(), FileName(stubName_).string()); in EmitInterfaceStub() 1085 String TsCodeEmitter::FileName(const String& name) in FileName() function in OHOS::Idl::TsCodeEmitter
|
H A D | ts_code_emitter.h | 159 String FileName(const String& name);
|
H A D | cpp_code_emitter.h | 180 String FileName(const String& name);
|
/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/java/ |
H A D | java_client_interface_code_emitter.cpp | 48 File::AdapterPath(StringHelper::Format("%s/%s.java", directory_.c_str(), FileName(interfaceName_).c_str()));
in EmitInterfaceFile()
|
/foundation/ability/idl_tool/test/unittest/cpp_code_emitter_test/ |
H A D | cpp_code_emitter_test.cpp | 111 * @tc.desc: Verify the FileName function. 124 EXPECT_EQ(codeEmitter.FileName(inputStr), expectStr); in HWTEST_F() 128 EXPECT_STREQ(codeEmitter.FileName(inputStr1), expectStr1); in HWTEST_F() 132 EXPECT_STREQ(codeEmitter.FileName(inputStr2), expectStr2); in HWTEST_F() 136 EXPECT_STREQ(codeEmitter.FileName(inputStr3), expectStr3); in HWTEST_F()
|