Class: Quickfix::BoolField

Inherits:
((swig_class *) SWIGTYPE_p_FIX__FieldBase->clientdata)->klass
  • Object
show all
Defined in:
ext/quickfix/QuickfixRuby.cpp

Direct Known Subclasses

AdditionalDividendsIndicator, AdditionalTermConditionPrecedentBondIndicator, AdditionalTermDiscrepancyClauseIndicator, AffiliatedFirmsTradeIndicator, AggregatedBook, AggressorIndicator, AllDividendsIndicator, AllocCommissionSharedIndicator, AnonymousTradeIndicator, ApplResendFlag, ApplTestMessageIndicator, AutoAcceptIndicator, AutomaticExerciseIndicator, BackloadedTradeIndicator, BlockTradeEligibilityIndicator, CashSettlAccruedInterestIndicator, CashSettlFixedTermIndicator, CommissionSharedIndicator, CommonPricingIndicator, ComplexEventCreditEventStandardSources, ComplexEventFuturesPriceValuation, ComplexEventOptionsPriceValuation, ContraryInstructionEligibilityIndicator, ContraryInstructionIndicator, CopyMsgIndicator, CustDirectedOrder, DefaultVerIndicator, DeliveryStreamDeliverAtSourceIndicator, DeltaCrossed, DerivFlexProductEligibilityIndicator, DerivativeContraryInstructionEligibilityIndicator, DividendReinvestmentIndicator, DueToRelated, DuplicateClOrdIDIndicator, EntitlementIndicator, ExchangeForPhysical, ExchangeLookAlike, ExerciseSplitTicketIndicator, FallbackExerciseIndicator, FastMarketIndicator, FlexProductEligibilityIndicator, FlexibleIndicator, ForexReq, GapFillFlag, HaircutIndicator, HistoricalReportIndicator, IOINaturalFlag, InViewOfCommon, InstrumentScopeFlexibleIndicator, InternationalSwapIndicator, IntraFirmTradeIndicator, LastFragment, LastRptRequested, LateIndicator, LegAdditionalDividendsIndicator, LegAdditionalTermConditionPrecedentBondIndicator, LegAdditionalTermDiscrepancyClauseIndicator, LegAllDividendsIndicator, LegAutomaticExerciseIndicator, LegCashSettlAccruedInterestIndicator, LegCashSettlFixedTermIndicator, LegCommonPricingIndicator, LegComplexEventCreditEventStandardSources, LegComplexEventFuturesPriceValuation, LegComplexEventOptionsPriceValuation, LegContraryInstructionEligibilityIndicator, LegDeliveryStreamDeliverAtSourceIndicator, LegDividendReinvestmentIndicator, LegExchangeLookAlike, LegExerciseSplitTicketIndicator, LegFallbackExerciseIndicator, LegFlexProductEligibilityIndicator, LegFlexibleIndicator, LegLimitRightToConfirmIndicator, LegMaterialDividendsIndicator, LegOptionsExchangeDividendsIndicator, LegPaymentStreamCashSettlIndicator, LegPaymentStreamDaysAdjustmentIndicator, LegPaymentStreamDelayIndicator, LegPaymentStreamFinalPrincipalExchangeIndicator, LegPaymentStreamFlatRateIndicator, LegPaymentStreamInflationFallbackBondApplicable, LegPaymentStreamInitialPrincipalExchangeIndicator, LegPaymentStreamInterimPrincipalExchangeIndicator, LegPaymentStreamLinkClosingLevelIndicator, LegPaymentStreamLinkExpiringLevelIndicator, LegPaymentStreamMasterAgreementPaymentDatesIndicator, LegPaymentStreamReferenceLevelEqualsZeroIndicator, LegProtectionTermBuyerNotifies, LegProtectionTermSellerNotifies, LegProtectionTermStandardSources, LegProvisionOptionExerciseConfirmation, LegReturnRateNotionalReset, LegSettlRatePostponementSurvey, LegSpecialDividendsIndicator, LegStreamCalculationBalanceOfFirstPeriod, LegalConfirm, LimitedRightToConfirmIndicator, LinkageHandlingIndicator, ListManualOrderIndicator, LocateReqd, LowExercisePriceOptionIndicator, MDImplicitDelete, MandatoryClearingIndicator, ManualOrderIndicator, MaterialDividendsIndicator, MixedSwapIndicator, MultiAssetSwapIndicator, NotifyBrokerOfCredit, OddLot, OffMarketPriceIndicator, OptionsExchangeDividendsIndicator, PaymentStreamCashSettlIndicator, PaymentStreamDaysAdjustmentIndicator, PaymentStreamDelayIndicator, PaymentStreamFinalPrincipalExchangeIndicator, PaymentStreamFlatRateIndicator, PaymentStreamInflationFallbackBondApplicable, PaymentStreamInitialPrincipalExchangeIndicator, PaymentStreamInterimPrincipalExchangeIndicator, PaymentStreamLinkClosingLevelIndicator, PaymentStreamLinkExpiringLevelIndicator, PaymentStreamMasterAgreementPaymentDatesIndicator, PaymentStreamReferenceLevelEqualsZeroIndicator, PossDupFlag, PossResend, PreTradeAnonymity, PreviouslyReported, PriorSpreadIndicator, PrivateQuote, ProtectionTermBuyerNotifies, ProtectionTermSellerNotifies, ProtectionTermStandardSources, ProvisionOptionExerciseConfirmation, PublishTrdIndicator, QuoteSideIndicator, RefreshIndicator, ReportToExch, ReportedPxDiff, ResetSeqNumFlag, ReturnRateNotionalReset, ReversalIndicator, SettlRatePostponementSurvey, ShortMarkingExemptIndicator, SideHaircutIndicator, SingleQuoteIndicator, SolicitedFlag, SpecialDividendsIndicator, StreamCalculationBalanceOfFirstPeriod, TerminatedIndicator, TestMessageIndicator, TradedFlatSwitch, TrdRegTimestampManualIndicator, TrdRepIndicator, UnderlyingAdditionalDividendsIndicator, UnderlyingAdditionalTermConditionPrecedentBondIndicator, UnderlyingAdditionalTermDiscrepancyClauseIndicator, UnderlyingAllDividendsIndicator, UnderlyingAutomaticExerciseIndicator, UnderlyingCashSettlAccruedInterestIndicator, UnderlyingCashSettlFixedTermIndicator, UnderlyingCommonPricingIndicator, UnderlyingComplexEventCreditEventStandardSources, UnderlyingComplexEventFuturesPriceValuation, UnderlyingComplexEventOptionsPriceValuation, UnderlyingContraryInstructionEligibilityIndicator, UnderlyingDeliveryStreamDeliverAtSourceIndicator, UnderlyingDepositoryReceiptIndicator, UnderlyingDividendReinvestmentIndicator, UnderlyingExchangeLookAlike, UnderlyingExerciseSplitTicketIndicator, UnderlyingFallbackExerciseIndicator, UnderlyingFlexProductEligibilityIndicator, UnderlyingFlexibleIndicator, UnderlyingLimitedRightToConfirmIndicator, UnderlyingMaterialDividendsIndicator, UnderlyingOptionsExchangeDividendsIndicator, UnderlyingPaymentStreamCashSettlIndicator, UnderlyingPaymentStreamDaysAdjustmentIndicator, UnderlyingPaymentStreamDelayIndicator, UnderlyingPaymentStreamFinalPrincipalExchangeIndicator, UnderlyingPaymentStreamFlatRateIndicator, UnderlyingPaymentStreamInflationFallbackBondApplicable, UnderlyingPaymentStreamInitialPrincipalExchangeIndicator, UnderlyingPaymentStreamInterimPrincipalExchangeIndicator, UnderlyingPaymentStreamLinkClosingLevelIndicator, UnderlyingPaymentStreamLinkExpiringLevelIndicator, UnderlyingPaymentStreamMasterAgreementPaymentDatesIndicator, UnderlyingPaymentStreamReferenceLevelEqualsZeroIndicator, UnderlyingProtectionTermBuyerNotifies, UnderlyingProtectionTermSellerNotifies, UnderlyingProtectionTermStandardSources, UnderlyingProvisionOptionExerciseConfirmation, UnderlyingReturnRateNotionalReset, UnderlyingSettlRatePostponementSurvey, UnderlyingSpecialDividendsIndicator, UnderlyingStreamCalculationBalanceOfFirstPeriod, UnsolicitedIndicator, VoluntaryRegulatoryReport, WorkingIndicator

Instance Method Summary collapse

Constructor Details

#initialize(*args, self) ⇒ Object



29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
# File 'ext/quickfix/QuickfixRuby.cpp', line 29786

SWIGINTERN VALUE _wrap_new_BoolField(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v = 0;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_BoolField__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v = 0;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_BoolField__SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "BoolField.new", 
    "    BoolField.new(int field, bool data)\n"
    "    BoolField.new(int field)\n");
  
  return Qnil;
}

Instance Method Details

#getValue(*args) ⇒ Object



29872
29873
29874
29875
29876
29877
29878
29879
29880
29881
29882
29883
29884
29885
29886
29887
29888
29889
29890
29891
29892
29893
29894
29895
29896
29897
29898
29899
29900
29901
29902
29903
29904
# File 'ext/quickfix/QuickfixRuby.cpp', line 29872

SWIGINTERN VALUE
_wrap_BoolField_getValue(int argc, VALUE *argv, VALUE self) {
  FIX::BoolField *arg1 = (FIX::BoolField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool 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_FIX__BoolField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::BoolField const *","getValue", 1, self )); 
  }
  arg1 = reinterpret_cast< FIX::BoolField * >(argp1);
  {
    if(tryRubyException([&]() mutable 
        {
      result = (bool)((FIX::BoolField const *)arg1)->getValue();
          return self;
        fail:
          return Qnil;
        }) == Qnil) 
    {
      SWIG_fail;
    }
  }
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}

#setValue(*args) ⇒ Object



29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864
29865
29866
29867
29868
29869
# File 'ext/quickfix/QuickfixRuby.cpp', line 29832

SWIGINTERN VALUE
_wrap_BoolField_setValue(int argc, VALUE *argv, VALUE self) {
  FIX::BoolField *arg1 = (FIX::BoolField *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool 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_FIX__BoolField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::BoolField *","setValue", 1, self )); 
  }
  arg1 = reinterpret_cast< FIX::BoolField * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setValue", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  {
    if(tryRubyException([&]() mutable 
        {
      (arg1)->setValue(arg2);
          return self;
        fail:
          return Qnil;
        }) == Qnil) 
    {
      SWIG_fail;
    }
  }
  return Qnil;
fail:
  return Qnil;
}