bindings/python/apidefs/gcc-ILP32/ns3_module_emu.py
changeset 6867 020d52c50a45
parent 6718 87c3097fecef
child 6936 27990c603962
equal deleted inserted replaced
6866:4d89be5b1ae9 6867:020d52c50a45
     1 from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
     1 from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
     2 
     2 
     3 def register_types(module):
     3 def register_types(module):
     4     root_module = module.get_root()
     4     root_module = module.get_root()
     5     
     5     
       
     6     ## emu-helper.h: ns3::EmuHelper [class]
       
     7     module.add_class('EmuHelper', parent=[root_module['ns3::PcapHelperForDevice'], root_module['ns3::AsciiTraceHelperForDevice']])
     6     ## emu-net-device.h: ns3::EmuNetDevice [class]
     8     ## emu-net-device.h: ns3::EmuNetDevice [class]
     7     module.add_class('EmuNetDevice', parent=root_module['ns3::NetDevice'])
     9     module.add_class('EmuNetDevice', parent=root_module['ns3::NetDevice'])
     8     ## emu-net-device.h: ns3::EmuNetDevice::EncapsulationMode [enumeration]
    10     ## emu-net-device.h: ns3::EmuNetDevice::EncapsulationMode [enumeration]
     9     module.add_enum('EncapsulationMode', ['ILLEGAL', 'DIX', 'LLC'], outer_class=root_module['ns3::EmuNetDevice'])
    11     module.add_enum('EncapsulationMode', ['ILLEGAL', 'DIX', 'LLC'], outer_class=root_module['ns3::EmuNetDevice'])
    10     
    12     
    97 def register_types_ns3_olsr(module):
    99 def register_types_ns3_olsr(module):
    98     root_module = module.get_root()
   100     root_module = module.get_root()
    99     
   101     
   100 
   102 
   101 def register_methods(root_module):
   103 def register_methods(root_module):
       
   104     register_Ns3EmuHelper_methods(root_module, root_module['ns3::EmuHelper'])
   102     register_Ns3EmuNetDevice_methods(root_module, root_module['ns3::EmuNetDevice'])
   105     register_Ns3EmuNetDevice_methods(root_module, root_module['ns3::EmuNetDevice'])
       
   106     return
       
   107 
       
   108 def register_Ns3EmuHelper_methods(root_module, cls):
       
   109     ## emu-helper.h: ns3::EmuHelper::EmuHelper(ns3::EmuHelper const & arg0) [copy constructor]
       
   110     cls.add_constructor([param('ns3::EmuHelper const &', 'arg0')])
       
   111     ## emu-helper.h: ns3::EmuHelper::EmuHelper() [constructor]
       
   112     cls.add_constructor([])
       
   113     ## emu-helper.h: ns3::NetDeviceContainer ns3::EmuHelper::Install(ns3::Ptr<ns3::Node> node) const [member function]
       
   114     cls.add_method('Install', 
       
   115                    'ns3::NetDeviceContainer', 
       
   116                    [param('ns3::Ptr< ns3::Node >', 'node')], 
       
   117                    is_const=True)
       
   118     ## emu-helper.h: ns3::NetDeviceContainer ns3::EmuHelper::Install(std::string nodeName) const [member function]
       
   119     cls.add_method('Install', 
       
   120                    'ns3::NetDeviceContainer', 
       
   121                    [param('std::string', 'nodeName')], 
       
   122                    is_const=True)
       
   123     ## emu-helper.h: ns3::NetDeviceContainer ns3::EmuHelper::Install(ns3::NodeContainer const & c) const [member function]
       
   124     cls.add_method('Install', 
       
   125                    'ns3::NetDeviceContainer', 
       
   126                    [param('ns3::NodeContainer const &', 'c')], 
       
   127                    is_const=True)
       
   128     ## emu-helper.h: void ns3::EmuHelper::SetAttribute(std::string n1, ns3::AttributeValue const & v1) [member function]
       
   129     cls.add_method('SetAttribute', 
       
   130                    'void', 
       
   131                    [param('std::string', 'n1'), param('ns3::AttributeValue const &', 'v1')])
       
   132     ## emu-helper.h: void ns3::EmuHelper::SetQueue(std::string type, std::string n1="", ns3::AttributeValue const & v1=ns3::EmptyAttributeValue(), std::string n2="", ns3::AttributeValue const & v2=ns3::EmptyAttributeValue(), std::string n3="", ns3::AttributeValue const & v3=ns3::EmptyAttributeValue(), std::string n4="", ns3::AttributeValue const & v4=ns3::EmptyAttributeValue()) [member function]
       
   133     cls.add_method('SetQueue', 
       
   134                    'void', 
       
   135                    [param('std::string', 'type'), param('std::string', 'n1', default_value='""'), param('ns3::AttributeValue const &', 'v1', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n2', default_value='""'), param('ns3::AttributeValue const &', 'v2', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n3', default_value='""'), param('ns3::AttributeValue const &', 'v3', default_value='ns3::EmptyAttributeValue()'), param('std::string', 'n4', default_value='""'), param('ns3::AttributeValue const &', 'v4', default_value='ns3::EmptyAttributeValue()')])
       
   136     ## emu-helper.h: void ns3::EmuHelper::EnableAsciiInternal(ns3::Ptr<ns3::OutputStreamWrapper> stream, std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool explicitFilename) [member function]
       
   137     cls.add_method('EnableAsciiInternal', 
       
   138                    'void', 
       
   139                    [param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream'), param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'explicitFilename')], 
       
   140                    visibility='private', is_virtual=True)
       
   141     ## emu-helper.h: void ns3::EmuHelper::EnablePcapInternal(std::string prefix, ns3::Ptr<ns3::NetDevice> nd, bool promiscuous, bool explicitFilename) [member function]
       
   142     cls.add_method('EnablePcapInternal', 
       
   143                    'void', 
       
   144                    [param('std::string', 'prefix'), param('ns3::Ptr< ns3::NetDevice >', 'nd'), param('bool', 'promiscuous'), param('bool', 'explicitFilename')], 
       
   145                    visibility='private', is_virtual=True)
   103     return
   146     return
   104 
   147 
   105 def register_Ns3EmuNetDevice_methods(root_module, cls):
   148 def register_Ns3EmuNetDevice_methods(root_module, cls):
   106     ## emu-net-device.h: ns3::EmuNetDevice::EmuNetDevice(ns3::EmuNetDevice const & arg0) [copy constructor]
   149     ## emu-net-device.h: ns3::EmuNetDevice::EmuNetDevice(ns3::EmuNetDevice const & arg0) [copy constructor]
   107     cls.add_constructor([param('ns3::EmuNetDevice const &', 'arg0')])
   150     cls.add_constructor([param('ns3::EmuNetDevice const &', 'arg0')])