⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gpstk_wrap_mod.cxx

📁 gpstk1.5的有关内容 对于刚刚接触gps有一定的帮助 很有用的啊
💻 CXX
📖 第 1 页 / 共 5 页
字号:
    }    result = (gpstk::Exception *)new gpstk::Exception((std::string const &)*arg1);        Tcl_SetObjResult(interp,SWIG_NewInstanceObj((void *) result, SWIGTYPE_p_gpstk__Exception,0));    return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_new_Exception__SWIG_4(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = 0 ;    gpstk::Exception *result;        if (SWIG_GetArgs(interp, objc, objv,"o:new_Exception exception ",NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    result = (gpstk::Exception *)new gpstk::Exception((gpstk::Exception const &)*arg1);        Tcl_SetObjResult(interp,SWIG_NewInstanceObj((void *) result, SWIGTYPE_p_gpstk__Exception,0));    return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_new_Exception(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    Tcl_Obj *CONST *argv = objv+1;    int argc = objc-1;    if (argc == 0) {        return _wrap_new_Exception__SWIG_0(clientData, interp, objc, objv);    }    if (argc == 1) {        int _v;        {            void *ptr;            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_gpstk__Exception, 0) == TCL_ERROR) {                _v = 0;            } else {                _v = 1;            }        }        if (_v) {            return _wrap_new_Exception__SWIG_4(clientData, interp, objc, objv);        }    }    if (argc == 1) {        int _v;        {            _v = 1;        }        if (_v) {            return _wrap_new_Exception__SWIG_3(clientData, interp, objc, objv);        }    }    if (argc == 2) {        int _v;        {            _v = 1;        }        if (_v) {            {                long tmp;                if (Tcl_GetLongFromObj(NULL,argv[1],&tmp) == TCL_ERROR) _v = 0;                else _v = 1;            }            if (_v) {                return _wrap_new_Exception__SWIG_2(clientData, interp, objc, objv);            }        }    }    if (argc == 3) {        int _v;        {            _v = 1;        }        if (_v) {            {                long tmp;                if (Tcl_GetLongFromObj(NULL,argv[1],&tmp) == TCL_ERROR) _v = 0;                else _v = 1;            }            if (_v) {                {                    long tmp;                    if (Tcl_GetLongFromObj(NULL,argv[2],&tmp) == TCL_ERROR) _v = 0;                    else _v = 1;                }                if (_v) {                    return _wrap_new_Exception__SWIG_1(clientData, interp, objc, objv);                }            }        }    }        Tcl_SetResult(interp,(char *) "No matching function for overloaded 'new_Exception'", TCL_STATIC);    return TCL_ERROR;}static int_wrap_delete_Exception(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = (gpstk::Exception *) 0 ;        if (SWIG_GetArgs(interp, objc, objv,"o:delete_Exception self ",NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    delete arg1;            return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_Exception_e___(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = (gpstk::Exception *) 0 ;    gpstk::Exception *arg2 = 0 ;    gpstk::Exception *result;        if (SWIG_GetArgs(interp, objc, objv,"oo:Exception_= self e ",NULL,NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    if ((SWIG_ConvertPtr(objv[2], (void **) &arg2, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    {        gpstk::Exception &_result_ref = (arg1)->operator =((gpstk::Exception const &)*arg2);        result = (gpstk::Exception *) &_result_ref;    }        Tcl_SetObjResult(interp,SWIG_NewInstanceObj((void *) result, SWIGTYPE_p_gpstk__Exception,0));    return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_Exception_terminate(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = (gpstk::Exception *) 0 ;        if (SWIG_GetArgs(interp, objc, objv,"o:Exception_terminate self ",NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    (arg1)->terminate();            return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_Exception_getErrorId(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = (gpstk::Exception *) 0 ;    unsigned long result;        if (SWIG_GetArgs(interp, objc, objv,"o:Exception_getErrorId self ",NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    result = (unsigned long)((gpstk::Exception const *)arg1)->getErrorId();        Tcl_SetObjResult(interp,Tcl_NewIntObj((long) result));    return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_Exception_setErrorId(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = (gpstk::Exception *) 0 ;    unsigned long *arg2 = 0 ;    gpstk::Exception *result;    unsigned long temp2 ;        if (SWIG_GetArgs(interp, objc, objv,"oo:Exception_setErrorId self errId ",NULL,NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    {        long ltemp;        if (Tcl_GetLongFromObj(interp, objv[2], &ltemp) != TCL_OK) {            SWIG_fail;        }        temp2 = (unsigned long) ltemp;        arg2 = &temp2;    }    {        gpstk::Exception &_result_ref = (arg1)->setErrorId((unsigned long const &)*arg2);        result = (gpstk::Exception *) &_result_ref;    }        Tcl_SetObjResult(interp,SWIG_NewInstanceObj((void *) result, SWIGTYPE_p_gpstk__Exception,0));    return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_Exception_addLocation(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = (gpstk::Exception *) 0 ;    gpstk::ExceptionLocation *arg2 = 0 ;    gpstk::Exception *result;        if (SWIG_GetArgs(interp, objc, objv,"oo:Exception_addLocation self location ",NULL,NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    if ((SWIG_ConvertPtr(objv[2], (void **) &arg2, SWIGTYPE_p_gpstk__ExceptionLocation,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    {        gpstk::Exception &_result_ref = (arg1)->addLocation((gpstk::ExceptionLocation const &)*arg2);        result = (gpstk::Exception *) &_result_ref;    }        Tcl_SetObjResult(interp,SWIG_NewInstanceObj((void *) result, SWIGTYPE_p_gpstk__Exception,0));    return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_Exception_getLocation__SWIG_0(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = (gpstk::Exception *) 0 ;    size_t *arg2 = 0 ;    gpstk::ExceptionLocation result;    size_t temp2 ;        if (SWIG_GetArgs(interp, objc, objv,"oo:Exception_getLocation self index ",NULL,NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    {        long ltemp;        if (Tcl_GetLongFromObj(interp, objv[2], &ltemp) != TCL_OK) {            SWIG_fail;        }        temp2 = (size_t) ltemp;        arg2 = &temp2;    }    result = ((gpstk::Exception const *)arg1)->getLocation((size_t const &)*arg2);        {        gpstk::ExceptionLocation * resultptr;        resultptr = new gpstk::ExceptionLocation((gpstk::ExceptionLocation &) result);        Tcl_SetObjResult(interp,SWIG_NewInstanceObj((void*) resultptr, SWIGTYPE_p_gpstk__ExceptionLocation,1));    }    return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_Exception_getLocation__SWIG_1(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = (gpstk::Exception *) 0 ;    gpstk::ExceptionLocation result;        if (SWIG_GetArgs(interp, objc, objv,"o:Exception_getLocation self ",NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    result = ((gpstk::Exception const *)arg1)->getLocation();        {        gpstk::ExceptionLocation * resultptr;        resultptr = new gpstk::ExceptionLocation((gpstk::ExceptionLocation &) result);        Tcl_SetObjResult(interp,SWIG_NewInstanceObj((void*) resultptr, SWIGTYPE_p_gpstk__ExceptionLocation,1));    }    return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_Exception_getLocation(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    Tcl_Obj *CONST *argv = objv+1;    int argc = objc-1;    if (argc == 1) {        int _v;        {            void *ptr;            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_gpstk__Exception, 0) == TCL_ERROR) {                _v = 0;            } else {                _v = 1;            }        }        if (_v) {            return _wrap_Exception_getLocation__SWIG_1(clientData, interp, objc, objv);        }    }    if (argc == 2) {        int _v;        {            void *ptr;            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_gpstk__Exception, 0) == TCL_ERROR) {                _v = 0;            } else {                _v = 1;            }        }        if (_v) {            {                void *ptr;                if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_size_t, 0) == TCL_ERROR) {                    _v = 0;                } else {                    _v = 1;                }            }            if (_v) {                return _wrap_Exception_getLocation__SWIG_0(clientData, interp, objc, objv);            }        }    }        Tcl_SetResult(interp,(char *) "No matching function for overloaded 'Exception_getLocation'", TCL_STATIC);    return TCL_ERROR;}static int_wrap_Exception_getLocationCount(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = (gpstk::Exception *) 0 ;    size_t result;        if (SWIG_GetArgs(interp, objc, objv,"o:Exception_getLocationCount self ",NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    result = ((gpstk::Exception const *)arg1)->getLocationCount();        Tcl_SetObjResult(interp,Tcl_NewIntObj((long) result));    return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_Exception_isRecoverable(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = (gpstk::Exception *) 0 ;    bool result;        if (SWIG_GetArgs(interp, objc, objv,"o:Exception_isRecoverable self ",NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    result = (bool)((gpstk::Exception const *)arg1)->isRecoverable();        Tcl_SetObjResult(interp,Tcl_NewIntObj((long) result));    return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_Exception_setSeverity(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = (gpstk::Exception *) 0 ;    gpstk::Exception::Severity *arg2 = 0 ;    gpstk::Exception *result;    gpstk::Exception::Severity temp2 ;        if (SWIG_GetArgs(interp, objc, objv,"oo:Exception_setSeverity self sever ",NULL,NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    {        long ltemp;        if (Tcl_GetLongFromObj(interp, objv[2], &ltemp) != TCL_OK) {            SWIG_fail;        }        temp2 = (gpstk::Exception::Severity) ltemp;        arg2 = &temp2;    }    {        gpstk::Exception &_result_ref = (arg1)->setSeverity((enum gpstk::Exception::Severity const &)*arg2);        result = (gpstk::Exception *) &_result_ref;    }        Tcl_SetObjResult(interp,SWIG_NewInstanceObj((void *) result, SWIGTYPE_p_gpstk__Exception,0));    return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_Exception_addText(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = (gpstk::Exception *) 0 ;    std::string *arg2 = 0 ;    gpstk::Exception *result;    std::string temp2 ;        if (SWIG_GetArgs(interp, objc, objv,"oo:Exception_addText self errorText ",NULL,NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    {        temp2 = std::string(Tcl_GetStringFromObj(objv[2],NULL));        arg2 = &temp2;    }    {        gpstk::Exception &_result_ref = (arg1)->addText((std::string const &)*arg2);        result = (gpstk::Exception *) &_result_ref;    }        Tcl_SetObjResult(interp,SWIG_NewInstanceObj((void *) result, SWIGTYPE_p_gpstk__Exception,0));    return TCL_OK;    fail:    return TCL_ERROR;}static int_wrap_Exception_getText__SWIG_0(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {    gpstk::Exception *arg1 = (gpstk::Exception *) 0 ;    size_t *arg2 = 0 ;    std::string result;    size_t temp2 ;        if (SWIG_GetArgs(interp, objc, objv,"oo:Exception_getText self index ",NULL,NULL) == TCL_ERROR) SWIG_fail;    if ((SWIG_ConvertPtr(objv[1], (void **) &arg1, SWIGTYPE_p_gpstk__Exception,SWIG_POINTER_EXCEPTION | 0) != TCL_OK)) SWIG_fail;    {        long ltemp;        if (Tcl_GetLongFromObj(interp, objv[2], &ltemp) != TCL_OK) {            SWIG_fail;        }        temp2 = (size_t) ltemp;        arg2 = &temp2;    }    result = ((gpstk::Exception const *)arg1)->getText((size_t const &)*arg2);        {        Tcl_SetStringObj(Tcl_GetObjResult(interp),(char*)(&result)->c_str(),(&result)->length());    }    return TCL_OK;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -