コード例 #1
0
ファイル: rbzoomresultset.c プロジェクト: Verba/ruby-zoom
/*
 * call-seq: 
 * 	set_option(key, value)
 *
 * key: the name of the option, as a string.
 *
 * value: the value of this option (as a string, integer or boolean).
 *
 * Sets an option on the result set.
 * 
 * Returns: self.
 */
static VALUE
rbz_resultset_set_option (VALUE self, VALUE key, VALUE val)
{
    ZOOM_resultset_option_set (rbz_resultset_get (self),
                               RVAL2CSTR (key),
                               RVAL2CSTR (rb_obj_as_string (val)));
    
    return self;
}
コード例 #2
0
ファイル: zrs.cpp プロジェクト: dcrossleyau/yazpp
 bool resultSet::option(const std::string &key, const std::string &val) {
   ZOOM_resultset_option_set(rs, key.c_str(), val.c_str());
     return true;
 }