File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 18
18
19
19
#include < app-common/zap-generated/attribute-type.h>
20
20
21
+ bool EmberAfAttributeMetadata::IsBoolean () const
22
+ {
23
+ return attributeType == ZCL_BOOLEAN_ATTRIBUTE_TYPE;
24
+ }
25
+
26
+ bool EmberAfAttributeMetadata::IsSignedIntegerAttribute () const
27
+ {
28
+ return chip::app::IsSignedAttributeType (attributeType);
29
+ }
30
+
21
31
bool emberAfIsStringAttributeType (EmberAfAttributeType attributeType)
22
32
{
23
33
return (attributeType == ZCL_OCTET_STRING_ATTRIBUTE_TYPE || attributeType == ZCL_CHAR_STRING_ATTRIBUTE_TYPE);
Original file line number Diff line number Diff line change 17
17
18
18
#pragma once
19
19
20
- #include < app-common/zap-generated/attribute-type.h>
21
20
#include < app/util/basic-types.h>
22
21
#include < cstdint>
23
22
@@ -161,12 +160,12 @@ struct EmberAfAttributeMetadata
161
160
/* *
162
161
* Check wether this attribute is a boolean based on its type according to the spec.
163
162
*/
164
- bool IsBoolean () const { return attributeType == ZCL_BOOLEAN_ATTRIBUTE_TYPE; }
163
+ bool IsBoolean () const ;
165
164
166
165
/* *
167
166
* Check wether this attribute is signed based on its type according to the spec.
168
167
*/
169
- bool IsSignedIntegerAttribute () const { return chip::app::IsSignedAttributeType (attributeType); }
168
+ bool IsSignedIntegerAttribute () const ;
170
169
171
170
/* *
172
171
* Check whether this attribute has a define min and max.
You can’t perform that action at this time.
0 commit comments