From b6e8f85333bc2589d542ddf68432aff38ee36187 Mon Sep 17 00:00:00 2001 From: Piotr Gawlowicz Date: Thu, 30 Mar 2023 18:36:15 +0200 Subject: [PATCH] e2sm_kpm: make e2sm_kpm_report_service classes friend of e2sm_kpm --- srsgnb/hdr/stack/ric/e2sm_kpm.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/srsgnb/hdr/stack/ric/e2sm_kpm.h b/srsgnb/hdr/stack/ric/e2sm_kpm.h index 57c5458a0..5ae9fb599 100644 --- a/srsgnb/hdr/stack/ric/e2sm_kpm.h +++ b/srsgnb/hdr/stack/ric/e2sm_kpm.h @@ -45,15 +45,21 @@ public: virtual void receive_e2_metrics_callback(const enb_metrics_t& m); - bool _get_meas_definition(std::string meas_name, E2SM_KPM_metric_t& def); - bool _extract_integer_type_meas_value(E2SM_KPM_meas_value_t& meas_value, const enb_metrics_t& enb_metrics); - bool _extract_real_type_meas_value(E2SM_KPM_meas_value_t& meas_value, const enb_metrics_t& enb_metrics); - srslog::basic_logger& logger; + friend class e2sm_kpm_report_service; + friend class e2sm_kpm_report_service_style1; + friend class e2sm_kpm_report_service_style2; + friend class e2sm_kpm_report_service_style3; + friend class e2sm_kpm_report_service_style4; + friend class e2sm_kpm_report_service_style5; private: bool _generate_indication_header(e2_sm_kpm_ind_hdr_s& hdr, srsran::unique_byte_buffer_t& buf); bool _generate_indication_message(e2_sm_kpm_ind_msg_s& msg, srsran::unique_byte_buffer_t& buf); + bool _get_meas_definition(std::string meas_name, E2SM_KPM_metric_t& def); + bool _extract_integer_type_meas_value(E2SM_KPM_meas_value_t& meas_value, const enb_metrics_t& enb_metrics); + bool _extract_real_type_meas_value(E2SM_KPM_meas_value_t& meas_value, const enb_metrics_t& enb_metrics); + srslog::basic_logger& logger; std::vector supported_meas_types; std::map registered_actions_data;