bindings/python/ns3_module_v4ping.py
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 26 Jun 2009 15:38:03 +0200
changeset 4617 8562a42accf6
parent 4474 19e2b7ff3482
child 4742 f22beb219798
permissions -rw-r--r--
merge with HEAD
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4474
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
     1
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     2
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     3
def register_types(module):
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     4
    root_module = module.get_root()
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     5
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     6
    ## v4ping.h: ns3::V4Ping [class]
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     7
    module.add_class('V4Ping', parent=root_module['ns3::Application'])
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
     8
    
3855
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
     9
    ## Register a nested module for the namespace Config
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    10
    
3855
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
    11
    nested_module = module.add_cpp_namespace('Config')
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
    12
    register_types_ns3_Config(nested_module)
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    13
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    14
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    15
    ## Register a nested module for the namespace TimeStepPrecision
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    16
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    17
    nested_module = module.add_cpp_namespace('TimeStepPrecision')
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    18
    register_types_ns3_TimeStepPrecision(nested_module)
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    19
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    20
    
4474
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
    21
    ## Register a nested module for the namespace addressUtils
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
    22
    
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
    23
    nested_module = module.add_cpp_namespace('addressUtils')
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
    24
    register_types_ns3_addressUtils(nested_module)
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
    25
    
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
    26
    
3855
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
    27
    ## Register a nested module for the namespace internal
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    28
    
3855
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
    29
    nested_module = module.add_cpp_namespace('internal')
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
    30
    register_types_ns3_internal(nested_module)
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    31
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    32
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    33
    ## Register a nested module for the namespace olsr
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    34
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    35
    nested_module = module.add_cpp_namespace('olsr')
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    36
    register_types_ns3_olsr(nested_module)
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    37
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    38
3855
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
    39
def register_types_ns3_Config(module):
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    40
    root_module = module.get_root()
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    41
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    42
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    43
def register_types_ns3_TimeStepPrecision(module):
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    44
    root_module = module.get_root()
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    45
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    46
4474
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
    47
def register_types_ns3_addressUtils(module):
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
    48
    root_module = module.get_root()
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
    49
    
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
    50
3855
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
    51
def register_types_ns3_internal(module):
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    52
    root_module = module.get_root()
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    53
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    54
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    55
def register_types_ns3_olsr(module):
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    56
    root_module = module.get_root()
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    57
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    58
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    59
def register_methods(root_module):
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    60
    register_Ns3V4Ping_methods(root_module, root_module['ns3::V4Ping'])
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    61
    return
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    62
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    63
def register_Ns3V4Ping_methods(root_module, cls):
4241
c35796bc0b4b rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4218
diff changeset
    64
    ## v4ping.h: ns3::V4Ping::V4Ping(ns3::V4Ping const & arg0) [copy constructor]
c35796bc0b4b rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4218
diff changeset
    65
    cls.add_constructor([param('ns3::V4Ping const &', 'arg0')])
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    66
    ## v4ping.h: static ns3::TypeId ns3::V4Ping::GetTypeId() [member function]
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    67
    cls.add_method('GetTypeId', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    68
                   'ns3::TypeId', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    69
                   [], 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    70
                   is_static=True)
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    71
    ## v4ping.h: ns3::V4Ping::V4Ping() [constructor]
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    72
    cls.add_constructor([])
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    73
    ## v4ping.h: void ns3::V4Ping::StartApplication() [member function]
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    74
    cls.add_method('StartApplication', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    75
                   'void', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    76
                   [], 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    77
                   visibility='private', is_virtual=True)
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    78
    ## v4ping.h: void ns3::V4Ping::StopApplication() [member function]
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    79
    cls.add_method('StopApplication', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    80
                   'void', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    81
                   [], 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    82
                   visibility='private', is_virtual=True)
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    83
    ## v4ping.h: void ns3::V4Ping::DoDispose() [member function]
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    84
    cls.add_method('DoDispose', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    85
                   'void', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    86
                   [], 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    87
                   visibility='private', is_virtual=True)
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    88
    return
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    89
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    90
def register_functions(root_module):
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    91
    module = root_module
3855
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
    92
    register_functions_ns3_Config(module.get_submodule('Config'), root_module)
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    93
    register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
4474
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
    94
    register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
3855
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
    95
    register_functions_ns3_internal(module.get_submodule('internal'), root_module)
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    96
    register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    97
    return
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    98
3855
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
    99
def register_functions_ns3_Config(module, root_module):
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
   100
    return
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
   101
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
   102
def register_functions_ns3_TimeStepPrecision(module, root_module):
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
   103
    return
7fdcbeea6c4f Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3844
diff changeset
   104
4474
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
   105
def register_functions_ns3_addressUtils(module, root_module):
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
   106
    return
19e2b7ff3482 bindings/ changes for IPv4 routing rework
Tom Henderson <tomh@tomh.org>
parents: 4454
diff changeset
   107
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
   108
def register_functions_ns3_internal(module, root_module):
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
   109
    return
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
   110
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
   111
def register_functions_ns3_olsr(module, root_module):
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
   112
    return
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
   113