From 8b78a8791bc539bcffe7159f9d9714d577cb3d7d Mon Sep 17 00:00:00 2001
From: Michele Calgaro
New in this release:
| Old | New |
|---|---|
| #include "CXX_Config.h" | #include "CXX/Config.hxx" | -
| #include "CXX_Exception.h" | #include "CXX/Exception.hxx" | -
| #include "CXX_Extensions.h" | #include "CXX/Extensions.hxx" | -
| #include "CXX_Objects.h" | #include "CXX/Objects.hxx" | +
| #include "CXX_Config.h" | #include "CXX/Config.h" | +
| #include "CXX_Exception.h" | #include "CXX/Exception.h" | +
| #include "CXX_Extensions.h" | #include "CXX/Extensions.h" | +
| #include "CXX_Objects.h" | #include "CXX/Objects.h" |
To create an extension module, you inherit from class ExtensionModule templated on yourself: In the constructor, you make calls to register methods of this class with Python as extension module methods. In this example, two methods are added (this is a simplified -form of the example in Demo/example.cxx):
+form of the example in Demo/example.cpp):class example_module : public ExtensionModule<example_module>
{
@@ -309,8 +309,8 @@ return its dictionary.
Creating extension objects
Creating extension objects is of course harder since you must specify how the object
-behaves and give it methods. This is shown in some detail in the example range.h and range.cxx,
-with the test routine rangetest.cxx, in directory Demo.
+behaves and give it methods. This is shown in some detail in the example range.h and range.cpp,
+with the test routine rangetest.cpp, in directory Demo.
Here is a brief overview. You create a class that inherits from PythonExtension
templated upon itself. You override various methods from PythonExtension to implement
@@ -426,8 +426,8 @@ setenv CCC "KCC -x"
before running makethis.py.
-There is also a python.cxx file for making a stand-alone Python containing this
-example, as well as a similar file arraytest.cxx for testing Array.
+There is also a python.cpp file for making a stand-alone Python containing this
+example, as well as a similar file arraytest.cpp for testing Array.
Comments to barry@barrys-emacs.org, please.
--
cgit v1.2.3