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 6import os 7from . import code_creator 8from . import declaration_based 9 10class 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_files_impl( self ): 24 return [] 25