MCPcopy Create free account
hub / github.com/chokkan/crfsuite / _wrap_Attribute_attr_get

Function _wrap_Attribute_attr_get

swig/python/export_wrap.cpp:12082–12101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12080
12081
12082SWIGINTERN PyObject *_wrap_Attribute_attr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12083 PyObject *resultobj = 0;
12084 CRFSuite::Attribute *arg1 = (CRFSuite::Attribute *) 0 ;
12085 void *argp1 = 0 ;
12086 int res1 = 0 ;
12087 PyObject * obj0 = 0 ;
12088 std::string *result = 0 ;
12089
12090 if (!PyArg_ParseTuple(args,(char *)"O:Attribute_attr_get",&obj0)) SWIG_fail;
12091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFSuite__Attribute, 0 | 0 );
12092 if (!SWIG_IsOK(res1)) {
12093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Attribute_attr_get" "', argument " "1"" of type '" "CRFSuite::Attribute *""'");
12094 }
12095 arg1 = reinterpret_cast< CRFSuite::Attribute * >(argp1);
12096 result = (std::string *) & ((arg1)->attr);
12097 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
12098 return resultobj;
12099fail:
12100 return NULL;
12101}
12102
12103
12104SWIGINTERN PyObject *_wrap_Attribute_value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {

Callers

nothing calls this directly

Calls 1

SWIG_From_std_stringFunction · 0.85

Tested by

no test coverage detected