- 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.
33 lines
979 B
C++
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
|