2025-09-24 16:20:21 +08:00
|
|
|
#include "summary.hpp"
|
|
|
|
|
|
|
|
|
|
namespace yycc::carton::clap::summary {
|
|
|
|
|
|
|
|
|
|
Summary::Summary(const std::u8string_view &name,
|
2025-09-25 15:52:28 +08:00
|
|
|
const std::u8string_view &bin_name,
|
2025-09-24 16:20:21 +08:00
|
|
|
const std::u8string_view &author,
|
|
|
|
|
const std::u8string_view &version,
|
2025-09-25 15:52:28 +08:00
|
|
|
const std::u8string_view &description) :
|
|
|
|
|
name(name), bin_name(bin_name), author(author), version(version), description(description) {}
|
2025-09-24 16:20:21 +08:00
|
|
|
|
|
|
|
|
Summary::~Summary() {}
|
|
|
|
|
|
|
|
|
|
std::u8string_view Summary::get_name() const {
|
|
|
|
|
return this->name;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-25 15:52:28 +08:00
|
|
|
std::u8string_view Summary::get_bin_name() const {
|
|
|
|
|
return this->bin_name;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-24 16:20:21 +08:00
|
|
|
std::u8string_view Summary::get_author() const {
|
|
|
|
|
return this->author;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::u8string_view Summary::get_version() const {
|
|
|
|
|
return this->version;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::u8string_view Summary::get_description() const {
|
|
|
|
|
return this->description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace yycc::carton::clap::summary
|