Deleted Added
sdiff udiff text old ( 5604:7c58fc1ec5dc ) new ( 5610:0e1e9c186769 )
full compact
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 517 unchanged lines hidden (view full) ---

526 print >>out
527
528 for obj in ordered_objs:
529 if obj.swig_objdecls:
530 for decl in obj.swig_objdecls:
531 print >>out, decl
532 continue
533
534 class_path = obj.cxx_class.split('::')
535 class_path.reverse()
536 classname = class_path[0]
537 namespaces = class_path[1:]
538
539 code = ''
540 code += '// stop swig from creating/wrapping default ctor/dtor\n'
541 code += '%%nodefault %s;\n' % classname
542 code += 'class %s ' % classname
543 if obj._base:
544 code += ': public %s' % obj._base.cxx_class
545 code += ' {};\n'
546
547 for ns in namespaces:
548 new_code = 'namespace %s {\n' % ns
549 new_code += code
550 new_code += '}\n'
551 code = new_code
552
553 print >>out, code
554
555 print >>out, '%%include "src/sim/sim_object_params.hh"' % obj
556 for obj in ordered_objs:
557 print >>out, '%%include "params/%s.hh"' % obj
558
559params_file = File('params/params.i')

--- 501 unchanged lines hidden ---