class Openwsman::Status
Public Class Methods
new(*args)
click to toggle source
SWIGINTERN VALUE _wrap_new_Status(int argc, VALUE *argv, VALUE self) { int arg1 = (int) 0 ; int arg2 = (int) 0 ; char *arg3 = (char *) NULL ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; struct _WsmanStatus *result = 0 ; if ((argc < 0) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } if (argc > 0) { ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","_WsmanStatus", 1, argv[0] )); } arg1 = (int)(val1); } if (argc > 1) { ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","_WsmanStatus", 2, argv[1] )); } arg2 = (int)(val2); } if (argc > 2) { res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","_WsmanStatus", 3, argv[2] )); } arg3 = (char *)(buf3); } result = (struct _WsmanStatus *)new__WsmanStatus(arg1,arg2,(char const *)arg3); DATA_PTR(self) = result; if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return self; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; }
Public Instance Methods
code(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Status_code(int argc, VALUE *argv, VALUE self) { struct _WsmanStatus *arg1 = (struct _WsmanStatus *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int 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__WsmanStatus, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WsmanStatus *","code", 1, self )); } arg1 = (struct _WsmanStatus *)(argp1); result = (int)_WsmanStatus_code(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; }
code=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Status_codee___(int argc, VALUE *argv, VALUE self) { struct _WsmanStatus *arg1 = (struct _WsmanStatus *) 0 ; int 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__WsmanStatus, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WsmanStatus *","set_code", 1, self )); } arg1 = (struct _WsmanStatus *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","set_code", 2, argv[0] )); } arg2 = (int)(val2); _WsmanStatus_set_code(arg1,arg2); return Qnil; fail: return Qnil; }
detail(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Status_detail(int argc, VALUE *argv, VALUE self) { struct _WsmanStatus *arg1 = (struct _WsmanStatus *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int 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__WsmanStatus, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WsmanStatus *","detail", 1, self )); } arg1 = (struct _WsmanStatus *)(argp1); result = (int)_WsmanStatus_detail(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; }
detail=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Status_detaile___(int argc, VALUE *argv, VALUE self) { struct _WsmanStatus *arg1 = (struct _WsmanStatus *) 0 ; int 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__WsmanStatus, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WsmanStatus *","set_detail", 1, self )); } arg1 = (struct _WsmanStatus *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","set_detail", 2, argv[0] )); } arg2 = (int)(val2); _WsmanStatus_set_detail(arg1,arg2); return Qnil; fail: return Qnil; }
generate_fault(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Status_generate_fault(int argc, VALUE *argv, VALUE self) { struct _WsmanStatus *arg1 = (struct _WsmanStatus *) 0 ; WsXmlDocH arg2 = (WsXmlDocH) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; WsXmlDocH result; VALUE vresult = Qnil; 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__WsmanStatus, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WsmanStatus *","generate_fault", 1, self )); } arg1 = (struct _WsmanStatus *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p__WsXmlDoc, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "WsXmlDocH","generate_fault", 2, argv[0] )); } arg2 = (WsXmlDocH)(argp2); result = (WsXmlDocH)_WsmanStatus_generate_fault(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__WsXmlDoc, 0 | 0 ); return vresult; fail: return Qnil; }
msg(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Status_msg(int argc, VALUE *argv, VALUE self) { struct _WsmanStatus *arg1 = (struct _WsmanStatus *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *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__WsmanStatus, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WsmanStatus *","msg", 1, self )); } arg1 = (struct _WsmanStatus *)(argp1); result = (char *)_WsmanStatus_msg(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }
msg=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Status_msge___(int argc, VALUE *argv, VALUE self) { struct _WsmanStatus *arg1 = (struct _WsmanStatus *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 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__WsmanStatus, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WsmanStatus *","set_msg", 1, self )); } arg1 = (struct _WsmanStatus *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","set_msg", 2, argv[0] )); } arg2 = (char *)(buf2); _WsmanStatus_set_msg(arg1,(char const *)arg2); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; }
to_s → char const *
click to toggle source
Convert class to a String representation.
SWIGINTERN VALUE _wrap_Status_to_s(int argc, VALUE *argv, VALUE self) { struct _WsmanStatus *arg1 = (struct _WsmanStatus *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *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__WsmanStatus, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WsmanStatus *","to_s", 1, self )); } arg1 = (struct _WsmanStatus *)(argp1); result = (char *)_WsmanStatus_to_s(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }