class Oboe_metal::Metadata

Public Class Methods

fromString(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Metadata_fromString(int argc, VALUE *argv, VALUE self) {
  std::string arg1 ;
  Metadata *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(argv[0], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Metadata::fromString", 1, argv[0] )); 
    }
    arg1 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  result = (Metadata *)Metadata::fromString(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Metadata, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
makeRandom(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Metadata_makeRandom(int argc, VALUE *argv, VALUE self) {
  Metadata *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (Metadata *)Metadata::makeRandom();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Metadata, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_new_Metadata(int argc, VALUE *argv, VALUE self) {
  oboe_metadata_t *arg1 = (oboe_metadata_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Metadata *result = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_oboe_metadata_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "oboe_metadata_t *","Metadata", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< oboe_metadata_t * >(argp1);
  result = (Metadata *)new Metadata(arg1);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Public Instance Methods

copy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Metadata_copy(int argc, VALUE *argv, VALUE self) {
  Metadata *arg1 = (Metadata *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Metadata *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_Metadata, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","copy", 1, self )); 
  }
  arg1 = reinterpret_cast< Metadata * >(argp1);
  result = (Metadata *)(arg1)->copy();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Metadata, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
createEvent(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Metadata_createEvent(int argc, VALUE *argv, VALUE self) {
  Metadata *arg1 = (Metadata *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Event *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_Metadata, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","createEvent", 1, self )); 
  }
  arg1 = reinterpret_cast< Metadata * >(argp1);
  result = (Event *)(arg1)->createEvent();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
isValid(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Metadata_isValid(int argc, VALUE *argv, VALUE self) {
  Metadata *arg1 = (Metadata *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  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_Metadata, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","isValid", 1, self )); 
  }
  arg1 = reinterpret_cast< Metadata * >(argp1);
  result = (bool)(arg1)->isValid();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}
toString(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Metadata_toString(int argc, VALUE *argv, VALUE self) {
  Metadata *arg1 = (Metadata *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::string result;
  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_Metadata, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","toString", 1, self )); 
  }
  arg1 = reinterpret_cast< Metadata * >(argp1);
  result = (arg1)->toString();
  vresult = SWIG_From_std_string(static_cast< std::string >(result));
  return vresult;
fail:
  return Qnil;
}