Package pyplusplus :: Package code_creators :: Module target_configuration

# Source Code for Module pyplusplus.code_creators.target_configuration

     1  # Copyright 2004-2008 Roman Yakovenko.
     2  # Distributed under the Boost Software License, Version 1.0. (See
     3  # accompanying file LICENSE_1_0.txt or copy at
     4  # http://www.boost.org/LICENSE_1_0.txt)
     5
     6 -class target_configuration_t( object ):
     7      """
     8      Developers do not always work with latest version of boost.python or latest
     9      version of compiler. So there is a need to generate code that configured to
    10      specific version, feature or compiler. Instance of this class will be shared
    11      between all instances of code creators. Every relevant code creator will
    12      respect relevant configuration settings.
    13      """
    14 -    def __init__( self ):
    15          self._boost_python_has_wrapper_held_type = True
    16          self._boost_python_supports_void_ptr = True
    17
    18 -    def _get_boost_python_has_wrapper_held_type( self ):
    19          return self._boost_python_has_wrapper_held_type
    20 -    def _set_boost_python_has_wrapper_held_type( self, value ):
    21          self._boost_python_has_wrapper_held_type = value
    22      boost_python_has_wrapper_held_type = property( _get_boost_python_has_wrapper_held_type
    23                                                     , _set_boost_python_has_wrapper_held_type )
    24
    25 -    def _get_boost_python_supports_void_ptr( self ):
    26          return self._boost_python_supports_void_ptr
    27 -    def _set_boost_python_supports_void_ptr( self, value ):
    28          self._boost_python_supports_void_ptr = value
    29      boost_python_supports_void_ptr = property( _get_boost_python_supports_void_ptr
    30                                                 , _set_boost_python_supports_void_ptr )
    31