added method to return property id given a name

This commit is contained in:
bigjohngoulah
2005-12-13 22:43:07 +00:00
parent 9c716aab7b
commit babe7d57ff
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -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"},
+2
View File
@@ -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 */