2025-09-24 16:20:21 +08:00
|
|
|
#pragma once
|
|
|
|
|
#include "../../macro/class_copy_move.hpp"
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
|
|
namespace yycc::carton::clap::summary {
|
|
|
|
|
|
|
|
|
|
class Summary {
|
|
|
|
|
public:
|
|
|
|
|
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,
|
|
|
|
|
const std::u8string_view& description);
|
|
|
|
|
~Summary();
|
|
|
|
|
YYCC_DEFAULT_COPY_MOVE(Summary)
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
std::u8string_view get_name() const;
|
2025-09-25 15:52:28 +08:00
|
|
|
std::u8string_view get_bin_name() const;
|
2025-09-24 16:20:21 +08:00
|
|
|
std::u8string_view get_author() const;
|
|
|
|
|
std::u8string_view get_version() const;
|
|
|
|
|
std::u8string_view get_description() const;
|
|
|
|
|
|
|
|
|
|
private:
|
2025-09-25 15:52:28 +08:00
|
|
|
std::u8string name, bin_name, author, version, description;
|
2025-09-24 16:20:21 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|