Class: Ctp::CThostFtdcInvestorField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcInvestorField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #Address(*args) ⇒ Object
- #Address=(*args) ⇒ Object
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #CommModelID(*args) ⇒ Object
- #CommModelID=(*args) ⇒ Object
- #IdentifiedCardNo(*args) ⇒ Object
- #IdentifiedCardNo=(*args) ⇒ Object
- #IdentifiedCardType(*args) ⇒ Object
- #IdentifiedCardType=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorGroupID(*args) ⇒ Object
- #InvestorGroupID=(*args) ⇒ Object
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #InvestorName(*args) ⇒ Object
- #InvestorName=(*args) ⇒ Object
- #IsActive(*args) ⇒ Object
- #IsActive=(*args) ⇒ Object
- #MarginModelID(*args) ⇒ Object
- #MarginModelID=(*args) ⇒ Object
- #Mobile(*args) ⇒ Object
- #Mobile=(*args) ⇒ Object
- #OpenDate(*args) ⇒ Object
- #OpenDate=(*args) ⇒ Object
- #Telephone(*args) ⇒ Object
- #Telephone=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 |
# File 'ext/ctp/ctp.cxx', line 15681
SWIGINTERN VALUE
_wrap_new_CThostFtdcInvestorField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcInvestorField";
CThostFtdcInvestorField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcInvestorField *)new CThostFtdcInvestorField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#Address(*args) ⇒ Object
15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 |
# File 'ext/ctp/ctp.cxx', line 15396
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_Address_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","Address", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
result = (char *) ((arg1)->Address);
{
size_t size = SWIG_strnlen(result, 101);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#Address=(*args) ⇒ Object
15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 |
# File 'ext/ctp/ctp.cxx', line 15366
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_Address_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[101] ;
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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","Address", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 101);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","Address", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->Address,arg2,101*sizeof(char));
else memset(arg1->Address,0,101*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BrokerID(*args) ⇒ Object
14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 |
# File 'ext/ctp/ctp.cxx', line 14990
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
result = (char *) ((arg1)->BrokerID);
{
size_t size = SWIG_strnlen(result, 11);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BrokerID=(*args) ⇒ Object
14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 |
# File 'ext/ctp/ctp.cxx', line 14960
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[11] ;
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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","BrokerID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BrokerID,arg2,11*sizeof(char));
else memset(arg1->BrokerID,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CommModelID(*args) ⇒ Object
15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 |
# File 'ext/ctp/ctp.cxx', line 15576
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_CommModelID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","CommModelID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
result = (char *) ((arg1)->CommModelID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CommModelID=(*args) ⇒ Object
15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 |
# File 'ext/ctp/ctp.cxx', line 15546
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_CommModelID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[13] ;
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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","CommModelID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","CommModelID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CommModelID,arg2,13*sizeof(char));
else memset(arg1->CommModelID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#IdentifiedCardNo(*args) ⇒ Object
15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 |
# File 'ext/ctp/ctp.cxx', line 15223
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","IdentifiedCardNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
result = (char *) ((arg1)->IdentifiedCardNo);
{
size_t size = SWIG_strnlen(result, 51);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#IdentifiedCardNo=(*args) ⇒ Object
15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 |
# File 'ext/ctp/ctp.cxx', line 15193
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[51] ;
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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","IdentifiedCardNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 51);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char));
else memset(arg1->IdentifiedCardNo,0,51*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#IdentifiedCardType(*args) ⇒ Object
15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 |
# File 'ext/ctp/ctp.cxx', line 15169
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_IdentifiedCardType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcIdCardTypeType 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","IdentifiedCardType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
result = (TThostFtdcIdCardTypeType) ((arg1)->IdentifiedCardType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#IdentifiedCardType=(*args) ⇒ Object
15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 |
# File 'ext/ctp/ctp.cxx', line 15140
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_IdentifiedCardType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
TThostFtdcIdCardTypeType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","IdentifiedCardType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdentifiedCardType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcIdCardTypeType >(val2);
if (arg1) (arg1)->IdentifiedCardType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#InvestorGroupID(*args) ⇒ Object
15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 |
# File 'ext/ctp/ctp.cxx', line 15050
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_InvestorGroupID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","InvestorGroupID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
result = (char *) ((arg1)->InvestorGroupID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InvestorGroupID=(*args) ⇒ Object
15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 |
# File 'ext/ctp/ctp.cxx', line 15020
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_InvestorGroupID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[13] ;
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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","InvestorGroupID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorGroupID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InvestorGroupID,arg2,13*sizeof(char));
else memset(arg1->InvestorGroupID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InvestorID(*args) ⇒ Object
14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 |
# File 'ext/ctp/ctp.cxx', line 14930
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
result = (char *) ((arg1)->InvestorID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InvestorID=(*args) ⇒ Object
14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 |
# File 'ext/ctp/ctp.cxx', line 14900
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[13] ;
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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char));
else memset(arg1->InvestorID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InvestorName(*args) ⇒ Object
15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 |
# File 'ext/ctp/ctp.cxx', line 15110
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_InvestorName_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","InvestorName", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
result = (char *) ((arg1)->InvestorName);
{
size_t size = SWIG_strnlen(result, 81);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InvestorName=(*args) ⇒ Object
15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 |
# File 'ext/ctp/ctp.cxx', line 15080
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_InvestorName_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[81] ;
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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","InvestorName", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 81);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","InvestorName", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InvestorName,arg2,81*sizeof(char));
else memset(arg1->InvestorName,0,81*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#IsActive(*args) ⇒ Object
15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 |
# File 'ext/ctp/ctp.cxx', line 15282
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_IsActive_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcBoolType 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","IsActive", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
result = (TThostFtdcBoolType) ((arg1)->IsActive);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#IsActive=(*args) ⇒ Object
15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 |
# File 'ext/ctp/ctp.cxx', line 15253
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_IsActive_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
TThostFtdcBoolType 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","IsActive", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcBoolType >(val2);
if (arg1) (arg1)->IsActive = arg2;
return Qnil;
fail:
return Qnil;
}
|
#MarginModelID(*args) ⇒ Object
15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 |
# File 'ext/ctp/ctp.cxx', line 15636
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_MarginModelID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","MarginModelID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
result = (char *) ((arg1)->MarginModelID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#MarginModelID=(*args) ⇒ Object
15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 |
# File 'ext/ctp/ctp.cxx', line 15606
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_MarginModelID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[13] ;
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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","MarginModelID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","MarginModelID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->MarginModelID,arg2,13*sizeof(char));
else memset(arg1->MarginModelID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#Mobile(*args) ⇒ Object
15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 |
# File 'ext/ctp/ctp.cxx', line 15516
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_Mobile_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","Mobile", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
result = (char *) ((arg1)->Mobile);
{
size_t size = SWIG_strnlen(result, 41);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#Mobile=(*args) ⇒ Object
15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 |
# File 'ext/ctp/ctp.cxx', line 15486
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_Mobile_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[41] ;
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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","Mobile", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 41);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Mobile", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->Mobile,arg2,41*sizeof(char));
else memset(arg1->Mobile,0,41*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#OpenDate(*args) ⇒ Object
15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 |
# File 'ext/ctp/ctp.cxx', line 15456
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_OpenDate_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","OpenDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
result = (char *) ((arg1)->OpenDate);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#OpenDate=(*args) ⇒ Object
15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 |
# File 'ext/ctp/ctp.cxx', line 15426
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_OpenDate_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[9] ;
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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","OpenDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","OpenDate", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->OpenDate,arg2,9*sizeof(char));
else memset(arg1->OpenDate,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#Telephone(*args) ⇒ Object
15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 |
# File 'ext/ctp/ctp.cxx', line 15336
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_Telephone_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","Telephone", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
result = (char *) ((arg1)->Telephone);
{
size_t size = SWIG_strnlen(result, 41);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#Telephone=(*args) ⇒ Object
15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 |
# File 'ext/ctp/ctp.cxx', line 15306
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorField_Telephone_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[41] ;
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_CThostFtdcInvestorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","Telephone", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 41);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Telephone", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->Telephone,arg2,41*sizeof(char));
else memset(arg1->Telephone,0,41*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|