9#pragma message("warning: Disabling macro definition of 'min' and 'max', since they conflicts in webcface/arg.h.")
32 std::shared_ptr<message::Arg> msg_data;
44 std::shared_ptr<message::Arg> initMsg();
52 void mergeConfig(
const Arg &other);
62 explicit Arg(
const std::shared_ptr<message::Arg> &msg_data);
107 std::optional<ValAdaptorVector> init()
const;
112 template <
typename T>
127 std::optional<double> min()
const;
136 Arg &min(
double min);
141 std::optional<double> max()
const;
150 Arg &max(
double max);
155 std::vector<ValAdaptor> option()
const;
156 Arg &option(std::vector<ValAdaptor> option);
163 template <
typename T>
165 std::vector<ValAdaptor> option_v;
166 for (
const auto &v : option) {
169 return this->option(std::move(option_v));
引数の情報を表す。
Definition arg.h:31
Arg & init(StringInitializer init)
Definition arg.h:119
Arg(StringInitializer name)
引数名を設定する。
Definition arg.h:74
Arg & option(std::initializer_list< T > option)
引数の選択肢を設定する。
Definition arg.h:164
Arg & init(const T &init)
デフォルト値を設定する。
Definition arg.h:113
u8stringとstringとwstringをshared_ptrで持ち共有する
Definition encoding.h:170
SharedString のpublicなコンストラクタインタフェース (入力専用)
Definition encoding.h:235
webcfaceで管理されている文字列を参照するstring_view
Definition encoding.h:71
ValAdaptorのVector.
Definition val_adaptor_vec.h:17
数値、文字列などの値を相互変換するクラス
Definition val_adaptor.h:81
ValType
引数や戻り値の型を表すenum
Definition val_adaptor.h:21
関数1つの情報を表す。関数の実体も持つ
Definition func_internal.h:136
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:113
#define WEBCFACE_NS_BEGIN
Definition webcface-config.h:112