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