-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
CLASS zcl_protobuf2_enum DEFINITION PUBLIC. | ||
PUBLIC SECTION. | ||
INTERFACES zif_protobuf2_serializable. | ||
ENDCLASS. | ||
|
||
CLASS zcl_protobuf2_enum IMPLEMENTATION. | ||
|
||
METHOD zif_protobuf2_serializable~serialize. | ||
ASSERT 1 = 'todo'. | ||
ENDMETHOD. | ||
|
||
ENDCLASS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
CLASS zcl_protobuf2_file DEFINITION PUBLIC. | ||
PUBLIC SECTION. | ||
* https://protobuf.dev/reference/protobuf/proto2-spec/#proto_file | ||
|
||
INTERFACES zif_protobuf2_serializable. | ||
|
||
DATA mt_messages TYPE STANDARD TABLE OF REF TO zcl_protobuf2_message WITH EMPTY KEY. | ||
* DATA mt_enums TYPE STANDARD TABLE OF REF TO zcl_protobuf2_enum WITH EMPTY KEY. | ||
ENDCLASS. | ||
|
||
CLASS zcl_protobuf2_file IMPLEMENTATION. | ||
|
||
METHOD zif_protobuf2_serializable~serialize. | ||
rv_string = |syntax = "proto2";\n|. | ||
LOOP AT mt_messages INTO DATA(lo_message). | ||
rv_string = rv_string && lo_message->zif_protobuf2_serializable~serialize( ). | ||
ENDLOOP. | ||
ENDMETHOD. | ||
|
||
ENDCLASS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters