Class: GPS_PVT::GPS::SpaceNode_GLONASS

Inherits:
Object
  • Object
show all
Defined in:
ext/gps_pvt/GPS/GPS_wrap.cxx,
ext/gps_pvt/GPS/GPS_wrap.cxx

Overview

Proxy of C++ GPS_PVT::GPS::SpaceNode_GLONASS class

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object

call-seq:

SpaceNode_GLONASS.new

Class constructor.



19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 19896

SWIGINTERN VALUE
_wrap_new_SpaceNode_GLONASS(int argc, VALUE *argv, VALUE self) {
  GLONASS_SpaceNode< double > *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (GLONASS_SpaceNode< double > *)new GLONASS_SpaceNode< double >();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Class Method Details

.L1_frequency(*args) ⇒ Object

call-seq:

L1_frequency(GLONASS_SpaceNode< double >::int_t const & freq_ch) -> GLONASS_SpaceNode< double >::float_t

A class method.



19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 19811

SWIGINTERN VALUE
_wrap_SpaceNode_GLONASS_L1_frequency(int argc, VALUE *argv, VALUE self) {
  GLONASS_SpaceNode< double >::int_t *arg1 = 0 ;
  GLONASS_SpaceNode< double >::int_t temp1 ;
  int val1 ;
  int ecode1 = 0 ;
  GLONASS_SpaceNode< double >::float_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "GLONASS_SpaceNode< double >::int_t","GLONASS_SpaceNode<(double)>::L1_frequency", 1, argv[0] ));
  } 
  temp1 = static_cast< GLONASS_SpaceNode< double >::int_t >(val1);
  arg1 = &temp1;
  result = (GLONASS_SpaceNode< double >::float_t)GLONASS_SpaceNode< double >::SWIGTEMPLATEDISAMBIGUATOR L1_frequency((int const &)*arg1);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

.L1_frequency_baseObject

call-seq:

SpaceNode_GLONASS_L1_frequency_base -> GLONASS_SpaceNode< double >::float_t const

Get value of attribute.



19712
19713
19714
19715
19716
19717
19718
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 19712

SWIGINTERN VALUE
_wrap_SpaceNode_GLONASS_L1_frequency_base_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_double(static_cast< double >(GLONASS_SpaceNode< double >::L1_frequency_base));
  return _val;
}

.L1_frequency_gapObject

call-seq:

SpaceNode_GLONASS_L1_frequency_gap -> GLONASS_SpaceNode< double >::float_t const

Get value of attribute.



19739
19740
19741
19742
19743
19744
19745
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 19739

SWIGINTERN VALUE
_wrap_SpaceNode_GLONASS_L1_frequency_gap_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_double(static_cast< double >(GLONASS_SpaceNode< double >::L1_frequency_gap));
  return _val;
}

.L2_frequency(*args) ⇒ Object

call-seq:

L2_frequency(GLONASS_SpaceNode< double >::int_t const & freq_ch) -> GLONASS_SpaceNode< double >::float_t

A class method.



19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 19846

SWIGINTERN VALUE
_wrap_SpaceNode_GLONASS_L2_frequency(int argc, VALUE *argv, VALUE self) {
  GLONASS_SpaceNode< double >::int_t *arg1 = 0 ;
  GLONASS_SpaceNode< double >::int_t temp1 ;
  int val1 ;
  int ecode1 = 0 ;
  GLONASS_SpaceNode< double >::float_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "GLONASS_SpaceNode< double >::int_t","GLONASS_SpaceNode<(double)>::L2_frequency", 1, argv[0] ));
  } 
  temp1 = static_cast< GLONASS_SpaceNode< double >::int_t >(val1);
  arg1 = &temp1;
  result = (GLONASS_SpaceNode< double >::float_t)GLONASS_SpaceNode< double >::SWIGTEMPLATEDISAMBIGUATOR L2_frequency((int const &)*arg1);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

.L2_frequency_baseObject

call-seq:

SpaceNode_GLONASS_L2_frequency_base -> GLONASS_SpaceNode< double >::float_t const

Get value of attribute.



19766
19767
19768
19769
19770
19771
19772
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 19766

SWIGINTERN VALUE
_wrap_SpaceNode_GLONASS_L2_frequency_base_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_double(static_cast< double >(GLONASS_SpaceNode< double >::L2_frequency_base));
  return _val;
}

.L2_frequency_gapObject

call-seq:

SpaceNode_GLONASS_L2_frequency_gap -> GLONASS_SpaceNode< double >::float_t const

Get value of attribute.



19793
19794
19795
19796
19797
19798
19799
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 19793

SWIGINTERN VALUE
_wrap_SpaceNode_GLONASS_L2_frequency_gap_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_double(static_cast< double >(GLONASS_SpaceNode< double >::L2_frequency_gap));
  return _val;
}

.light_speedObject

call-seq:

SpaceNode_GLONASS_light_speed -> GLONASS_SpaceNode< double >::float_t const

Get value of attribute.



19685
19686
19687
19688
19689
19690
19691
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 19685

SWIGINTERN VALUE
_wrap_SpaceNode_GLONASS_light_speed_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_double(static_cast< double >(GLONASS_SpaceNode< double >::light_speed));
  return _val;
}

Instance Method Details

#ephemeris(*args) ⇒ Object

call-seq:

ephemeris(int const & prn) -> Ephemeris_GLONASS

An instance method.



20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 20181

SWIGINTERN VALUE
_wrap_SpaceNode_GLONASS_ephemeris(int argc, VALUE *argv, VALUE self) {
  GLONASS_SpaceNode< double > *arg1 = (GLONASS_SpaceNode< double > *) 0 ;
  int *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int temp2 ;
  int val2 ;
  int ecode2 = 0 ;
  GLONASS_Ephemeris< double > result;
  VALUE vresult = Qnil;
  
  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_GLONASS_SpaceNodeT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GLONASS_SpaceNode< double > const *","ephemeris", 1, self )); 
  }
  arg1 = reinterpret_cast< GLONASS_SpaceNode< double > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ephemeris", 2, argv[0] ));
  } 
  temp2 = static_cast< int >(val2);
  arg2 = &temp2;
  result = GLONASS_SpaceNode_Sl_double_Sg__ephemeris((GLONASS_SpaceNode< double > const *)arg1,(int const &)*arg2);
  vresult = SWIG_NewPointerObj((new GLONASS_Ephemeris< double >(static_cast< const GLONASS_Ephemeris< double >& >(result))), SWIGTYPE_p_GLONASS_EphemerisT_double_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#has_satellite(*args) ⇒ Object

call-seq:

has_satellite(int const & prn) -> bool

An instance method.



19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 19926

SWIGINTERN VALUE
_wrap_SpaceNode_GLONASS_has_satellite(int argc, VALUE *argv, VALUE self) {
  GLONASS_SpaceNode< double > *arg1 = (GLONASS_SpaceNode< double > *) 0 ;
  int *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int temp2 ;
  int val2 ;
  int ecode2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  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_GLONASS_SpaceNodeT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GLONASS_SpaceNode< double > const *","has_satellite", 1, self )); 
  }
  arg1 = reinterpret_cast< GLONASS_SpaceNode< double > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","has_satellite", 2, argv[0] ));
  } 
  temp2 = static_cast< int >(val2);
  arg2 = &temp2;
  result = (bool)((GLONASS_SpaceNode< double > const *)arg1)->has_satellite((int const &)*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}

#read(*args) ⇒ Object

call-seq:

read(char const * fname) -> int

An instance method.



20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 20224

SWIGINTERN VALUE
_wrap_SpaceNode_GLONASS_read(int argc, VALUE *argv, VALUE self) {
  GLONASS_SpaceNode< double > *arg1 = (GLONASS_SpaceNode< double > *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  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_GLONASS_SpaceNodeT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GLONASS_SpaceNode< double > *","read", 1, self )); 
  }
  arg1 = reinterpret_cast< GLONASS_SpaceNode< double > * >(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","read", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(buf2);
  result = (int)GLONASS_SpaceNode_Sl_double_Sg__read(arg1,(char const *)arg2);
  vresult = SWIG_From_int(static_cast< int >(result));
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  return Qnil;
}

#register_ephemeris(*args, self) ⇒ Object

call-seq:

register_ephemeris(int const & prn, Ephemeris_GLONASS eph, int const & priority_delta=1)
register_ephemeris(int const & prn, Ephemeris_GLONASS eph)

An instance method.



20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 20105

SWIGINTERN VALUE _wrap_SpaceNode_GLONASS_register_ephemeris(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[5];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 5) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLONASS_SpaceNodeT_double_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_GLONASS_EphemerisT_double_t, SWIG_POINTER_NO_NULL);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_SpaceNode_GLONASS_register_ephemeris__SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLONASS_SpaceNodeT_double_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_GLONASS_EphemerisT_double_t, SWIG_POINTER_NO_NULL);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_SpaceNode_GLONASS_register_ephemeris__SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "register_ephemeris", 
    "    void register_ephemeris(int const &prn, GLONASS_Ephemeris< double > const &eph, int const &priority_delta)\n"
    "    void register_ephemeris(int const &prn, GLONASS_Ephemeris< double > const &eph)\n");
  
  return Qnil;
}

#update_all_ephemeris(*args) ⇒ Object

call-seq:

update_all_ephemeris(Time target_time)

An instance method.



19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 19969

SWIGINTERN VALUE
_wrap_SpaceNode_GLONASS_update_all_ephemeris(int argc, VALUE *argv, VALUE self) {
  GLONASS_SpaceNode< double > *arg1 = (GLONASS_SpaceNode< double > *) 0 ;
  GPS_Time< GLONASS_SpaceNode< double >::float_t > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 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_GLONASS_SpaceNodeT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GLONASS_SpaceNode< double > *","update_all_ephemeris", 1, self )); 
  }
  arg1 = reinterpret_cast< GLONASS_SpaceNode< double > * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_GPS_TimeT_double_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "GPS_Time< GLONASS_SpaceNode< double >::float_t > const &","update_all_ephemeris", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GPS_Time< GLONASS_SpaceNode< double >::float_t > const &","update_all_ephemeris", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< GPS_Time< GLONASS_SpaceNode< double >::float_t > * >(argp2);
  (arg1)->update_all_ephemeris((GPS_Time< GLONASS_SpaceNode< double >::float_t > const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}