bindings/python/ns3_module_v4ping.py
author Tom Henderson <tomh@tomh.org>
Thu, 21 May 2009 06:04:40 -0700
changeset 4454 f2af91ee09e7
parent 4449 c11b6d768ab3
child 4474 19e2b7ff3482
permissions -rw-r--r--
rescan python bindings
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4454
f2af91ee09e7 rescan python bindings
Tom Henderson <tomh@tomh.org>
parents: 4449
diff changeset
     1
from pybindgen import Module, FileCodeSink, param, retval, cppclass
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
    
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
    21
    ## Register a nested module for the namespace internal
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    22
    
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
    23
    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
    24
    register_types_ns3_internal(nested_module)
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    25
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    26
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    27
    ## Register a nested module for the namespace olsr
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    28
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    29
    nested_module = module.add_cpp_namespace('olsr')
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    30
    register_types_ns3_olsr(nested_module)
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
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
    33
def register_types_ns3_Config(module):
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    34
    root_module = module.get_root()
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    35
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    36
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    37
def register_types_ns3_TimeStepPrecision(module):
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    38
    root_module = module.get_root()
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    39
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    40
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
    41
def register_types_ns3_internal(module):
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    42
    root_module = module.get_root()
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    43
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    44
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    45
def register_types_ns3_olsr(module):
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    46
    root_module = module.get_root()
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    47
    
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    48
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    49
def register_methods(root_module):
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    50
    register_Ns3V4Ping_methods(root_module, root_module['ns3::V4Ping'])
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    51
    return
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    52
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    53
def register_Ns3V4Ping_methods(root_module, cls):
4241
c35796bc0b4b rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 4218
diff changeset
    54
    ## 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
    55
    cls.add_constructor([param('ns3::V4Ping const &', 'arg0')])
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    56
    ## v4ping.h: static ns3::TypeId ns3::V4Ping::GetTypeId() [member function]
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    57
    cls.add_method('GetTypeId', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    58
                   'ns3::TypeId', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    59
                   [], 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    60
                   is_static=True)
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    61
    ## v4ping.h: ns3::V4Ping::V4Ping() [constructor]
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    62
    cls.add_constructor([])
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    63
    ## v4ping.h: void ns3::V4Ping::StartApplication() [member function]
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    64
    cls.add_method('StartApplication', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    65
                   'void', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    66
                   [], 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    67
                   visibility='private', is_virtual=True)
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    68
    ## v4ping.h: void ns3::V4Ping::StopApplication() [member function]
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    69
    cls.add_method('StopApplication', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    70
                   'void', 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    71
                   [], 
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    72
                   visibility='private', is_virtual=True)
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    73
    ## v4ping.h: void ns3::V4Ping::DoDispose() [member function]
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    74
    cls.add_method('DoDispose', 
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
    return
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    79
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    80
def register_functions(root_module):
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    81
    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
    82
    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
    83
    register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), 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
    84
    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
    85
    register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    86
    return
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    87
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
    88
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
    89
    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
    90
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
    91
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
    92
    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
    93
3844
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    94
def register_functions_ns3_internal(module, root_module):
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    95
    return
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    96
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    97
def register_functions_ns3_olsr(module, root_module):
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    98
    return
df9b99bc768c need bindings for v4ping
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff changeset
    99