class Cproton::Pn_atom_t

Public Class Methods

new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_new_pn_atom_t(int argc, VALUE *argv, VALUE self) {
  pn_atom_t *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (pn_atom_t *)calloc(1, sizeof(pn_atom_t));
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Public Instance Methods

type(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_type_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t *arg1 = (pn_atom_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_type_t 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_pn_atom_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t *","type", 1, self )); 
  }
  arg1 = (pn_atom_t *)(argp1);
  result = (pn_type_t) ((arg1)->type);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
type=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_type_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t *arg1 = (pn_atom_t *) 0 ;
  pn_type_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 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_pn_atom_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t *","type", 1, self )); 
  }
  arg1 = (pn_atom_t *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_type_t","type", 2, argv[0] ));
  } 
  arg2 = (pn_type_t)(val2);
  if (arg1) (arg1)->type = arg2;
  return Qnil;
fail:
  return Qnil;
}
u(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t *arg1 = (pn_atom_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_atom_t_u *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_pn_atom_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t *","u", 1, self )); 
  }
  arg1 = (pn_atom_t *)(argp1);
  result = (pn_atom_t_u *)& ((arg1)->u);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}