RType
IComponent.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2023
3 ** R-type
4 ** File description:
5 ** R-type
6 */
7 
8 #pragma once
9 #include <iostream>
10 
12 {
13  public:
14 
15  /**
16  * @brief Construct a new IComponentRType object
17  */
18  virtual ~IComponentRType() = default;
19 
20 
21  /**
22  * @brief getAttribute, get the attribute
23  *
24  * @return attribute (char *)
25  */
26  [[nodiscard]] virtual char *getAttribute() const = 0;
27 
28  /**
29  * @brief setAttribute, set the attribute
30  *
31  * @param attribute
32  */
33  virtual void setAttribute(std::string attribute) = 0;
34 
35  protected:
36  char *_attribute;
37 };