2019-02-08 16:43:45 +01:00
|
|
|
/****************************************************************************
|
|
|
|
* Copyright (C) 2018 Maschell
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
****************************************************************************/
|
|
|
|
|
2020-04-29 18:02:36 +02:00
|
|
|
#pragma once
|
|
|
|
|
2022-02-04 16:25:44 +01:00
|
|
|
#include "../utils/logger.h"
|
2020-04-29 18:02:36 +02:00
|
|
|
#include <string>
|
2022-01-27 12:47:33 +01:00
|
|
|
#include <utility>
|
2020-04-29 18:02:36 +02:00
|
|
|
|
|
|
|
class ImportRPLInformation {
|
|
|
|
|
2019-02-08 16:43:45 +01:00
|
|
|
public:
|
2020-12-26 14:17:50 +01:00
|
|
|
explicit ImportRPLInformation(std::string name, bool isData = false) {
|
2022-02-04 16:25:44 +01:00
|
|
|
this->name = std::move(name);
|
2020-04-29 18:02:36 +02:00
|
|
|
this->_isData = isData;
|
|
|
|
}
|
2019-02-08 16:43:45 +01:00
|
|
|
|
2020-12-26 14:17:50 +01:00
|
|
|
~ImportRPLInformation() = default;
|
2019-02-08 16:43:45 +01:00
|
|
|
|
2020-12-26 14:17:50 +01:00
|
|
|
[[nodiscard]] std::string getName() const {
|
2020-04-29 18:02:36 +02:00
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
2020-12-26 14:17:50 +01:00
|
|
|
[[nodiscard]] bool isData() const {
|
2020-04-29 18:02:36 +02:00
|
|
|
return _isData;
|
|
|
|
}
|
2019-02-08 16:43:45 +01:00
|
|
|
|
2020-04-29 18:02:36 +02:00
|
|
|
private:
|
|
|
|
std::string name;
|
|
|
|
bool _isData = false;
|
2019-02-08 16:43:45 +01:00
|
|
|
};
|