mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 20:32:26 +08:00

* log: move show functions to new class Enhance ZIF_ABAPGIT_LOG - add IS_ITEM structure (object) to message adding functions - add method "add_exception" - add method "add_info" - relocate methods "show", "to_html" and "write" to new class ZCL_ABAPGIT_LOG_VIEWER Introduction of new log viewer class ZCL_ABAPGIT_LOG_VIEWER Replacement of relocated methods where used -> This is the next step providing a log for serialzation/de-serialization (see #2534) * fix abaplint issues fix abaplint issues * fix abaplint issues (2) fix abaplint issues
73 lines
2.1 KiB
ABAP
73 lines
2.1 KiB
ABAP
INTERFACE zif_abapgit_log
|
|
PUBLIC .
|
|
|
|
TYPES:
|
|
BEGIN OF ty_log_out,
|
|
type TYPE symsgty,
|
|
text TYPE string,
|
|
obj_type TYPE trobjtype,
|
|
obj_name TYPE sobj_name,
|
|
END OF ty_log_out .
|
|
TYPES:
|
|
tty_log_out TYPE STANDARD TABLE OF ty_log_out
|
|
WITH NON-UNIQUE DEFAULT KEY .
|
|
|
|
TYPES:
|
|
BEGIN OF ty_msg,
|
|
text TYPE string,
|
|
type TYPE symsgty,
|
|
END OF ty_msg .
|
|
TYPES:
|
|
tty_msg TYPE STANDARD TABLE OF ty_msg
|
|
WITH NON-UNIQUE DEFAULT KEY .
|
|
|
|
TYPES:
|
|
BEGIN OF ty_item_status_out,
|
|
item TYPE zif_abapgit_definitions=>ty_item ,
|
|
status TYPE symsgty,
|
|
messages TYPE tty_msg,
|
|
END OF ty_item_status_out .
|
|
TYPES:
|
|
tty_item_status_out TYPE SORTED TABLE OF ty_item_status_out
|
|
WITH UNIQUE KEY item-obj_type item-obj_name.
|
|
|
|
METHODS add
|
|
IMPORTING
|
|
!iv_msg TYPE csequence
|
|
!iv_type TYPE symsgty DEFAULT 'E'
|
|
!iv_rc TYPE balsort OPTIONAL
|
|
!is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL .
|
|
METHODS add_error
|
|
IMPORTING
|
|
!iv_msg TYPE csequence
|
|
!is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL .
|
|
METHODS add_info
|
|
IMPORTING
|
|
!iv_msg TYPE csequence
|
|
!is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL .
|
|
METHODS add_warning
|
|
IMPORTING
|
|
!iv_msg TYPE csequence
|
|
!is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL .
|
|
METHODS add_success
|
|
IMPORTING
|
|
!iv_msg TYPE csequence
|
|
!is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL .
|
|
METHODS add_exception
|
|
IMPORTING
|
|
!ix_exc TYPE REF TO cx_root
|
|
!is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL .
|
|
METHODS clear .
|
|
METHODS count
|
|
RETURNING
|
|
VALUE(rv_count) TYPE i .
|
|
METHODS has_rc
|
|
IMPORTING
|
|
!iv_rc TYPE balsort
|
|
RETURNING
|
|
VALUE(rv_yes) TYPE abap_bool .
|
|
METHODS get_messages RETURNING VALUE(rt_msg) TYPE tty_log_out.
|
|
METHODS get_item_status EXPORTING et_item_status TYPE tty_item_status_out.
|
|
METHODS get_status RETURNING VALUE(rv_status) TYPE symsgty.
|
|
ENDINTERFACE.
|