class Openwsman::Filter
Public Class Methods
Source
SWIGINTERN VALUE
_wrap_new_Filter(int argc, VALUE *argv, VALUE self) {
filter_t *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (filter_t *)new_filter_t();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
Public Instance Methods
Source
SWIGINTERN VALUE
_wrap_Filter_assocClass_get(int argc, VALUE *argv, VALUE self) {
filter_t *arg1 = 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_filter_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "filter_t *","assocClass", 1, self ));
}
arg1 = (filter_t *)(argp1);
result = (char *) ((arg1)->assocClass);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_Filter_assocClass_set(int argc, VALUE *argv, VALUE self) {
filter_t *arg1 = 0 ;
char *arg2 = 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_filter_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "filter_t *","assocClass", 1, self ));
}
arg1 = (filter_t *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","assocClass", 2, argv[0] ));
}
arg2 = (char *)(buf2);
free((char*)arg1->assocClass);
if (arg2) {
size_t size = strlen((const char *)(arg2)) + 1;
arg1->assocClass = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
} else {
arg1->assocClass = 0;
}
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_Filter_associators(int argc, VALUE *argv, VALUE self) {
filter_t *arg1 = 0 ;
VALUE arg2 = Qnil ;
VALUE arg3 = Qnil ;
VALUE arg4 = Qnil ;
VALUE arg5 = Qnil ;
VALUE arg6 = Qnil ;
VALUE arg7 = Qnil ;
VALUE arg8 = Qnil ;
void *argp1 = 0 ;
int res1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 7)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_filter_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "filter_t *","associators", 1, self ));
}
arg1 = (filter_t *)(argp1);
if (argc > 0) {
arg2 = argv[0];
}
if (argc > 1) {
arg3 = argv[1];
}
if (argc > 2) {
arg4 = argv[2];
}
if (argc > 3) {
arg5 = argv[3];
}
if (argc > 4) {
arg6 = argv[4];
}
if (argc > 5) {
arg7 = argv[5];
}
if (argc > 6) {
arg8 = argv[6];
}
result = (int)filter_t_associators(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_Filter_cql(int argc, VALUE *argv, VALUE self) {
filter_t *arg1 = 0 ;
char *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int 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_filter_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "filter_t *","cql", 1, self ));
}
arg1 = (filter_t *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","cql", 2, argv[0] ));
}
arg2 = (char *)(buf2);
result = (int)filter_t_cql(arg1,(char const *)arg2);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_Filter_references(int argc, VALUE *argv, VALUE self) {
filter_t *arg1 = 0 ;
VALUE arg2 = Qnil ;
VALUE arg3 = Qnil ;
VALUE arg4 = Qnil ;
VALUE arg5 = Qnil ;
VALUE arg6 = Qnil ;
VALUE arg7 = Qnil ;
VALUE arg8 = Qnil ;
void *argp1 = 0 ;
int res1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 7)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_filter_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "filter_t *","references", 1, self ));
}
arg1 = (filter_t *)(argp1);
if (argc > 0) {
arg2 = argv[0];
}
if (argc > 1) {
arg3 = argv[1];
}
if (argc > 2) {
arg4 = argv[2];
}
if (argc > 3) {
arg5 = argv[3];
}
if (argc > 4) {
arg6 = argv[4];
}
if (argc > 5) {
arg7 = argv[5];
}
if (argc > 6) {
arg8 = argv[6];
}
result = (int)filter_t_references(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_Filter_resultClass_get(int argc, VALUE *argv, VALUE self) {
filter_t *arg1 = 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_filter_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "filter_t *","resultClass", 1, self ));
}
arg1 = (filter_t *)(argp1);
result = (char *) ((arg1)->resultClass);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_Filter_resultClass_set(int argc, VALUE *argv, VALUE self) {
filter_t *arg1 = 0 ;
char *arg2 = 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_filter_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "filter_t *","resultClass", 1, self ));
}
arg1 = (filter_t *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","resultClass", 2, argv[0] ));
}
arg2 = (char *)(buf2);
free((char*)arg1->resultClass);
if (arg2) {
size_t size = strlen((const char *)(arg2)) + 1;
arg1->resultClass = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
} else {
arg1->resultClass = 0;
}
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_Filter_simple(int argc, VALUE *argv, VALUE self) {
filter_t *arg1 = 0 ;
char *arg2 = 0 ;
char *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int res3 ;
char *buf3 = 0 ;
int alloc3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_filter_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "filter_t *","simple", 1, self ));
}
arg1 = (filter_t *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","simple", 2, argv[0] ));
}
arg2 = (char *)(buf2);
res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","simple", 3, argv[1] ));
}
arg3 = (char *)(buf3);
result = (int)filter_t_simple(arg1,(char const *)arg2,(char const *)arg3);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_Filter_wql(int argc, VALUE *argv, VALUE self) {
filter_t *arg1 = 0 ;
char *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int 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_filter_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "filter_t *","wql", 1, self ));
}
arg1 = (filter_t *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","wql", 2, argv[0] ));
}
arg2 = (char *)(buf2);
result = (int)filter_t_wql(arg1,(char const *)arg2);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_Filter_xpath(int argc, VALUE *argv, VALUE self) {
filter_t *arg1 = 0 ;
char *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
int 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_filter_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "filter_t *","xpath", 1, self ));
}
arg1 = (filter_t *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","xpath", 2, argv[0] ));
}
arg2 = (char *)(buf2);
result = (int)filter_t_xpath(arg1,(char const *)arg2);
vresult = SWIG_From_int((int)(result));
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}