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

#include "sensor_manager.hpp"
#include "logger.hpp"

static const char* TAG = "SensorManager";

SensorManager::SensorManager()
    : m_isInitialized(false)
{
}

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

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

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

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

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