bindings/python/ns3_module_packet_sink.py
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sat, 04 Jul 2009 08:15:48 +0200
changeset 4654 2eaebe77d66b
parent 4454 f2af91ee09e7
permissions -rw-r--r--
Added tag ns-3.5 for changeset c975274c9707
     1 from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
     2 
     3 def register_types(module):
     4     root_module = module.get_root()
     5     
     6     ## packet-sink.h: ns3::PacketSink [class]
     7     module.add_class('PacketSink', parent=root_module['ns3::Application'])
     8     
     9     ## Register a nested module for the namespace Config
    10     
    11     nested_module = module.add_cpp_namespace('Config')
    12     register_types_ns3_Config(nested_module)
    13     
    14     
    15     ## Register a nested module for the namespace TimeStepPrecision
    16     
    17     nested_module = module.add_cpp_namespace('TimeStepPrecision')
    18     register_types_ns3_TimeStepPrecision(nested_module)
    19     
    20     
    21     ## Register a nested module for the namespace addressUtils
    22     
    23     nested_module = module.add_cpp_namespace('addressUtils')
    24     register_types_ns3_addressUtils(nested_module)
    25     
    26     
    27     ## Register a nested module for the namespace internal
    28     
    29     nested_module = module.add_cpp_namespace('internal')
    30     register_types_ns3_internal(nested_module)
    31     
    32     
    33     ## Register a nested module for the namespace olsr
    34     
    35     nested_module = module.add_cpp_namespace('olsr')
    36     register_types_ns3_olsr(nested_module)
    37     
    38 
    39 def register_types_ns3_Config(module):
    40     root_module = module.get_root()
    41     
    42 
    43 def register_types_ns3_TimeStepPrecision(module):
    44     root_module = module.get_root()
    45     
    46 
    47 def register_types_ns3_addressUtils(module):
    48     root_module = module.get_root()
    49     
    50 
    51 def register_types_ns3_internal(module):
    52     root_module = module.get_root()
    53     
    54 
    55 def register_types_ns3_olsr(module):
    56     root_module = module.get_root()
    57     
    58 
    59 def register_methods(root_module):
    60     register_Ns3PacketSink_methods(root_module, root_module['ns3::PacketSink'])
    61     return
    62 
    63 def register_Ns3PacketSink_methods(root_module, cls):
    64     ## packet-sink.h: ns3::PacketSink::PacketSink(ns3::PacketSink const & arg0) [copy constructor]
    65     cls.add_constructor([param('ns3::PacketSink const &', 'arg0')])
    66     ## packet-sink.h: static ns3::TypeId ns3::PacketSink::GetTypeId() [member function]
    67     cls.add_method('GetTypeId', 
    68                    'ns3::TypeId', 
    69                    [], 
    70                    is_static=True)
    71     ## packet-sink.h: ns3::PacketSink::PacketSink() [constructor]
    72     cls.add_constructor([])
    73     ## packet-sink.h: void ns3::PacketSink::DoDispose() [member function]
    74     cls.add_method('DoDispose', 
    75                    'void', 
    76                    [], 
    77                    visibility='protected', is_virtual=True)
    78     ## packet-sink.h: void ns3::PacketSink::StartApplication() [member function]
    79     cls.add_method('StartApplication', 
    80                    'void', 
    81                    [], 
    82                    visibility='private', is_virtual=True)
    83     ## packet-sink.h: void ns3::PacketSink::StopApplication() [member function]
    84     cls.add_method('StopApplication', 
    85                    'void', 
    86                    [], 
    87                    visibility='private', is_virtual=True)
    88     return
    89 
    90 def register_functions(root_module):
    91     module = root_module
    92     register_functions_ns3_Config(module.get_submodule('Config'), root_module)
    93     register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
    94     register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
    95     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
    96     register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
    97     return
    98 
    99 def register_functions_ns3_Config(module, root_module):
   100     return
   101 
   102 def register_functions_ns3_TimeStepPrecision(module, root_module):
   103     return
   104 
   105 def register_functions_ns3_addressUtils(module, root_module):
   106     return
   107 
   108 def register_functions_ns3_internal(module, root_module):
   109     return
   110 
   111 def register_functions_ns3_olsr(module, root_module):
   112     return
   113