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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user