--- a/bindings/python/ns3modulegen_core_customizations.py Fri Jun 19 08:37:15 2009 +0200
+++ b/bindings/python/ns3modulegen_core_customizations.py Fri Jun 19 08:43:58 2009 +0200
@@ -325,7 +325,7 @@
"NS_OBJECT_ENSURE_REGISTERED (%s);" % helper_class.name)
Object.add_helper_class_hook(helper_class_hook)
- ## Replace all class constructors with a generic constructor based on CreateObject<T> (AttributeList)
+ ## Replace all class constructors with a generic constructor based on CreateObjectWithAttributes<T> (AttributeList)
module.header.writeln('''
namespace ns3 {
@@ -357,7 +357,7 @@
if construct_name and not cls.helper_class:
construct_code = '''
- ns3::Ptr< %(CONSTRUCT_NAME)s > obj = ns3::CreateObject< %(CONSTRUCT_NAME)s > (attrList);
+ ns3::Ptr< %(CONSTRUCT_NAME)s > obj = ns3::CreateObjectWithAttributes< %(CONSTRUCT_NAME)s > (attrList);
obj->Ref ();
self->obj = ns3::PeekPointer (obj);
''' % dict (CONSTRUCT_NAME=construct_name)
@@ -393,7 +393,7 @@
obj->Ref ();
self->obj = ns3::PeekPointer (obj);
} else {
- ns3::Ptr< %(CONSTRUCT_NAME)s > obj = ns3::CreateObject< %(CONSTRUCT_NAME)s > (attrList);
+ ns3::Ptr< %(CONSTRUCT_NAME)s > obj = ns3::CreateObjectWithAttributes< %(CONSTRUCT_NAME)s > (attrList);
obj->Ref ();
self->obj = ns3::PeekPointer (obj);
}