/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/ |
H A D | implementation_macros.h | 44 #define META_DEFINE_PROPERTY_VAR(intf, name, type, defaultValue, flags) \ 47 intf, #name, flags, \ 58 #define META_DEFINE_PROPERTY_VARArray(intf, name, type, defaultValue, flags) \ 60 intf, #name, flags, \ 71 #define META_DEFINE_READONLY_PROPERTY(propType, intf, name, type, defaultValue, flags) \ 73 intf, name, type, defaultValue, flags)::META_NS::IProperty::ConstPtr Property##name() const noexcept override \ 79 #define META_DEFINE_PROPERTY(propType, intf, name, type, defaultValue, flags) \ 80 META_DEFINE_READONLY_PROPERTY(propType, intf, name, type, defaultValue, flags) \ 87 #define META_DEFINE_READONLY_ARRAY_PROPERTY(propType, intf, name, type, defaultValue, flags) \ 89 intf, nam [all...] |
H A D | metadata_helpers.h | 120 META_NS::nullptr_t RegisterStaticPropertyMetadata(const META_NS::InterfaceInfo& intf, BASE_NS::string_view name, \ 125 META_NS::PropertyMetadata { name, intf, flags, META_NS::UidFromType<Type>(), ctor, init }); \ 130 META_NS::nullptr_t RegisterStaticEventMetadata(const META_NS::InterfaceInfo& intf, BASE_NS::string_view name, \ 134 StaticObjectMeta().events.push_back(META_NS::EventMetadata { name, intf, Type::UID, ctor, init }); \ 138 META_NS::nullptr_t RegisterStaticFunctionMetadata(const META_NS::InterfaceInfo& intf, BASE_NS::string_view name, \ 142 StaticObjectMeta().functions.push_back(META_NS::FunctionMetadata { name, intf, ctor, context }); \
|
H A D | object.h | 218 nullptr_t RegisterStaticPropertyMetadata(const META_NS::InterfaceInfo& intf, BASE_NS::string_view name, in RegisterStaticPropertyMetadata() argument 223 PropertyMetadata { name, intf, flags, UidFromType<Type>(), ctor, init }); in RegisterStaticPropertyMetadata() 229 nullptr_t RegisterStaticEventMetadata(const META_NS::InterfaceInfo& intf, BASE_NS::string_view name, in RegisterStaticEventMetadata() argument 233 StaticObjectMeta().events.push_back(EventMetadata { name, intf, Type::UID, ctor, init }); in RegisterStaticEventMetadata() 238 nullptr_t RegisterStaticFunctionMetadata(const META_NS::InterfaceInfo& intf, BASE_NS::string_view name, in RegisterStaticFunctionMetadata() argument 242 StaticObjectMeta().functions.push_back(FunctionMetadata { name, intf, ctor, context }); in RegisterStaticFunctionMetadata()
|
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/ |
H A D | intf_metadata.h | 167 const BASE_NS::shared_ptr<Interface>& intf, BASE_NS::string_view name, ValueType defaultValue = {}) noexcept 169 return GetValue<ValueType>(interface_cast<IMetadata>(intf), name, defaultValue); 175 const BASE_NS::weak_ptr<Interface>& intf, BASE_NS::string_view name, ValueType defaultValue = {}) noexcept 177 return GetValue<ValueType>(interface_pointer_cast<IMetadata>(intf), name, defaultValue); 193 const BASE_NS::shared_ptr<Interface>& intf, BASE_NS::string_view name, const ValueType& value) noexcept 195 return SetValue(interface_cast<IMetadata>(intf), name, value); 200 const BASE_NS::weak_ptr<Interface>& intf, BASE_NS::string_view name, const ValueType& value) noexcept 202 return SetValue(interface_pointer_cast<IMetadata>(intf), name, value);
|
/foundation/ability/ability_base/interfaces/kits/native/want/src/ |
H A D | want_params.cpp | 1203 sptr<IInterface> intf = String::Box(Str16ToStr8(value)); in ReadFromParcelString() local 1204 if (intf) { in ReadFromParcelString() 1205 SetParam(key, intf); in ReadFromParcelString() 1216 sptr<IInterface> intf = Boolean::Box(value); in ReadFromParcelBool() local 1217 if (intf) { in ReadFromParcelBool() 1218 SetParam(key, intf); in ReadFromParcelBool() 1233 sptr<IInterface> intf = Byte::Box(value); in ReadFromParcelInt8() local 1234 if (intf) { in ReadFromParcelInt8() 1235 SetParam(key, intf); in ReadFromParcelInt8() 1250 sptr<IInterface> intf in ReadFromParcelChar() local 1267 sptr<IInterface> intf = Short::Box(value); ReadFromParcelShort() local 1284 sptr<IInterface> intf = Integer::Box(value); ReadFromParcelInt() local 1314 sptr<IInterface> intf = WantParamWrapper::Box(*value); ReadFromParcelWantParamWrapper() local 1362 sptr<IInterface> intf = Long::Box(value); ReadFromParcelLong() local 1364 sptr<IInterface> intf = String::Box(std::to_string(value)); ReadFromParcelLong() local 1382 sptr<IInterface> intf = Float::Box(value); ReadFromParcelFloat() local 1399 sptr<IInterface> intf = Double::Box(value); ReadFromParcelDouble() local 1495 sptr<IInterface> intf = ao; ReadFromParcelParam() local [all...] |
/foundation/ability/dmsfwk/services/dtbschedmgr/src/distributedWant/ |
H A D | distributed_want_params.cpp | 1133 sptr<IInterface> intf = AAFwk::String::Box(Str16ToStr8(value)); in ReadFromParcelString() local 1134 if (intf) { in ReadFromParcelString() 1135 SetParam(key, intf); in ReadFromParcelString() 1144 sptr<IInterface> intf = AAFwk::Boolean::Box(value); in ReadFromParcelBool() local 1145 if (intf) { in ReadFromParcelBool() 1146 SetParam(key, intf); in ReadFromParcelBool() 1158 sptr<IInterface> intf = AAFwk::Byte::Box(value); in ReadFromParcelInt8() local 1159 if (intf) { in ReadFromParcelInt8() 1160 SetParam(key, intf); in ReadFromParcelInt8() 1172 sptr<IInterface> intf in ReadFromParcelChar() local 1186 sptr<IInterface> intf = AAFwk::Short::Box(value); ReadFromParcelShort() local 1200 sptr<IInterface> intf = AAFwk::Integer::Box(value); ReadFromParcelInt() local 1221 sptr<IInterface> intf = DistributedWantParamWrapper::Parse(Str16ToStr8(value)); ReadFromParcelWantParamWrapper() local 1264 sptr<IInterface> intf = Long::Box(value); ReadFromParcelLong() local 1266 sptr<IInterface> intf = AAFwk::String::Box(std::to_string(value)); ReadFromParcelLong() local 1281 sptr<IInterface> intf = AAFwk::Float::Box(value); ReadFromParcelFloat() local 1295 sptr<IInterface> intf = AAFwk::Double::Box(value); ReadFromParcelDouble() local [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/src/serialization/ |
H A D | exporter.cpp | 250 BASE_NS::shared_ptr<const CORE_NS::IInterface> intf; in ExportPointer() local 251 if (entity.GetValue(intf)) { in ExportPointer() 253 if (!intf) { in ExportPointer() 259 if (auto obj = interface_pointer_cast<IObject>(intf)) { in ExportPointer() 262 if (auto any = interface_pointer_cast<IAny>(intf)) { in ExportPointer()
|
H A D | importer.cpp | 320 if (auto intf = GetPointer(entity)) { in ImportPointer() 322 if (auto object = interface_pointer_cast<IObject>(intf)) { in ImportPointer() 326 } else if (auto any = interface_pointer_cast<IAny>(intf)) { in ImportPointer()
|