8#pragma message("warning: Disabling macro definition of 'min' and 'max', since they conflicts in webcface/arg.h.")
31 std::shared_ptr<message::Arg> msg_data;
43 std::shared_ptr<message::Arg> initMsg();
51 void mergeConfig(
const Arg &other);
61 explicit Arg(
const std::shared_ptr<message::Arg> &msg_data);
104 std::optional<ValAdaptor> init()
const;
109 template <
typename T>
116 template <std::
size_t N>
123 template <std::
size_t N>
132 std::optional<double> min()
const;
141 Arg &min(
double min);
146 std::optional<double> max()
const;
155 Arg &max(
double max);
160 std::vector<ValAdaptor> option()
const;
161 Arg &option(std::vector<ValAdaptor> option);
168 template <
typename T>
170 std::vector<ValAdaptor> option_v;
171 for (
const auto &v : option) {
174 return this->option(std::move(option_v));
引数の情報を表す。
Definition arg.h:30
Arg(StringInitializer name)
引数名を設定する。
Definition arg.h:73
Arg & init(const wchar_t(&init)[N])
Definition arg.h:124
Arg & init(const char(&init)[N])
Definition arg.h:117
Arg & option(std::initializer_list< T > option)
引数の選択肢を設定する。
Definition arg.h:169
Arg & init(const T &init)
デフォルト値を設定する。
Definition arg.h:110
u8stringとstringとwstringをshared_ptrで持ち共有する
Definition encoding.h:159
SharedString のpublicなコンストラクタインタフェース (入力専用)
Definition encoding.h:215
webcfaceで管理されている文字列を参照するstring_view
Definition encoding.h:60
数値、文字列などの値を相互変換するクラス
Definition val_adaptor.h:87
ValType
引数や戻り値の型を表すenum
Definition val_adaptor.h:21
関数1つの情報を表す。関数の実体も持つ
Definition func_internal.h:142
client(member)->server->client func登録
Definition func.h:91
#define WEBCFACE_DLL
Definition webcface-config.h:69
#define WEBCFACE_CALL
Definition webcface-config.h:106
#define WEBCFACE_NS_END
Definition webcface-config.h:118
#define WEBCFACE_NS_BEGIN
Definition webcface-config.h:117