Split the cppclass.py file, as it was getting too big: move type handlers into new source file cppclass_typehandlers.py.

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-07-18 16:40:33 +01:00
1 parent 355ebb0665
commit ceb4b9c2fe
4 files changed
+842 -838

No files matched your search

+4 -4
View File
@@ -7,7 +7,7 @@ import traceback
from copy import copy
from typehandlers.base import ForwardWrapperBase, ReverseWrapperBase, \
join_ctype_and_name, CodeGenerationError, ReturnValue
join_ctype_and_name, CodeGenerationError
from typehandlers.base import ReturnValue, Parameter
from typehandlers import codesink
import overloading
@@ -201,7 +201,7 @@ class CppMethod(ForwardWrapperBase):
def _before_return_hook(self):
"""hook that post-processes parameters and check for custodian=<n>
CppClass parameters"""
cppclass.implement_parameter_custodians(self)
cppclass_typehandlers.implement_parameter_custodians(self)
def _get_pystruct(self):
# When a method is used in the context of a helper class, we
@@ -487,7 +487,7 @@ class CppConstructor(ForwardWrapperBase):
def _before_return_hook(self):
"hook that post-processes parameters and check for custodian=<n> CppClass parameters"
cppclass.implement_parameter_custodians(self)
cppclass_typehandlers.implement_parameter_custodians(self)
def generate(self, code_sink, wrapper_name=None, extra_wrapper_params=()):
"""
@@ -913,5 +913,5 @@ class CustomCppConstructorWrapper(CppConstructor):
def generate_call(self, *args, **kwargs):
pass
import cppclass
import cppclass_typehandlers