From: Kwanghoon Son Date: Wed, 21 Sep 2022 05:05:23 +0000 (-0400) Subject: Change metadata class to struct X-Git-Tag: submit/tizen/20220921.082242^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2a2a25253ed0ef8aeef89ae8e12e7a1380bda7c;p=platform%2Fcore%2Fapi%2Fmediavision.git Change metadata class to struct [Issue type] refactoring OutputMetadata class needs access all of Info member variables. So all of Info class variables need to get method because it is just struct of data. Since Info classes not have any special member function, struct is more suitable for data access Change-Id: I33594b225173314a42585738ac8a32d49efc8493 Signed-off-by: Kwanghoon Son --- diff --git a/mv_machine_learning/inference/include/OutputMetadata.h b/mv_machine_learning/inference/include/OutputMetadata.h index 72f51fe..f2d514a 100644 --- a/mv_machine_learning/inference/include/OutputMetadata.h +++ b/mv_machine_learning/inference/include/OutputMetadata.h @@ -46,9 +46,8 @@ namespace mediavision { namespace inference { -class OutputMetadata +struct OutputMetadata { -private: bool parsed = false; ScoreInfo score; box::BoxInfo box; @@ -64,7 +63,6 @@ private: int ParseLandmark(JsonObject *root); int ParseOffset(JsonObject *root); -public: /** * @brief Destroys an OutputMetadata class instance including * its all resources.