/*****************************************************************//**
 * \file   BaseComponent.h
 * \brief  The Base Component provides the basic functionality of storing a mediator's instance inside component objects.
 * 
 * \author talmefta
 * \date   June 2022
 *********************************************************************/
#ifndef BASECOMPONENT_H
#define BASECOMPONENT_H


#include "RmpPspMediator.h"

/**
 * \class  BaseComponent
 * The Base Component provides the basic functionality of storing a mediator's
 * instance inside component objects.
 */

class BaseComponent {
protected:
    RmpPspMediator* mediator;

public:
    BaseComponent(RmpPspMediator* mediator = nullptr) : mediator(mediator) {
    }

    void set_mediator(RmpPspMediator* mediator) {
        this->mediator = mediator;
    }
};
#endif // !BASECOMPONENT_H