pythonutils.cpp File Reference

Reusable functions for python functionality. More...

#include "frepple/utils.h"
Include dependency graph for pythonutils.cpp:

Go to the source code of this file.

Namespaces

namespace  frepple
 Core namespace.
 
namespace  frepple::utils
 Utilities for the frePPle core.
 

Macros

#define FREPPLE_CORE
 

Functions

PyObject * frepple::utils::call_handler (PyObject *self, PyObject *args, PyObject *kwds)
 
PyObject * frepple::utils::compare_handler (PyObject *self, PyObject *other, int op)
 
PyObject * frepple::utils::getattro_handler (PyObject *self, PyObject *name)
 
PyObject * frepple::utils::iternext_handler (PyObject *self)
 
int frepple::utils::setattro_handler (PyObject *self, PyObject *name, PyObject *value)
 
PyObject * frepple::utils::str_handler (PyObject *self)
 

Variables

PyObject * frepple::utils::PythonDataException = NULL
 Python exception class matching with frepple::DataException. More...
 
PyObject * frepple::utils::PythonLogicException = NULL
 Python exception class matching with frepple::LogicException. More...
 
PyObject * frepple::utils::PythonRuntimeException = NULL
 Python exception class matching with frepple::RuntimeException. More...
 

Detailed Description

Reusable functions for python functionality.

The structure of the C++ wrappers around the C Python API is heavily inspired on the design of PyCXX.
More information can be found on http://cxx.sourceforge.net

Definition in file pythonutils.cpp.

Macro Definition Documentation

#define FREPPLE_CORE

Definition at line 29 of file pythonutils.cpp.