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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user