Example #1
0
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;
}
Example #2
0
std::string
PyConeAttributes_GetLogString()
{
    std::string s("ConeAtts = ConeAttributes()\n");
    if(currentAtts != 0)
        s += PyConeAttributes_ToString(currentAtts, "ConeAtts.");
    return s;
}
Example #3
0
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);
    }
}
Example #4
0
PyObject *
ConeAttributes_str(PyObject *v)
{
    ConeAttributesObject *obj = (ConeAttributesObject *)v;
    return PyString_FromString(PyConeAttributes_ToString(obj->data,"").c_str());
}