/drivers/hdf_core/framework/tools/hdi-gen/ast/ |
D | ast_smq_type.cpp | 41 std::string ASTSmqType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTSmqType 45 …urn StringHelper::Format("std::shared_ptr<SharedMemQueue<%s>>", innerType_->EmitCppType().c_str()); in EmitCppType() 48 "const std::shared_ptr<SharedMemQueue<%s>>&", innerType_->EmitCppType().c_str()); in EmitCppType() 50 …rn StringHelper::Format("std::shared_ptr<SharedMemQueue<%s>>&", innerType_->EmitCppType().c_str()); in EmitCppType() 52 …urn StringHelper::Format("std::shared_ptr<SharedMemQueue<%s>>", innerType_->EmitCppType().c_str()); in EmitCppType() 74 …"std::shared_ptr<SharedMemQueueMeta<%s>> %s = ", innerType_->EmitCppType().c_str(), metaVarName.c_… in EmitCppReadVar() 76 …"SharedMemQueueMeta<%s>::UnMarshalling(%s);\n", innerType_->EmitCppType().c_str(), parcelName.c_st… in EmitCppReadVar() 83 …sb.Append(prefix).AppendFormat("%s %s = ", EmitCppType(TypeMode::LOCAL_VAR).c_str(), name.c_str()); in EmitCppReadVar() 89 …"std::make_shared<SharedMemQueue<%s>>(*%s);\n", innerType_->EmitCppType().c_str(), metaVarName.c_s… in EmitCppReadVar() 111 …"std::shared_ptr<SharedMemQueueMeta<%s>> %s = ", innerType_->EmitCppType().c_str(), metaVarName.c_… in EmitCppUnMarshalling() [all …]
|
D | ast_map_type.cpp | 59 std::string ASTMapType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTMapType 64 … "std::map<%s, %s>", keyType_->EmitCppType().c_str(), valueType_->EmitCppType().c_str()); in EmitCppType() 67 … "const std::map<%s, %s>&", keyType_->EmitCppType().c_str(), valueType_->EmitCppType().c_str()); in EmitCppType() 70 … "std::map<%s, %s>&", keyType_->EmitCppType().c_str(), valueType_->EmitCppType().c_str()); in EmitCppType() 73 … "std::map<%s, %s>", keyType_->EmitCppType().c_str(), valueType_->EmitCppType().c_str()); in EmitCppType() 106 sb.Append(prefix).AppendFormat("%s %s;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 146 sb.Append(prefix).AppendFormat("%s %s;\n", EmitCppType().c_str(), memberName.c_str()); in EmitCppUnMarshalling()
|
D | ast_union_type.cpp | 66 std::string ASTUnionType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTUnionType 114 sb.Append(TAB).AppendFormat("%s %s;\n", member->EmitCppType().c_str(), memberName.c_str()); in EmitCppTypeDecl() 198 parcelName.c_str(), name.c_str(), EmitCppType().c_str()); in EmitCppWriteVar() 208 sb.Append(prefix).AppendFormat("%s %s;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 211 …EmitCppType().c_str(), name.c_str(), EmitCppType().c_str(), parcelName.c_str(), EmitCppType().c_st… in EmitCppReadVar() 217 EmitCppType().c_str(), name.c_str(), EmitCppType().c_str()); in EmitCppReadVar() 263 name.c_str(), EmitCppType().c_str()); in EmitCppMarshalling() 273 …EmitCppType().c_str(), name.c_str(), EmitCppType().c_str(), parcelName.c_str(), EmitCppType().c_st… in EmitCppUnMarshalling()
|
D | ast_pointer_type.h | 28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_pointer_type.cpp | 44 std::string ASTPointerType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTPointerType
|
D | ast_smq_type.h | 33 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override; 61 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_struct_type.cpp | 69 std::string ASTStructType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTStructType 122 sb.Append(TAB).AppendFormat("%s %s;\n", member->EmitCppType().c_str(), memberName.c_str()); in EmitCppTypeDecl() 177 … "if (!%sBlockMarshalling(%s, %s)) {\n", EmitCppType().c_str(), parcelName.c_str(), name.c_str()); in EmitCppWriteVar() 187 sb.Append(prefix).AppendFormat("%s %s;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 226 …sb.Append(prefix).AppendFormat("if (!%sBlockUnmarshalling(data, %s)) {\n", EmitCppType().c_str(), … in EmitCppUnMarshalling()
|
D | ast_ulong_type.cpp | 44 std::string ASTUlongType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTUlongType 109 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 148 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppUnMarshalling()
|
D | ast_uchar_type.cpp | 44 std::string ASTUcharType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTUcharType 109 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 148 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppUnMarshalling()
|
D | ast_native_buffer_type.cpp | 44 std::string ASTNativeBufferType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTNativeBufferType 110 sb.AppendFormat("%s ", EmitCppType().c_str()); in EmitCppReadVar() 148 sb.AppendFormat("%s ", EmitCppType().c_str()); in EmitCppUnMarshalling()
|
D | ast_ushort_type.cpp | 44 std::string ASTUshortType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTUshortType 109 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 148 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppUnMarshalling()
|
D | ast_uint_type.cpp | 44 std::string ASTUintType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTUintType 109 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 148 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppUnMarshalling()
|
D | ast_double_type.cpp | 44 std::string ASTDoubleType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTDoubleType 108 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 147 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppUnMarshalling()
|
D | ast_short_type.cpp | 44 std::string ASTShortType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTShortType 108 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 147 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppUnMarshalling()
|
D | ast_byte_type.cpp | 44 std::string ASTByteType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTByteType 108 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 147 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppUnMarshalling()
|
D | ast_boolean_type.cpp | 44 std::string ASTBooleanType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTBooleanType 108 sb.Append(prefix).AppendFormat("%s %s = false;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 147 sb.Append(prefix).AppendFormat("%s %s = false;\n", EmitCppType().c_str(), name.c_str()); in EmitCppUnMarshalling()
|
D | ast_float_type.cpp | 44 std::string ASTFloatType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTFloatType 108 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 147 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppUnMarshalling()
|
D | ast_long_type.cpp | 44 std::string ASTLongType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTLongType 108 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 147 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppUnMarshalling()
|
D | ast_integer_type.cpp | 44 std::string ASTIntegerType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTIntegerType 108 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppReadVar() 147 sb.Append(prefix).AppendFormat("%s %s = 0;\n", EmitCppType().c_str(), name.c_str()); in EmitCppUnMarshalling()
|
D | ast_parameter.cpp | 90 …return StringHelper::Format("%s %s", type_->EmitCppType(TypeMode::PARAM_IN).c_str(), name_.c_str()… in EmitCppParameter() 92 …return StringHelper::Format("%s %s", type_->EmitCppType(TypeMode::PARAM_OUT).c_str(), name_.c_str(… in EmitCppParameter() 173 sb.AppendFormat("%s %s", type_->EmitCppType(TypeMode::LOCAL_VAR).c_str(), name_.c_str()); in EmitCppLocalVar()
|
D | ast_sequenceable_type.cpp | 57 std::string ASTSequenceableType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTSequenceableType 112 …sb.Append(prefix).AppendFormat("%s %s = %s.ReadStrongParcelable<%s>();\n", EmitCppType().c_str(), … in EmitCppUnMarshalling()
|
D | ast_enum_type.cpp | 79 std::string ASTEnumType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTEnumType 122 sb.AppendFormat("enum %s : %s {\n", name_.c_str(), baseType_->EmitCppType().c_str()); in EmitCppTypeDecl() 209 …sb.Append(prefix).AppendFormat("%s %s = static_cast<%s>(0);\n", EmitCppType().c_str(), name.c_str(… in EmitCppReadVar() 261 …sb.Append(prefix).AppendFormat("%s %s = static_cast<%s>(0);\n", EmitCppType().c_str(), name.c_str(… in EmitCppUnMarshalling()
|
D | ast_sequenceable_type.h | 32 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override;
|
D | ast_map_type.h | 51 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override;
|
/drivers/hdf_core/framework/tools/hdi-gen/codegen/ |
D | cpp_custom_types_code_emitter.cpp | 203 type->EmitCppType().c_str(), objName.c_str()); in EmitCustomTypeMarshallingDecl() 211 type->EmitCppType().c_str(), objName.c_str()); in EmitCustomTypeUnmarshallingDecl() 282 …("bool %sBlockMarshalling(OHOS::MessageParcel& data, const %s& %s)\n", type->EmitCppType().c_str(), in EmitCustomTypeMarshallingImpl() 283 type->EmitCppType().c_str(), objName.c_str()); in EmitCustomTypeMarshallingImpl() 288 type->EmitCppType().c_str()); in EmitCustomTypeMarshallingImpl() 314 type->EmitCppType().c_str(), objName.c_str()); in EmitCustomTypeUnmarshallingImpl() 320 …type->EmitCppType().c_str(), objPtrName.c_str(), type->EmitCppType().c_str(), type->EmitCppType().… in EmitCustomTypeUnmarshallingImpl() 325 type->EmitCppType().c_str(), objPtrName.c_str(), type->EmitCppType().c_str()); in EmitCustomTypeUnmarshallingImpl() 341 name.c_str(), memberType->EmitCppType().c_str(), cpName.c_str(), in EmitCustomTypeUnmarshallingImpl() 342 memberType->EmitCppType().c_str()); in EmitCustomTypeUnmarshallingImpl()
|