ecal.proto.helper module

Module that contains protobuf helper functionality.

ecal.proto.helper.add_proto_desc(file_desc_set, file_desc, inserted_files)

Add the file descriptor and all its dependencies to the protobuf file descriptor set

Parameters
  • file_desc_set – a protobuf file descriptor set

  • file_desc – the current file descriptor

  • inserted_files – accumulator variable for checking whether the file has already been inserted.

ecal.proto.helper.get_descriptor_from_type(type_)

Returns a file descriptor set which contains all dependencies of a protobuf type that can be used for reflection purposes in eCAL.

Parameters

type – Python type of the generated pb2.py protobuf file.

ecal.proto.helper.get_type_from_descriptor(typename, descriptor)

Returns a file descriptor set which contains all dependencies of a protobuf type that can be used for reflection purposes in eCAL.

Parameters
  • typename – name of the type of the protobuf message

  • descriptor – descriptor as stored in a measurement