Class: Mykytea::Tags

Inherits:
Object
  • Object
show all
Defined in:
ext/mykytea_wrap.cxx

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
# File 'ext/mykytea_wrap.cxx', line 18238

SWIGINTERN VALUE
_wrap_new_Tags(int argc, VALUE *argv, VALUE self) {
  Tags *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  {
    try{
      result = (Tags *)new Tags();
      DATA_PTR(self) = result;
    } catch (const std::exception &e){
      SWIG_exception(SWIG_RuntimeError, e.what() );
    } catch (...) {
      SWIG_exception(SWIG_UnknownError, "Unknown exception");
    }
  }
  return self;
fail:
  return Qnil;
}

Instance Method Details

#surface(*args) ⇒ Object



18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
# File 'ext/mykytea_wrap.cxx', line 18146

SWIGINTERN VALUE
_wrap_Tags_surface_get(int argc, VALUE *argv, VALUE self) {
  Tags *arg1 = (Tags *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::string *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Tags, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Tags *","surface", 1, self )); 
  }
  arg1 = reinterpret_cast< Tags * >(argp1);
  result = (std::string *) & ((arg1)->surface);
  vresult = SWIG_From_std_string(static_cast< std::string >(*result));
  return vresult;
fail:
  return Qnil;
}

#surface=(*args) ⇒ Object



18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
# File 'ext/mykytea_wrap.cxx', line 18110

SWIGINTERN VALUE
_wrap_Tags_surface_set(int argc, VALUE *argv, VALUE self) {
  Tags *arg1 = (Tags *) 0 ;
  std::string *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Tags, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Tags *","surface", 1, self )); 
  }
  arg1 = reinterpret_cast< Tags * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(argv[0], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","surface", 2, argv[0] )); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","surface", 2, argv[0])); 
    }
    arg2 = ptr;
  }
  if (arg1) (arg1)->surface = *arg2;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return Qnil;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return Qnil;
}

#tag(*args) ⇒ Object



18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
# File 'ext/mykytea_wrap.cxx', line 18199

SWIGINTERN VALUE
_wrap_Tags_tag_get(int argc, VALUE *argv, VALUE self) {
  Tags *arg1 = (Tags *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  tags *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Tags, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Tags *","tag", 1, self )); 
  }
  arg1 = reinterpret_cast< Tags * >(argp1);
  result = (tags *)& ((arg1)->tag);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_std__pairT_std__string_double_t_std__allocatorT_std__pairT_std__string_double_t_t_t_std__allocatorT_std__vectorT_std__pairT_std__string_double_t_std__allocatorT_std__pairT_std__string_double_t_t_t_t_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

#tag=(*args) ⇒ Object



18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
# File 'ext/mykytea_wrap.cxx', line 18170

SWIGINTERN VALUE
_wrap_Tags_tag_set(int argc, VALUE *argv, VALUE self) {
  Tags *arg1 = (Tags *) 0 ;
  tags *arg2 = (tags *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Tags, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Tags *","tag", 1, self )); 
  }
  arg1 = reinterpret_cast< Tags * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_std__vectorT_std__vectorT_std__pairT_std__string_double_t_std__allocatorT_std__pairT_std__string_double_t_t_t_std__allocatorT_std__vectorT_std__pairT_std__string_double_t_std__allocatorT_std__pairT_std__string_double_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tags *","tag", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< tags * >(argp2);
  if (arg1) (arg1)->tag = *arg2;
  return Qnil;
fail:
  return Qnil;
}