- Add first draft of SWIG interface file, and create Python
loadable module. However, please note that: - All the methods accepting a Glib::ustring should not be exported, instead they should be replaced by wrapper functions accepting PyObject*. - The same thing applies to every other method accepting a ``non built-in'' data type - Return types should probably be wrapped, too - It may be a good idea to implement wrapper methods that print out the content of a C++ object, so that a Python user can do a simple "print schedStat". This is achieved by adding a "__str__()" method to the class. See the SWIG manual for further infos about returning const char* values. git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@354 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
9b40d632eb
commit
b9c4813f11
3 changed files with 177 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
|
||||
# from sgpem import SchedulableQueue, PolicyParameters
|
||||
from sgpem import SchedulableList, PolicyParameters
|
||||
from Abstract import *
|
||||
|
||||
class Policy:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue