/**
 * @file data_pool.cpp
 * @brief DataPool component implementation
 * @author Mahmoud Elmohtady
 * @company Nabd solutions - ASF
 * @copyright Copyright (c) 2025
 */

#include "data_pool.hpp"
#include "logger.hpp"

static const char* TAG = "DataPool";

DataPool::DataPool()
    : m_isInitialized(false)
{
}

DataPool::~DataPool()
{
    deinitialize();
}

bool DataPool::initialize()
{
    // TODO: Implement initialization
    m_isInitialized = true;
    ASF_LOGI(TAG, 4900, asf::logger::Criticality::LOW, "DataPool initialized successfully");
    return true;
}

bool DataPool::deinitialize()
{
    if (!m_isInitialized)
    {
        return false;
    }

    // TODO: Implement deinitialization
    m_isInitialized = false;
    return true;
}

bool DataPool::isInitialized() const
{
    return m_isInitialized;
}
