Add some more string alias type names, to make it compatibly with pygccxml types.
This commit is contained in:
1 parent
78d2aacfae
commit
e6691a1e96
1 file changed
+3
-3
@@ -7,7 +7,7 @@ from base import ReturnValue, Parameter, ReverseWrapperBase, ForwardWrapperBase
|
||||
class CStringParam(Parameter):
|
||||
|
||||
DIRECTIONS = [Parameter.DIRECTION_IN]
|
||||
CTYPES = ['char*', 'const char*', 'char const*']
|
||||
CTYPES = ['char*', 'const char*', 'char const*', 'char const *']
|
||||
|
||||
def convert_c_to_python(self, wrapper):
|
||||
assert isinstance(wrapper, ReverseWrapperBase)
|
||||
@@ -39,7 +39,7 @@ class CharParam(Parameter):
|
||||
class StdStringParam(Parameter):
|
||||
|
||||
DIRECTIONS = [Parameter.DIRECTION_IN]
|
||||
CTYPES = ['std::string']
|
||||
CTYPES = ['std::string', 'const std::string', 'std::string const']
|
||||
|
||||
def convert_c_to_python(self, wrapper):
|
||||
assert isinstance(wrapper, ReverseWrapperBase)
|
||||
@@ -64,7 +64,7 @@ class StdStringRefParam(Parameter):
|
||||
DIRECTIONS = [Parameter.DIRECTION_IN,
|
||||
Parameter.DIRECTION_OUT,
|
||||
Parameter.DIRECTION_IN|Parameter.DIRECTION_OUT]
|
||||
CTYPES = ['std::string&', 'std::string const &']
|
||||
CTYPES = ['std::string&', 'std::string const &', 'std::string &']
|
||||
|
||||
def convert_c_to_python(self, wrapper):
|
||||
assert isinstance(wrapper, ReverseWrapperBase)
|
||||
|
||||
Reference in new issue
Block a user