| 12754 | |
| 12755 | |
| 12756 | SWIGINTERN PyObject *_wrap_Trainer_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
| 12757 | PyObject *resultobj = 0; |
| 12758 | CRFSuite::Trainer *arg1 = (CRFSuite::Trainer *) 0 ; |
| 12759 | std::string *arg2 = 0 ; |
| 12760 | void *argp1 = 0 ; |
| 12761 | int res1 = 0 ; |
| 12762 | int res2 = SWIG_OLDOBJ ; |
| 12763 | PyObject * obj0 = 0 ; |
| 12764 | PyObject * obj1 = 0 ; |
| 12765 | std::string result; |
| 12766 | |
| 12767 | if (!PyArg_ParseTuple(args,(char *)"OO:Trainer_get",&obj0,&obj1)) SWIG_fail; |
| 12768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFSuite__Trainer, 0 | 0 ); |
| 12769 | if (!SWIG_IsOK(res1)) { |
| 12770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Trainer_get" "', argument " "1"" of type '" "CRFSuite::Trainer *""'"); |
| 12771 | } |
| 12772 | arg1 = reinterpret_cast< CRFSuite::Trainer * >(argp1); |
| 12773 | { |
| 12774 | std::string *ptr = (std::string *)0; |
| 12775 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
| 12776 | if (!SWIG_IsOK(res2)) { |
| 12777 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Trainer_get" "', argument " "2"" of type '" "std::string const &""'"); |
| 12778 | } |
| 12779 | if (!ptr) { |
| 12780 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Trainer_get" "', argument " "2"" of type '" "std::string const &""'"); |
| 12781 | } |
| 12782 | arg2 = ptr; |
| 12783 | } |
| 12784 | { |
| 12785 | try { |
| 12786 | result = (arg1)->get((std::string const &)*arg2); |
| 12787 | } catch(const std::invalid_argument& e) { |
| 12788 | SWIG_exception(SWIG_IOError, e.what()); |
| 12789 | } catch(const std::runtime_error& e) { |
| 12790 | SWIG_exception(SWIG_RuntimeError, e.what()); |
| 12791 | } catch (const std::exception& e) { |
| 12792 | SWIG_exception(SWIG_RuntimeError, e.what()); |
| 12793 | } catch(...) { |
| 12794 | SWIG_exception(SWIG_RuntimeError,"Unknown exception"); |
| 12795 | } |
| 12796 | } |
| 12797 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
| 12798 | if (SWIG_IsNewObj(res2)) delete arg2; |
| 12799 | return resultobj; |
| 12800 | fail: |
| 12801 | if (SWIG_IsNewObj(res2)) delete arg2; |
| 12802 | return NULL; |
| 12803 | } |
| 12804 | |
| 12805 | |
| 12806 | SWIGINTERN PyObject *_wrap_Trainer_help(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
nothing calls this directly
no test coverage detected