clibgen.api.PropertyDefinition
R2026bDescription
A clibgen.api.PropertyDefinition object represents the
MATLAB® definition of a C++ property.
Creation
creates a property
definition object from the propDef = classDef.PropertiesProperties property of a clibgen.api.ClassDefinition object.
Properties
Whether this construct is included in the interface, specified as a numeric or logical
1 (true) or 0
(false).
This property is read-only.
Fully qualified C++ property name, represented as a string scalar.
This property is read-only.
Fully qualified name of the C++ class that contains the property, represented as a string scalar.
This property is read-only.
C++ parameter type, represented as a string scalar.
MATLAB type for the property, specified as a string scalar.
Dimensions of array data, specified as a numeric vector, string vector, cell array,
or "nullTerminated". MATLAB uses this value to determine the number
of elements in the pointer data. For example:
If
Size= 1, the pointer refers to a single element.If
Size= 5, the pointer refers to an array of exactly five elements.If
Size="len", the number of elements in the array equals the value of the data member"len".If
Size=["m","n"], the pointer refers to a matrix with the number of elements in each dimension equal to the values of the data members"m"and"n".If
Size="nullTerminated", the pointer refers to a C++ string.
This property is read-only.
Whether the property requires additional definition, represented as
Complete or Incomplete.
This property is read-only.
Whether property is static, represented as true or
false.
Doxygen @brief comments from the header file that describe the
property for the end user, specified as a string scalar. If the header file does not
contain @brief comments, the text for
Description is:
MATLABName Representation of C++ property CPPName.
To modify the description in the PropertyDefinition object, use the
Description property.
Doxygen @details comments from the header file, specified as a
string scalar. If the header file does not contain a comment about the property, then
DetailedDescription is empty and does not appear in the
definition file.
If DetailedDescription is not empty, then the MATLAB
doc command displays the following sentence before displaying the value
of DetailedDescription:
This content is from the external library documentation.
Use the DetailedDescription property to provide more information about
the interface definition file.
Object Functions
define | Define property in C++ class |
Examples
Display the properties of a Sensor class.
Configure the interface for a library defined by
propertyDef.hpp.
icfg = clibgen.api.InterfaceConfiguration("libname"); icfg.HeaderFiles = "propertyDef.hpp"; idef = clibgen.api.InterfaceDefinition(icfg);
Display information about the Sensor class.
sensorDef = idef.findClass("Sensor");
sensorDef.PropertiesIf there are multiple properties, click the Display as table
link.
CPPName CPPType MATLABType Status Included
______________ ______________ ___________________________ __________ ________
"rawBuffer" "double *" "clib.array.libname.Double" Incomplete false
"bufferLength" "int" "int32" Complete true
"label" "char const *" "" Incomplete false
"sampleCount" "int" "int32" Complete true
"threshold" "double" "double" Complete true
"unit" "Unit" "clib.libname.Unit" Complete true
Version History
Introduced in R2026b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)