1# Copyright (c) 2012 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 581 unchanged lines hidden (view full) --- 590class SimObject(object): 591 # Specify metaclass. Any class inheriting from SimObject will 592 # get this metaclass. 593 __metaclass__ = MetaSimObject 594 type = 'SimObject' 595 abstract = True 596 cxx_header = "sim/sim_object.hh" 597 |
598 cxx_bases = [ "Drainable", "Serializable" ] |
599 600 @classmethod 601 def export_method_swig_predecls(cls, code): 602 code(''' 603%include <std_string.i> 604 605%import "python/swig/drain.i" |
606%import "python/swig/serialize.i" |
607''') 608 609 @classmethod 610 def export_methods(cls, code): 611 code(''' 612 void init(); 613 void loadState(Checkpoint *cp); 614 void initState(); --- 510 unchanged lines hidden --- |