bindings/python/ns3_module_v4ping.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
craigdo@3844
     2
craigdo@3844
     3
def register_types(module):
craigdo@3844
     4
    root_module = module.get_root()
craigdo@3844
     5
    
craigdo@3844
     6
    ## v4ping.h: ns3::V4Ping [class]
craigdo@3844
     7
    module.add_class('V4Ping', parent=root_module['ns3::Application'])
craigdo@3844
     8
    
gjc@3855
     9
    ## Register a nested module for the namespace Config
craigdo@3844
    10
    
gjc@3855
    11
    nested_module = module.add_cpp_namespace('Config')
gjc@3855
    12
    register_types_ns3_Config(nested_module)
craigdo@3844
    13
    
craigdo@3844
    14
    
craigdo@3844
    15
    ## Register a nested module for the namespace TimeStepPrecision
craigdo@3844
    16
    
craigdo@3844
    17
    nested_module = module.add_cpp_namespace('TimeStepPrecision')
craigdo@3844
    18
    register_types_ns3_TimeStepPrecision(nested_module)
craigdo@3844
    19
    
craigdo@3844
    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
craigdo@3844
    28
    
gjc@3855
    29
    nested_module = module.add_cpp_namespace('internal')
gjc@3855
    30
    register_types_ns3_internal(nested_module)
craigdo@3844
    31
    
craigdo@3844
    32
    
craigdo@3844
    33
    ## Register a nested module for the namespace olsr
craigdo@3844
    34
    
craigdo@3844
    35
    nested_module = module.add_cpp_namespace('olsr')
craigdo@3844
    36
    register_types_ns3_olsr(nested_module)
craigdo@3844
    37
    
craigdo@3844
    38
gjc@3855
    39
def register_types_ns3_Config(module):
craigdo@3844
    40
    root_module = module.get_root()
craigdo@3844
    41
    
craigdo@3844
    42
craigdo@3844
    43
def register_types_ns3_TimeStepPrecision(module):
craigdo@3844
    44
    root_module = module.get_root()
craigdo@3844
    45
    
craigdo@3844
    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):
craigdo@3844
    52
    root_module = module.get_root()
craigdo@3844
    53
    
craigdo@3844
    54
craigdo@3844
    55
def register_types_ns3_olsr(module):
craigdo@3844
    56
    root_module = module.get_root()
craigdo@3844
    57
    
craigdo@3844
    58
craigdo@3844
    59
def register_methods(root_module):
craigdo@3844
    60
    register_Ns3V4Ping_methods(root_module, root_module['ns3::V4Ping'])
craigdo@3844
    61
    return
craigdo@3844
    62
craigdo@3844
    63
def register_Ns3V4Ping_methods(root_module, cls):
mathieu@4241
    64
    ## v4ping.h: ns3::V4Ping::V4Ping(ns3::V4Ping const & arg0) [copy constructor]
mathieu@4241
    65
    cls.add_constructor([param('ns3::V4Ping const &', 'arg0')])
craigdo@3844
    66
    ## v4ping.h: static ns3::TypeId ns3::V4Ping::GetTypeId() [member function]
craigdo@3844
    67
    cls.add_method('GetTypeId', 
craigdo@3844
    68
                   'ns3::TypeId', 
craigdo@3844
    69
                   [], 
craigdo@3844
    70
                   is_static=True)
craigdo@3844
    71
    ## v4ping.h: ns3::V4Ping::V4Ping() [constructor]
craigdo@3844
    72
    cls.add_constructor([])
craigdo@3844
    73
    ## v4ping.h: void ns3::V4Ping::StartApplication() [member function]
craigdo@3844
    74
    cls.add_method('StartApplication', 
craigdo@3844
    75
                   'void', 
craigdo@3844
    76
                   [], 
craigdo@3844
    77
                   visibility='private', is_virtual=True)
craigdo@3844
    78
    ## v4ping.h: void ns3::V4Ping::StopApplication() [member function]
craigdo@3844
    79
    cls.add_method('StopApplication', 
craigdo@3844
    80
                   'void', 
craigdo@3844
    81
                   [], 
craigdo@3844
    82
                   visibility='private', is_virtual=True)
craigdo@3844
    83
    ## v4ping.h: void ns3::V4Ping::DoDispose() [member function]
craigdo@3844
    84
    cls.add_method('DoDispose', 
craigdo@3844
    85
                   'void', 
craigdo@3844
    86
                   [], 
craigdo@3844
    87
                   visibility='private', is_virtual=True)
craigdo@3844
    88
    return
craigdo@3844
    89
craigdo@3844
    90
def register_functions(root_module):
craigdo@3844
    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)
craigdo@3844
    95
    register_functions_ns3_internal(module.get_submodule('internal'), root_module)
craigdo@3844
    96
    register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
craigdo@3844
    97
    return
craigdo@3844
    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
craigdo@3844
   108
def register_functions_ns3_internal(module, root_module):
craigdo@3844
   109
    return
craigdo@3844
   110
craigdo@3844
   111
def register_functions_ns3_olsr(module, root_module):
craigdo@3844
   112
    return
craigdo@3844
   113