Class: Ctp::CThostFtdcMulticastGroupInfoField

Inherits:
Object
  • Object
show all
Defined in:
ext/ctp/ctp.cxx

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



191254
191255
191256
191257
191258
191259
191260
191261
191262
191263
191264
191265
191266
191267
# File 'ext/ctp/ctp.cxx', line 191254

SWIGINTERN VALUE
_wrap_new_CThostFtdcMulticastGroupInfoField(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "Ctp::CThostFtdcMulticastGroupInfoField";
  CThostFtdcMulticastGroupInfoField *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (CThostFtdcMulticastGroupInfoField *)new CThostFtdcMulticastGroupInfoField();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Instance Method Details

#GroupIP(*args) ⇒ Object



191096
191097
191098
191099
191100
191101
191102
191103
191104
191105
191106
191107
191108
191109
191110
191111
191112
191113
191114
191115
191116
191117
191118
191119
191120
191121
191122
191123
# File 'ext/ctp/ctp.cxx', line 191096

SWIGINTERN VALUE
_wrap_CThostFtdcMulticastGroupInfoField_GroupIP_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMulticastGroupInfoField *arg1 = (CThostFtdcMulticastGroupInfoField *) 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_CThostFtdcMulticastGroupInfoField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMulticastGroupInfoField *","GroupIP", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMulticastGroupInfoField * >(argp1);
  result = (char *) ((arg1)->GroupIP);
  {
    size_t size = SWIG_strnlen(result, 16);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#GroupIP=(*args) ⇒ Object



191066
191067
191068
191069
191070
191071
191072
191073
191074
191075
191076
191077
191078
191079
191080
191081
191082
191083
191084
191085
191086
191087
191088
191089
191090
191091
191092
191093
# File 'ext/ctp/ctp.cxx', line 191066

SWIGINTERN VALUE
_wrap_CThostFtdcMulticastGroupInfoField_GroupIP_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMulticastGroupInfoField *arg1 = (CThostFtdcMulticastGroupInfoField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[16] ;
  int res2 ;
  
  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_CThostFtdcMulticastGroupInfoField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMulticastGroupInfoField *","GroupIP", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMulticastGroupInfoField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 16);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","GroupIP", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->GroupIP,arg2,16*sizeof(char));
  else memset(arg1->GroupIP,0,16*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}

#GroupPort(*args) ⇒ Object



191155
191156
191157
191158
191159
191160
191161
191162
191163
191164
191165
191166
191167
191168
191169
191170
191171
191172
191173
191174
191175
191176
# File 'ext/ctp/ctp.cxx', line 191155

SWIGINTERN VALUE
_wrap_CThostFtdcMulticastGroupInfoField_GroupPort_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMulticastGroupInfoField *arg1 = (CThostFtdcMulticastGroupInfoField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcIPPortType 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_CThostFtdcMulticastGroupInfoField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMulticastGroupInfoField *","GroupPort", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMulticastGroupInfoField * >(argp1);
  result = (TThostFtdcIPPortType) ((arg1)->GroupPort);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#GroupPort=(*args) ⇒ Object



191126
191127
191128
191129
191130
191131
191132
191133
191134
191135
191136
191137
191138
191139
191140
191141
191142
191143
191144
191145
191146
191147
191148
191149
191150
191151
191152
# File 'ext/ctp/ctp.cxx', line 191126

SWIGINTERN VALUE
_wrap_CThostFtdcMulticastGroupInfoField_GroupPort_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMulticastGroupInfoField *arg1 = (CThostFtdcMulticastGroupInfoField *) 0 ;
  TThostFtdcIPPortType 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_CThostFtdcMulticastGroupInfoField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMulticastGroupInfoField *","GroupPort", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMulticastGroupInfoField * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIPPortType","GroupPort", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcIPPortType >(val2);
  if (arg1) (arg1)->GroupPort = arg2;
  return Qnil;
fail:
  return Qnil;
}

#SourceIP(*args) ⇒ Object



191209
191210
191211
191212
191213
191214
191215
191216
191217
191218
191219
191220
191221
191222
191223
191224
191225
191226
191227
191228
191229
191230
191231
191232
191233
191234
191235
191236
# File 'ext/ctp/ctp.cxx', line 191209

SWIGINTERN VALUE
_wrap_CThostFtdcMulticastGroupInfoField_SourceIP_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMulticastGroupInfoField *arg1 = (CThostFtdcMulticastGroupInfoField *) 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_CThostFtdcMulticastGroupInfoField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMulticastGroupInfoField *","SourceIP", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMulticastGroupInfoField * >(argp1);
  result = (char *) ((arg1)->SourceIP);
  {
    size_t size = SWIG_strnlen(result, 16);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#SourceIP=(*args) ⇒ Object



191179
191180
191181
191182
191183
191184
191185
191186
191187
191188
191189
191190
191191
191192
191193
191194
191195
191196
191197
191198
191199
191200
191201
191202
191203
191204
191205
191206
# File 'ext/ctp/ctp.cxx', line 191179

SWIGINTERN VALUE
_wrap_CThostFtdcMulticastGroupInfoField_SourceIP_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMulticastGroupInfoField *arg1 = (CThostFtdcMulticastGroupInfoField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[16] ;
  int res2 ;
  
  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_CThostFtdcMulticastGroupInfoField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMulticastGroupInfoField *","SourceIP", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMulticastGroupInfoField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 16);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","SourceIP", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->SourceIP,arg2,16*sizeof(char));
  else memset(arg1->SourceIP,0,16*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}