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 {
|
2025-10-02 18:19:11 +08:00
|
|
|
|
2025-09-24 16:20:21 +08:00
|
|
|
class Summary {
|
|
|
|
|
public:
|
|
|
|
|
Summary(const std::u8string_view& name,
|
|
|
|
|
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;
|
|
|
|
|
std::u8string_view get_author() const;
|
|
|
|
|
std::u8string_view get_version() const;
|
|
|
|
|
std::u8string_view get_description() const;
|
|
|
|
|
|
|
|
|
|
private:
|
2025-10-02 18:19:11 +08:00
|
|
|
std::u8string name, author, version, description;
|
2025-09-24 16:20:21 +08:00
|
|
|
};
|
|
|
|
|
|
2025-10-02 18:19:11 +08:00
|
|
|
} // namespace yycc::carton::clap::summary
|