Change InputMetadata class to struct
[platform/core/api/mediavision.git] / 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;