Class: Ctp::CThostFtdcCurrentTimeField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



30720
30721
30722
30723
30724
30725
30726
30727
30728
30729
30730
30731
30732
30733
# File 'ext/ctp/ctp.cxx', line 30720

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

Instance Method Details

#ActionDay(*args) ⇒ Object



30675
30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
# File 'ext/ctp/ctp.cxx', line 30675

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

#ActionDay=(*args) ⇒ Object



30645
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671
30672
# File 'ext/ctp/ctp.cxx', line 30645

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

#CurrDate(*args) ⇒ Object



30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518
30519
30520
30521
30522
30523
30524
30525
30526
30527
30528
30529
# File 'ext/ctp/ctp.cxx', line 30502

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

#CurrDate=(*args) ⇒ Object



30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
# File 'ext/ctp/ctp.cxx', line 30472

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

#CurrMillisec(*args) ⇒ Object



30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
# File 'ext/ctp/ctp.cxx', line 30621

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

#CurrMillisec=(*args) ⇒ Object



30592
30593
30594
30595
30596
30597
30598
30599
30600
30601
30602
30603
30604
30605
30606
30607
30608
30609
30610
30611
30612
30613
30614
30615
30616
30617
30618
# File 'ext/ctp/ctp.cxx', line 30592

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

#CurrTime(*args) ⇒ Object



30562
30563
30564
30565
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583
30584
30585
30586
30587
30588
30589
# File 'ext/ctp/ctp.cxx', line 30562

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

#CurrTime=(*args) ⇒ Object



30532
30533
30534
30535
30536
30537
30538
30539
30540
30541
30542
30543
30544
30545
30546
30547
30548
30549
30550
30551
30552
30553
30554
30555
30556
30557
30558
30559
# File 'ext/ctp/ctp.cxx', line 30532

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