class Oboe_metal::Event
Public Class Methods
metadataString(evt)
click to toggle source
# File lib/joboe_metal.rb, line 33 def self.metadataString(evt) evt.getMetadata.toHexString end
startTrace(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Event_startTrace(int argc, VALUE *argv, VALUE self) { oboe_metadata_t *arg1 = (oboe_metadata_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; Event *result = 0 ; VALUE vresult = Qnil; 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 const *","Event::startTrace", 1, argv[0] )); } arg1 = reinterpret_cast< oboe_metadata_t * >(argp1); result = (Event *)Event::startTrace((oboe_metadata_t const *)arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; }
Public Instance Methods
addEdge(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Event_addEdge(int argc, VALUE *argv, VALUE self) { Event *arg1 = (Event *) 0 ; oboe_metadata_t *arg2 = (oboe_metadata_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool 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_Event, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","addEdge", 1, self )); } arg1 = reinterpret_cast< Event * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_oboe_metadata_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "oboe_metadata_t *","addEdge", 2, argv[0] )); } arg2 = reinterpret_cast< oboe_metadata_t * >(argp2); result = (bool)(arg1)->addEdge(arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
addEdgeStr(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Event_addEdgeStr(int argc, VALUE *argv, VALUE self) { Event *arg1 = (Event *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool 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_Event, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","addEdgeStr", 1, self )); } arg1 = reinterpret_cast< Event * >(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 &","addEdgeStr", 2, argv[0] )); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","addEdgeStr", 2, argv[0])); } arg2 = ptr; } result = (bool)(arg1)->addEdgeStr((std::string const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return vresult; fail: if (SWIG_IsNewObj(res2)) delete arg2; return Qnil; }
addInfo(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Event_addInfo(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { void *ptr = 0; int res = SWIG_ConvertPtr(argv[2], &ptr, 0, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Event_addInfo__SWIG_0(nargs, args, self); } } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Event_addInfo__SWIG_2(nargs, args, self); } } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Event_addInfo__SWIG_3(nargs, args, self); } } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Event_addInfo__SWIG_1(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "Event.addInfo", " bool Event.addInfo(char *key, void *val)\n" " bool Event.addInfo(char *key, std::string const &val)\n" " bool Event.addInfo(char *key, long val)\n" " bool Event.addInfo(char *key, double val)\n"); return Qnil; }
getMetadata(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Event_getMetadata(int argc, VALUE *argv, VALUE self) { Event *arg1 = (Event *) 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_Event, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","getMetadata", 1, self )); } arg1 = reinterpret_cast< Event * >(argp1); result = (Metadata *)(arg1)->getMetadata(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Metadata, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; }
metadataString(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Event_metadataString(int argc, VALUE *argv, VALUE self) { Event *arg1 = (Event *) 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_Event, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","metadataString", 1, self )); } arg1 = reinterpret_cast< Event * >(argp1); result = (arg1)->metadataString(); vresult = SWIG_From_std_string(static_cast< std::string >(result)); return vresult; fail: return Qnil; }