如何获取属性类型

编程入门 行业动态 更新时间:2024-10-26 20:22:32
本文介绍了如何获取属性类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有可能获取某些模型节点的属性:

There is possibility to get properties for some model node:

model.getProperties(nodeId, /*success handler*/, /*error handler*/)

结果是这样的:属性列表

属性描述具有看起来像 ID 的字段类型".我可以在那里找到有关房产类型的信息?我如何确定它是可数的还是按字母顺序排列的?

Property description has field "type" that looks like ID. There can I find info about property types? How can I determine is it numerable or alphabetical?

推荐答案

以下是执行属性提取的 C++ 代码中的类型值:

Here are the type values from the C++ code that performs properties extraction:

enum AttributeType { /* Numeric types */ Unknown = 0, Boolean, Integer, Double, /* Special types */ BLOB = 10, DbKey, /* reprensets a link to another object in the database, using database internal ID */ /* String types */ String = 20, LocalizableString, DateTime, /* ISO 8601 date */ GeoLocation, /* LatLonHeight - ISO6709 Annex H string, e.g: "+27.5916+086.5640+8850/" for Mount Everest */ Position /* "x y z w" space separated string representing vector with 2,3 or 4 elements*/ };

更多推荐

如何获取属性类型

本文发布于:2023-11-12 11:36:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581393.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:属性   类型

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!