From da1d41840879bc75a9df06972e1ec191bbfd3691 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Wed, 23 Oct 2013 09:02:33 -0400 Subject: Switch back to many subtypes for binary messages. Some protobuf libraries don't support checking if a field exists (they always return a default value), so although this style has more code it is easier to support. --- gen/cpp/openxc.pb | 54 ++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 38 insertions(+), 16 deletions(-) (limited to 'gen/cpp/openxc.pb') diff --git a/gen/cpp/openxc.pb b/gen/cpp/openxc.pb index d4356e1c..7efe870c 100644 --- a/gen/cpp/openxc.pb +++ b/gen/cpp/openxc.pb @@ -1,27 +1,49 @@ -à - openxc.protoopenxc"¼ +Ú + openxc.protoopenxc"š VehicleMessage) type (2.openxc.VehicleMessage.Type' - raw_message ( 2.openxc.RawMessage5 -translated_message ( 2.openxc.TranslatedMessage" + raw_message ( 2.openxc.RawMessage- +string_message ( 2.openxc.StringMessage/ +numeric_message ( 2.openxc.NumericMessage/ +boolean_message ( 2.openxc.BooleanMessage< +evented_string_message ( 2.openxc.EventedStringMessage> +evented_boolean_message ( 2.openxc.EventedBooleanMessage> +evented_numeric_message ( 2.openxc.EventedNumericMessage"e Type -RAW +RAW -TRANSLATED"; +STRING +BOOL +NUM + EVENTED_NUM +EVENTED_STRING + EVENTED_BOOL"- RawMessage bus ( -message_id (  -data ("­ -TranslatedMessage -name (  - string_value (  -numerical_value ( - boolean_value ( - string_event (  -numerical_event ( - boolean_event (B +message_id ( ", + StringMessage +name (  +value ( "- +NumericMessage +name (  +value ("- +BooleanMessage +name (  +value ("B +EventedStringMessage +name (  +value (  +event ( "C +EventedBooleanMessage +name (  +value (  +event ("C +EventedNumericMessage +name (  +value (  +event (B com.openxcBBinaryMessages \ No newline at end of file -- cgit 1.2.3-korg