User manual
127
ci - pointer to chapi_in communication context supplied during the
loadable component initialization;
opt_name - option name to create;
opt_vals_count - the number of option values within the option;
option - reference to the option which should be used for initialization.
This constructors are used to create integer option.
chapi_bool_option_value_t & operator[] (int idx);
where
idx - index of option value to access.
This operator is used to access option values by index. Reference to the boolean option
value with specified index is returned.
String options are wrapped by the C++ class chapi_string_option_t derived from the class
chapi_cfg_option_t. The following public methods defined:
chapi_string_option_t(const struct __chapi_in * ci, const char *opt_name,
int opt_vals_count, int opt_size);
сhapi_string_option_t(const chapi_cfg_option_t &option);
where
ci - pointer to chapi_in communication context supplied during the
loadable component initialization;
opt_name - option name to create;
opt_vals_count - the number of option values within the option;
opt_size - maximum size for option value;
option - reference to the option which should be used for initialization.
This constructors are used to create integer option.
chapi_string_option_value_t & operator[] (int idx);
where
idx - index of option value to access.










