sim: Add SWIG interface for Serializable

This changeset adds a SWIG interface for the Serializable class, which
fixes a warning when compiling the SWIG interface for the event
queue. Currently, the only method exported is the name() method.
This commit is contained in:
Andreas Sandberg
2012-11-02 11:32:02 -05:00
parent dc01535c7e
commit aae6134b54
4 changed files with 56 additions and 3 deletions

View File

@@ -595,7 +595,7 @@ class SimObject(object):
abstract = True
cxx_header = "sim/sim_object.hh"
cxx_bases = [ "Drainable" ]
cxx_bases = [ "Drainable", "Serializable" ]
@classmethod
def export_method_swig_predecls(cls, code):
@@ -603,6 +603,7 @@ class SimObject(object):
%include <std_string.i>
%import "python/swig/drain.i"
%import "python/swig/serialize.i"
''')
@classmethod