Class: GPS_PVT::GPS::RINEX_Observation
- Inherits:
-
Object
- Object
- GPS_PVT::GPS::RINEX_Observation
- Defined in:
- ext/gps_pvt/GPS/GPS_wrap.cxx
Class Method Summary collapse
-
.read(*args) ⇒ Object
call-seq: read(char const * fname).
Instance Method Summary collapse
-
#initialize(*args) ⇒ Object
constructor
call-seq: RINEX_Observation.new.
Constructor Details
#initialize(*args) ⇒ Object
24248 24249 24250 24251 24252 24253 24254 24255 24256 24257 24258 24259 24260 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 24248
SWIGINTERN VALUE
_wrap_new_RINEX_Observation(int argc, VALUE *argv, VALUE self) {
RINEX_Observation< double > *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (RINEX_Observation< double > *)new RINEX_Observation< double >();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Class Method Details
.read(*args) ⇒ Object
call-seq:
read(char const * fname)
A class method.
24188 24189 24190 24191 24192 24193 24194 24195 24196 24197 24198 24199 24200 24201 24202 24203 24204 24205 24206 24207 24208 24209 24210 24211 24212 24213 24214 24215 24216 24217 24218 24219 24220 24221 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 24188
SWIGINTERN VALUE
_wrap_RINEX_Observation_read(int argc, VALUE *argv, VALUE self) {
char *arg1 = (char *) 0 ;
void *arg2 = (void *) 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
{
if(!rb_block_given_p()){
return rb_enumeratorize(self, ID2SYM(rb_frame_callee()), argc, argv);
}
}
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","RINEX_Observation_Sl_double_Sg__read", 1, argv[0] ));
}
arg1 = reinterpret_cast< char * >(buf1);
try {
RINEX_Observation_Sl_double_Sg__read((char const *)arg1,(void const *)arg2);
} catch(native_exception &_e) {
(&_e)->regenerate();
SWIG_fail;
}
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
return Qnil;
fail:
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
return Qnil;
}
|