Revision: 780
http://svn.sourceforge.net/pygccxml/?rev=780&view=rev
Author: roman_yakovenko
Date: 2006-12-06 00:44:14 -0800 (Wed, 06 Dec 2006)
Log Message:
-----------
adding missing module
Added Paths:
-----------
pyplusplus_dev/pyplusplus/messages/warnings_.py
Added: pyplusplus_dev/pyplusplus/messages/warnings_.py
===================================================================
--- pyplusplus_dev/pyplusplus/messages/warnings_.py (rev 0)
+++ pyplusplus_dev/pyplusplus/messages/warnings_.py 2006-12-06 08:44:14 UTC (rev 780)
@@ -0,0 +1,130 @@
+# Copyright 2004 Roman Yakovenko.
+# Distributed under the Boost Software License, Version 1.0. (See
+# accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+"""This package defines all user messages( warnings + errors ), which will be
+reported to user.
+"""
+
+W1000 = 'Py++, by default, does not expose internal compilers declarations.'\
+ 'Names of those declarations usually start with "__".'
+
+W1001 = 'Py++, by default, does not expose internal declarations. ' \
+ 'GCC-XML reports that these declaration belong to "<internal>" header.'
+
+W1002 = 'Py++, by default, does not expose compiler generated declarations.'
+
+W1003 = 'Virtual functions that returns const reference can not be overriden from Python. ' \
+ 'Reason: boost::python::override::operator()(...) saves the result of the marshaling ' \
+ '(from Python to C++) on the stack. Thus operator() returns reference ' \
+ 'to a temporary variable. Consider to use "Function Transformation" functionality ' \
+ 'to solve the problem.'
+
+W1004 = 'Boost.Python library can not expose function, which takes as argument/returns ' \
+ 'pointer to function. ' \
+ ' See http://www.boost.org/libs/python/doc/v2/faq.html#funcptr for more information.'
+
+W1005 = 'Py++ can not expose function that takes as argument/returns instance of non public class. ' \
+ 'Generated code will not compile.'
+
+W1006 = 'Py++ need your help to expose function that takes as argument/returns C++ arrays. ' \
+ 'Take a look on "Function Transformation" functionality and define the transformation.'
+
+W1007 = 'The function has more than %d arguments ( %d ). ' \
+ 'You should adjust BOOST_PYTHON_MAX_ARITY macro. ' \
+ 'For more information see: http://www.boost.org/libs/python/doc/v2/configuration.html'
+
+W1008 = 'The function returns non-const reference to "Python immutable" type. ' \
+ 'The value can not be modified from Python. '
+
+W1009 = 'The function takes as argument (name=%s, pos=%d ) non-const reference ' \
+ 'to Python immutable type - function could not be called from Python. ' \
+ 'Take a look on "Function Transformation" functionality and define the transformation.'
+
+W1010 = 'The function introduces registration order problem. ' \
+ 'For more information about the problem read next document: ' \
+ 'http://language-binding.net/pyplusplus/documentation/functions/registration_order.html ' \
+ 'Problematic functions list: %s'
+
+W1011 = "Py++ doesn't export private not virtual functions."
+
+W1012 = 'Py++ does not exports compiler generated constructors.'
+
+W1013 = "Py++ doesn't export private constructor."
+
+W1014 = '"%s" is not supported. ' \
+ 'See Boost.Python documentation: http://www.boost.org/libs/python/doc/v2/operators.html#introduction.'
+
+W1015 = "Py++ doesn't export private operators."
+
+W1016 = 'Py++ does not exports non-const casting operators with user defined type as return value. ' \
+ 'This could be change in future.'
+
+W1017 = "Py++ doesn't export non-public casting operators."
+
+W1018 = 'Py++ can not expose unnamed classes.'
+
+W1019 = 'Py++ can not expose private class.'
+
+W1020 = "Py++ will generate class wrapper - hand written code should be added to the wrapper class"
+
+W1021 = "Py++ will generate class wrapper - hand written code should be added to the wrapper class null constructor body"
+
+W1022 = "Py++ will generate class wrapper - hand written code should be added to the wrapper class copy constructor body"
+
+W1023 = "Py++ will generate class wrapper - there are few functions that should be redefined in class wrapper"
+
+W1024 = "Py++ will generate class wrapper - class contains bit field member variable"
+
+W1025 = "Py++ will generate class wrapper - class contains T* member variable"
+
+W1026 = "Py++ will generate class wrapper - class contains T& member variable"
+
+W1027 = "Py++ will generate class wrapper - class contains array member variable"
+
+W1028 = "Py++ will generate class wrapper - class contains definition of nested class that requires wrapper class"
+
+W1029 = "Py++ will generate class wrapper - hand written code should be added to the wrapper class constructor body"
+
+W1030 = "Py++ will generate class wrapper - class contains definition of virtual or pure virtual member function"
+
+W1031 = "Py++ will generate class wrapper - user asked to expose non - public member function"
+
+W1032 = "Boost.Python library does not support enums with duplicate values. " \
+ "You can read more about this here: " \
+ "http://boost.org/libs/python/todo.html#support-for-enums-with-duplicate-values . " \
+ "The quick work around is to add new class variable to the exported enum, from Python. "
+
+W1033 = "Py++ can not expose unnamed variables"
+
+W1034 = "Py++ can not expose alignement bit."
+
+W1035 = "Py++ can not expose static pointer member variables. This could be changed in future."
+
+W1036 = "Py++ can not expose pointer to Python immutable member variables. This could be changed in future."
+
+W1037 = "Boost.Python library can not expose variables, which are pointer to function." \
+ " See http://www.boost.org/libs/python/doc/v2/faq.html#funcptr for more information."
+
+W1038 = "Py++ can not expose variables of with unnamed type."
+
+W1039 = "Py++ doesn't expose private or protected member variables."
+
+W1040 = 'The declaration is unexposed, but there are other declarations, which refer to it.' \
+ 'This could cause "no to_python converter found" run time error.' \
+ 'Declarations: %s'
+
+
+warnings = globals()
+
+for identifier, explanation in warnings.items():
+ globals()[ identifier ] = 'warning %s: %s' % ( identifier, explanation )
+
+del warnings
+del identifier
+del explanation
+
+
+
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|