Method: Ctp::CThostFtdcTradingCodeField#BrokerID

Defined in:
ext/ctp/ctp.cxx

#BrokerID(*args) ⇒ Object



15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
# File 'ext/ctp/ctp.cxx', line 15795

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