Home
last modified time | relevance | path

Searched refs:EmitCppType (Results 1 – 25 of 53) sorted by relevance

123

/drivers/hdf_core/framework/tools/hdi-gen/ast/
Dast_smq_type.cpp41 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 …]
Dast_map_type.cpp59 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()
Dast_union_type.cpp66 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()
211EmitCppType().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()
273EmitCppType().c_str(), name.c_str(), EmitCppType().c_str(), parcelName.c_str(), EmitCppType().c_st… in EmitCppUnMarshalling()
Dast_pointer_type.h28 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_pointer_type.cpp44 std::string ASTPointerType::EmitCppType(TypeMode mode) const in EmitCppType() function in OHOS::HDI::ASTPointerType
Dast_smq_type.h33 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override;
61 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_struct_type.cpp69 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()
Dast_ulong_type.cpp44 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()
Dast_uchar_type.cpp44 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()
Dast_native_buffer_type.cpp44 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()
Dast_ushort_type.cpp44 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()
Dast_uint_type.cpp44 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()
Dast_double_type.cpp44 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()
Dast_short_type.cpp44 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()
Dast_byte_type.cpp44 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()
Dast_boolean_type.cpp44 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()
Dast_float_type.cpp44 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()
Dast_long_type.cpp44 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()
Dast_integer_type.cpp44 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()
Dast_parameter.cpp90 …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()
Dast_sequenceable_type.cpp57 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()
Dast_enum_type.cpp79 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()
Dast_sequenceable_type.h32 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override;
Dast_map_type.h51 std::string EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override;
/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Dcpp_custom_types_code_emitter.cpp203 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()

123