Made bacepics' output more correct for VTS3 EPICS parsing.

Put command line argument checking and usage printing into their own functions,
and added an optional argument to show values instead of '?' for properties like Present_Value.
Added screening of properties that should normally be replaced with '?' on output.
Added a few enums to bactext (Node_Type, Polarity).
This commit is contained in:
tbrennan3
2010-04-16 20:52:40 +00:00
parent 4d90a024c6
commit fac19dff98
4 changed files with 173 additions and 38 deletions
+9
View File
@@ -914,6 +914,11 @@ bool bacapp_print_value(
(unsigned long)value->type.Enumerated);
}
break;
case PROP_POLARITY:
fprintf(stream, "%s",
bactext_binary_polarity_name(value->
type.Enumerated));
break;
case PROP_PRESENT_VALUE:
fprintf(stream, "%s",
bactext_binary_present_value_name(value->
@@ -932,6 +937,10 @@ bool bacapp_print_value(
fprintf(stream, "%s",
bactext_segmentation_name(value->type.Enumerated));
break;
case PROP_NODE_TYPE:
fprintf(stream, "%s",
bactext_node_type_name(value->type.Enumerated));
break;
default:
fprintf(stream, "%lu", (unsigned long)value->type.Enumerated);
break;