added method to return property id given a name
This commit is contained in:
@@ -356,6 +356,14 @@ const char *bactext_property_name(int index)
|
||||
Vendor_Proprietary_String);
|
||||
}
|
||||
|
||||
unsigned bactext_property_id(const char* name)
|
||||
{
|
||||
return indtext_by_istring_default(
|
||||
bacnet_property_names,
|
||||
name,
|
||||
0);
|
||||
}
|
||||
|
||||
INDTEXT_DATA bacnet_engineering_unit_names[] = {
|
||||
{ UNITS_SQUARE_METERS , "square-meters"},
|
||||
{ UNITS_SQUARE_FEET , "square-feet"},
|
||||
|
||||
@@ -53,6 +53,8 @@ const char *bactext_abort_reason_name(int index);
|
||||
const char *bactext_error_class_name(int index);
|
||||
const char *bactext_error_code_name(int index);
|
||||
|
||||
unsigned bactext_property_id(const char* name);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
Reference in New Issue
Block a user