// Copyright (C) 2018-2026 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

/**
 * \brief NumpyArray reader
 * \file npy.h
 */
#pragma once

#include <memory>
#include <string>
#include <vector>

// clang-format off
#include "format_reader.h"
#include "register.h"
// clang-format on

namespace FormatReader {
/**
 * \class NumpyArray
 * \brief Reader for NPY files
 */
class NumpyArray : public Reader {
private:
    static Register<NumpyArray> reg;
    std::string type;
    size_t _size = 0;

public:
    /**
     * \brief Constructor of NumpyArray reader
     * @param filename - path to input data
     * @return NumpyArray reader object
     */
    explicit NumpyArray(const std::string& filename);
    virtual ~NumpyArray() {}

    /**
     * \brief Get size
     * @return size
     */
    size_t size() const override {
        return _size;
    }

    std::shared_ptr<unsigned char> getData(size_t width = 0, size_t height = 0) override {
        return _data;
    }
};
}  // namespace FormatReader
