Change InputMetadata class to struct
authorKwanghoon Son <k.son@samsung.com>
Wed, 2 Nov 2022 01:19:15 +0000 (21:19 -0400)
committerInki Dae <inki.dae@samsung.com>
Mon, 7 Nov 2022 03:12:39 +0000 (12:12 +0900)
[Issue type] refactoring

Metadata just hold informations. To prevent make all get/setter method,
change class to struct same as OutputMetadata.

Change-Id: Ib9a8246d2be26d2fe0a2d33e66abf880d75f0761
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
mv_machine_learning/inference/include/InputMetadata.h

index 366be75..1622a53 100644 (file)
@@ -55,29 +55,28 @@ struct Options
        Quantization quantization;
 };
 
-class InputMetadata
+struct InputMetadata
 {
-public:
        /**
-                * @brief   Creates an InputMetadata class instance.
-                *
-                * @since_tizen 6.5
-                */
+        * @brief   Creates an InputMetadata class instance.
+        *
+        * @since_tizen 6.5
+        */
        InputMetadata();
 
        /**
-                * @brief   Destroys an InputMetadata class instance including
-                *          its all resources.
-                *
-                * @since_tizen 6.5
-                */
+        * @brief   Destroys an InputMetadata class instance including
+        *          its all resources.
+        *
+        * @since_tizen 6.5
+        */
        ~InputMetadata() = default;
 
        /**
-                * @brief Parses an InputMetadata
-                *
-                * @since_tizen 6.5
-                */
+        * @brief Parses an InputMetadata
+        *
+        * @since_tizen 6.5
+        */
        int Parse(JsonObject *root, std::string key_name);
        bool IsParsed(void)
        {
@@ -92,7 +91,6 @@ public:
                return option;
        }
 
-private:
        bool parsed;
        std::map<std::string, inference_tensor_shape_type_e> mSupportedShapeType;
        std::map<std::string, mv_inference_data_type_e> mSupportedDataType;