Package pyplusplus :: Package code_creators :: Module opaque_type_registrator

# Source Code for Module pyplusplus.code_creators.opaque_type_registrator

     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  import os
     7  import code_creator
     8  import declaration_based
     9
    10 -class opaque_type_registrator_t( code_creator.code_creator_t
    11                                   , declaration_based.declaration_based_t ):
    12      """
    13      This class creates code that register static sized array
    14      """
    15 -    def __init__( self, pointee ):
    16          code_creator.code_creator_t.__init__( self )
    17          declaration_based.declaration_based_t.__init__( self, pointee )
    18          self.works_on_instance = False
    19
    20 -    def _create_impl(self):
    21          return 'BOOST_PYTHON_OPAQUE_SPECIALIZED_TYPE_ID( %s )' % self.decl_identifier
    22
    23 -    def _get_system_headers_impl( self ):
    24          return []
    25