1
0
Files
YYCCommonplace/src/yycc/carton/clap/application.hpp
yyc12345 c8d763bdcf feat: add utf8 format
- move utf8 stream and format patch from string to patch namespace.
- add ordinay format alias and utf8 format in our format patch.
- add char8_t and char inter-cast in string reinterpret namespace.
- fix bug of utf8 formatter.
- add test for utf8 format.
2025-09-25 15:29:55 +08:00

33 lines
979 B
C++

#pragma once
#include "summary.hpp"
#include "option.hpp"
#include "variable.hpp"
#include "../../macro/class_copy_move.hpp"
#define NS_YYCC_CLAP ::yycc::carton::clap
namespace yycc::carton::clap::application {
class Application {
public:
Application(NS_YYCC_CLAP::summary::Summary&& summary,
NS_YYCC_CLAP::option::OptionCollection&& options,
NS_YYCC_CLAP::variable::VariableCollection&& variables);
~Application();
YYCC_DEFAULT_COPY_MOVE(Application);
public:
const NS_YYCC_CLAP::summary::Summary& get_summary() const;
const NS_YYCC_CLAP::option::OptionCollection& get_options() const;
const NS_YYCC_CLAP::variable::VariableCollection& get_variables() const;
private:
NS_YYCC_CLAP::summary::Summary summary;
NS_YYCC_CLAP::option::OptionCollection options;
NS_YYCC_CLAP::variable::VariableCollection variables;
};
}
#undef NS_YYCC_CLAP