static int ConeAttributes_print(PyObject *v, FILE *fp, int flags) { ConeAttributesObject *obj = (ConeAttributesObject *)v; fprintf(fp, "%s", PyConeAttributes_ToString(obj->data, "").c_str()); return 0; }
std::string PyConeAttributes_GetLogString() { std::string s("ConeAtts = ConeAttributes()\n"); if(currentAtts != 0) s += PyConeAttributes_ToString(currentAtts, "ConeAtts."); return s; }
static void PyConeAttributes_CallLogRoutine(Subject *subj, void *data) { typedef void (*logCallback)(const std::string &); logCallback cb = (logCallback)data; if(cb != 0) { std::string s("ConeAtts = ConeAttributes()\n"); s += PyConeAttributes_ToString(currentAtts, "ConeAtts."); cb(s); } }
PyObject * ConeAttributes_str(PyObject *v) { ConeAttributesObject *obj = (ConeAttributesObject *)v; return PyString_FromString(PyConeAttributes_ToString(obj->data,"").c_str()); }