From 2a6a9b15ba855b5085c2bf042e50bfd8d6c3f36e Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Fri, 18 Aug 2023 07:21:29 +0200 Subject: [PATCH] wip --- src/generator/zcl_protobuf_generator.clas.abap | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/generator/zcl_protobuf_generator.clas.abap b/src/generator/zcl_protobuf_generator.clas.abap index 2733609..8128d5a 100644 --- a/src/generator/zcl_protobuf_generator.clas.abap +++ b/src/generator/zcl_protobuf_generator.clas.abap @@ -7,24 +7,30 @@ CLASS zcl_protobuf_generator DEFINITION PUBLIC. VALUE(rv_abap) TYPE string. PROTECTED SECTION. PRIVATE SECTION. + METHODS message + IMPORTING + io_message TYPE REF TO zcl_protobuf2_message. ENDCLASS. CLASS zcl_protobuf_generator IMPLEMENTATION. - METHOD generate. LOOP AT io_file->mt_artefacts INTO DATA(lo_artefact). rv_abap = 'sdfs'. CASE TYPE OF lo_artefact. - WHEN TYPE zcl_protobuf2_message. - WRITE / 'todo'. + WHEN TYPE zcl_protobuf2_message INTO DATA(lo_message). + message( lo_message ). WHEN OTHERS. WRITE / 'todo'. ENDCASE. ENDLOOP. ENDMETHOD. + + METHOD message. +* todo + ENDMETHOD. ENDCLASS.