Trees | Indices | Help |
|
---|
|
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 pygccxml 8 import algorithm 9 import declaration_based 10 import registration_based 1112 -class unnamed_enum_t( registration_based.registration_based_t 13 , declaration_based.declaration_based_t ):3915 registration_based.registration_based_t.__init__( self ) 16 declaration_based.declaration_based_t.__init__( self, declaration=unnamed_enum) 17 self.works_on_instance = False18 23 value_aliases = property( _get_value_aliases, _set_value_aliases ) 2426 if self.declaration.already_exposed: 27 return '' 28 29 tmpl = algorithm.create_identifier( self, '::boost::python::scope' ) + '().attr("%s") = (int)%s;' 30 full_name = pygccxml.declarations.full_name( self.declaration ) 31 result = [] 32 for name, value in self.declaration.values: 33 result.append( tmpl % ( self.value_aliases.get( name, name ) 34 , algorithm.create_identifier( self, full_name + '::' + name ) ) ) 35 return os.linesep.join( result )36
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Oct 20 08:51:22 2008 | http://epydoc.sourceforge.net |