Home
last modified time | relevance | path

Searched refs:Options (Results 1 – 25 of 29) sorted by relevance

12

/drivers/hdf_core/framework/tools/hdi-gen/util/
Doptions.cpp27 const char *Options::optSupportArgs = "hvs:m:l:p:c:d:r:o:D:";
40 Options &Options::GetInstance() in GetInstance()
42 static Options option; in GetInstance()
46 bool Options::Parse(int argc, char *argv[]) in Parse()
99 bool Options::SetSystemLevel(const std::string &system) in SetSystemLevel()
116 bool Options::SetGenerateMode(const std::string &mode) in SetGenerateMode()
134 bool Options::SetLanguage(const std::string &language) in SetLanguage()
153 void Options::SetPackage(const std::string &infPackage) in SetPackage()
158 void Options::AddSources(const std::string &sourceFile) in AddSources()
173 void Options::AddSourcesByDir(const std::string &dir) in AddSourcesByDir()
[all …]
Doptions.h21 class Options {
25 static Options &GetInstance();
27 Options(const Options &other) = delete;
28 Options operator=(const Options &other) = delete;
32 ~Options() = default;
129 Options() in Options() function
/drivers/hdf_core/framework/tools/hdi-gen/
Dmain.cpp21 Options &options = Options::GetInstance(); in main()
/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Dcode_generator.cpp117 std::string outDir = Options::GetInstance().GetGenerationDirectory(); in Generate()
118 std::set<std::string> sourceFile = Options::GetInstance().GetSourceFiles(); in Generate()
119 Language language = Options::GetInstance().GetLanguage(); in Generate()
137 auto systemPolicies = policies_.find(Options::GetInstance().GetSystemLevel()); in GetCodeGenPoilcy()
144 auto genModeIter = genModePolicies.find(Options::GetInstance().GetGenMode()); in GetCodeGenPoilcy()
151 auto languageIter = languagePolicies.find(Options::GetInstance().GetLanguage()); in GetCodeGenPoilcy()
Dc_interface_code_emitter.cpp108 if (!Options::GetInstance().DoPassthrough()) { in EmitInterfaceHeaderFile()
116 if (!Options::GetInstance().DoPassthrough()) { in EmitInterfaceHeaderFile()
151 if (!Options::GetInstance().DoGenerateKernelCode()) { in GetHeaderOtherLibInclusions()
185 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitInterfaceMethods()
228 if (Options::GetInstance().DoPassthrough() && interface_->IsSerializable()) { in EmitExternalMethod()
Dcpp_client_proxy_code_emitter.cpp123 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitProxyMethodDecls()
130 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyMethodDecls()
229 if (Options::GetInstance().GetSystemLevel() == SystemLevel::LITE) { in EmitPassthroughProxySourceInclusions()
321 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetSourceOtherLibInclusions()
402 if (Options::GetInstance().GetSystemLevel() == SystemLevel::LITE) { in EmitProxyPassthroughtLoadImpl()
417 if (Options::GetInstance().GetSystemLevel() == SystemLevel::LITE) { in EmitProxyPassthroughtLoadImpl()
433 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitProxyMethodImpls()
444 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyMethodImpls()
593 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetUtilMethods()
598 … paramType->RegisterWriteMethod(Options::GetInstance().GetLanguage(), SerMode::PROXY_SER, methods); in GetUtilMethods()
[all …]
Dcpp_service_stub_code_emitter.cpp128 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitStubMethodDecls()
140 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitStubMethodDecls()
237 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetSourceOtherLibInclusions()
333 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitStubOnRequestMethodImpl()
355 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitStubMethodImpls()
366 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitStubMethodImpls()
517 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetUtilMethods()
522 … paramType->RegisterReadMethod(Options::GetInstance().GetLanguage(), SerMode::STUB_SER, methods); in GetUtilMethods()
524 … paramType->RegisterWriteMethod(Options::GetInstance().GetLanguage(), SerMode::STUB_SER, methods); in GetUtilMethods()
Dcode_emitter.cpp118 std::string subPackage = Options::GetInstance().GetSubPackage(ast_->GetPackageName()); in GetFileParentPath()
129 …std::vector<std::string> packageVec = StringHelper::Split(Options::GetInstance().GetSubPackage(pac… in PackageToFilePath()
151 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitInterfaceMethodCommands()
Dcpp_interface_code_emitter.cpp55 if (!Options::GetInstance().DoPassthrough()) { in EmitInterfaceHeaderFile()
62 if (!Options::GetInstance().DoPassthrough()) { in EmitInterfaceHeaderFile()
167 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitInterfaceMethodsDecl()
Djava_code_emitter.cpp28 auto methods = interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()); in EmitInterfaceMethodCommands()
Dc_custom_types_code_emitter.cpp282 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCustomTypeMarshallingImpl()
335 if (!Options::GetInstance().DoGenerateKernelCode()) { in EmitMarshallingVarDecl()
350 if (!Options::GetInstance().DoGenerateKernelCode()) { in EmitUnmarshallingVarDecl()
385 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitPodTypeUnmarshalling()
457 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitStringMemberUnmarshalling()
559 …typePair.second->RegisterWriteMethod(Options::GetInstance().GetLanguage(), SerMode::CUSTOM_SER, me… in GetUtilMethods()
560 …typePair.second->RegisterReadMethod(Options::GetInstance().GetLanguage(), SerMode::CUSTOM_SER, met… in GetUtilMethods()
Dcpp_service_impl_code_emitter.cpp106 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitServiceImplMethodDecls()
180 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitServiceImplMethodImpls()
Dc_service_impl_code_emitter.cpp137 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitLowServiceImplGetMethod()
287 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitServiceImplMethodImpls()
364 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitKernelServiceImplGetMethod()
390 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitServiceImplGetMethod()
Djava_client_interface_code_emitter.cpp118 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitInterfaceMethods()
Dc_service_stub_code_emitter.cpp267 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitServiceStubMethodImpls()
566 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitKernelStubOnRequestMethodImpl()
628 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitStubOnRequestMethodImpl()
734 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetUtilMethods()
739 … paramType->RegisterReadMethod(Options::GetInstance().GetLanguage(), SerMode::STUB_SER, methods); in GetUtilMethods()
741 … paramType->RegisterWriteMethod(Options::GetInstance().GetLanguage(), SerMode::STUB_SER, methods); in GetUtilMethods()
Dc_client_proxy_code_emitter.cpp177 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetHeaderOtherLibInclusions()
255 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyMethodImpls()
474 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyConstruction()
801 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetUtilMethods()
806 paramType->RegisterWriteMethod(Options::GetInstance().GetLanguage(), in GetUtilMethods()
809 … paramType->RegisterReadMethod(Options::GetInstance().GetLanguage(), SerMode::PROXY_SER, methods); in GetUtilMethods()
Dcpp_custom_types_code_emitter.cpp380 …typePair.second->RegisterWriteMethod(Options::GetInstance().GetLanguage(), SerMode::CUSTOM_SER, me… in GetUtilMethods()
381 …typePair.second->RegisterReadMethod(Options::GetInstance().GetLanguage(), SerMode::CUSTOM_SER, met… in GetUtilMethods()
Dcpp_service_driver_code_emitter.cpp200 …sb.Append(TAB).AppendFormat(".moduleName = \"%s\",\n", Options::GetInstance().GetPackage().c_str()… in EmitDriverEntryDefinition()
Djava_client_proxy_code_emitter.cpp149 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyMethodImpls()
Dcpp_code_emitter.cpp121 std::string rootPackage = Options::GetInstance().GetRootPackage(namespaceStr); in EmitCppNameSpaceVec()
/drivers/hdf_core/framework/tools/hdi-gen/preprocessor/
Dpreprocessor.cpp42 std::set<std::string> sourceFiles = Options::GetInstance().GetSourceFiles(); in Preprocess()
65 std::set<std::string> sourceFiles = Options::GetInstance().GetSourceFiles(); in UnitPreprocess()
197 if (!File::CheckValid(Options::GetInstance().GetImportFilePath(token.value))) { in ParseImports()
225 std::string otherFilePath = Options::GetInstance().GetImportFilePath(importName); in LoadOtherIdlFiles()
327 std::string pkgToPath = Options::GetInstance().GetPackagePath(packageName); in CheckPackageName()
/drivers/hdf_core/framework/tools/hdi-gen/ast/
Dast_union_type.cpp131 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCWriteVar()
147 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCProxyReadVar()
172 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCStubReadVar()
225 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCMarshalling()
240 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCUnMarshalling()
Dast_array_type.cpp120 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCWriteVar()
185 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCProxyReadVar()
239 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCStubReadVar()
392 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCMarshalling()
443 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCUnMarshalling()
468 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCStringElementUnMarshalling()
564 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitMemoryRecycle()
833 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCWriteMethods()
863 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCReadMethods()
882 if (Options::GetInstance().DoGenerateKernelCode()) { in EmitCReadMethods()
[all …]
/drivers/hdf_core/framework/tools/hdi-gen/hash/
Dhash.cpp27 std::string filePath = Options::GetInstance().GetOutPutFile(); in GenHashKey()
/drivers/hdf_core/framework/tools/hdi-gen/parser/
Dparser.cpp467 switch (Options::GetInstance().GetSystemLevel()) { in CheckInterfaceAttr()
1516 if (Options::GetInstance().GetLanguage() == Language::C) { in CheckType()
1522 } else if (Options::GetInstance().GetLanguage() == Language::JAVA) { in CheckType()
1546 if (!Options::GetInstance().DoPassthrough() && type->IsPointerType()) { in CheckTypeByMode()
1552 if (Options::GetInstance().DoGenerateKernelCode()) { in CheckTypeByMode()
1669 std::string pkgToPath = Options::GetInstance().GetPackagePath(packageName); in CheckPackageName()
1687 std::string idlFilePath = Options::GetInstance().GetImportFilePath(importName); in CheckImport()
1805 Language language = Options::GetInstance().GetLanguage(); in PostProcess()
1840 std::set<std::string> sourceFile = Options::GetInstance().GetSourceFiles(); in GetGenVersion()
1861 std::set<std::string> sourceFile = Options::GetInstance().GetSourceFiles(); in GetGenNamespace()

12