bindings/python/apidefs/gcc-ILP32/ns3_module_flame.py
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Thu, 01 Oct 2009 14:22:40 +0100
changeset 5348 0d11c82c3a45
parent 5324 0ba73cdd2a43
child 5753 8c105b521d1b
permissions -rw-r--r--
python-scan
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5348
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
     1
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
     2
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
     3
def register_types(module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
     4
    root_module = module.get_root()
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
     5
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
     6
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
     7
    ## Register a nested module for the namespace Config
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
     8
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
     9
    nested_module = module.add_cpp_namespace('Config')
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    10
    register_types_ns3_Config(nested_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    11
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    12
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    13
    ## Register a nested module for the namespace TimeStepPrecision
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    14
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    15
    nested_module = module.add_cpp_namespace('TimeStepPrecision')
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    16
    register_types_ns3_TimeStepPrecision(nested_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    17
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    18
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    19
    ## Register a nested module for the namespace addressUtils
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    20
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    21
    nested_module = module.add_cpp_namespace('addressUtils')
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    22
    register_types_ns3_addressUtils(nested_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    23
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    24
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    25
    ## Register a nested module for the namespace dot11s
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    26
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    27
    nested_module = module.add_cpp_namespace('dot11s')
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    28
    register_types_ns3_dot11s(nested_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    29
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    30
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    31
    ## Register a nested module for the namespace flame
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    32
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    33
    nested_module = module.add_cpp_namespace('flame')
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    34
    register_types_ns3_flame(nested_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    35
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    36
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    37
    ## Register a nested module for the namespace internal
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    38
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    39
    nested_module = module.add_cpp_namespace('internal')
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    40
    register_types_ns3_internal(nested_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    41
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    42
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    43
    ## Register a nested module for the namespace olsr
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    44
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    45
    nested_module = module.add_cpp_namespace('olsr')
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    46
    register_types_ns3_olsr(nested_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    47
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    48
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    49
def register_types_ns3_Config(module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    50
    root_module = module.get_root()
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    51
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    52
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    53
def register_types_ns3_TimeStepPrecision(module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    54
    root_module = module.get_root()
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    55
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    56
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    57
def register_types_ns3_addressUtils(module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    58
    root_module = module.get_root()
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    59
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    60
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    61
def register_types_ns3_dot11s(module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    62
    root_module = module.get_root()
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    63
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    64
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    65
def register_types_ns3_flame(module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    66
    root_module = module.get_root()
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    67
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    68
    ## flame-protocol.h: ns3::flame::FlameProtocol [class]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    69
    module.add_class('FlameProtocol', parent=root_module['ns3::MeshL2RoutingProtocol'])
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    70
    ## flame-protocol.h: ns3::flame::FlameTag [class]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    71
    module.add_class('FlameTag', parent=root_module['ns3::Tag'])
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    72
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    73
def register_types_ns3_internal(module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    74
    root_module = module.get_root()
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    75
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    76
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    77
def register_types_ns3_olsr(module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    78
    root_module = module.get_root()
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    79
    
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    80
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    81
def register_methods(root_module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    82
    register_Ns3FlameFlameProtocol_methods(root_module, root_module['ns3::flame::FlameProtocol'])
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    83
    register_Ns3FlameFlameTag_methods(root_module, root_module['ns3::flame::FlameTag'])
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    84
    return
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    85
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    86
def register_Ns3FlameFlameProtocol_methods(root_module, cls):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    87
    ## flame-protocol.h: ns3::flame::FlameProtocol::FlameProtocol() [constructor]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    88
    cls.add_constructor([])
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    89
    ## flame-protocol.h: void ns3::flame::FlameProtocol::DoDispose() [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    90
    cls.add_method('DoDispose', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    91
                   'void', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    92
                   [], 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    93
                   is_virtual=True)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    94
    ## flame-protocol.h: ns3::Mac48Address ns3::flame::FlameProtocol::GetAddress() [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    95
    cls.add_method('GetAddress', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    96
                   'ns3::Mac48Address', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    97
                   [])
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    98
    ## flame-protocol.h: static ns3::TypeId ns3::flame::FlameProtocol::GetTypeId() [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
    99
    cls.add_method('GetTypeId', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   100
                   'ns3::TypeId', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   101
                   [], 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   102
                   is_static=True)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   103
    ## flame-protocol.h: bool ns3::flame::FlameProtocol::Install(ns3::Ptr<ns3::MeshPointDevice> arg0) [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   104
    cls.add_method('Install', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   105
                   'bool', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   106
                   [param('ns3::Ptr< ns3::MeshPointDevice >', 'arg0')])
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   107
    ## flame-protocol.h: bool ns3::flame::FlameProtocol::RemoveRoutingStuff(uint32_t fromIface, ns3::Mac48Address const source, ns3::Mac48Address const destination, ns3::Ptr<ns3::Packet> packet, uint16_t & protocolType) [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   108
    cls.add_method('RemoveRoutingStuff', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   109
                   'bool', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   110
                   [param('uint32_t', 'fromIface'), param('ns3::Mac48Address const', 'source'), param('ns3::Mac48Address const', 'destination'), param('ns3::Ptr< ns3::Packet >', 'packet'), param('uint16_t &', 'protocolType')], 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   111
                   is_virtual=True)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   112
    ## flame-protocol.h: void ns3::flame::FlameProtocol::Report(std::ostream & arg0) const [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   113
    cls.add_method('Report', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   114
                   'void', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   115
                   [param('std::ostream &', 'arg0')], 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   116
                   is_const=True)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   117
    ## flame-protocol.h: bool ns3::flame::FlameProtocol::RequestRoute(uint32_t sourceIface, ns3::Mac48Address const source, ns3::Mac48Address const destination, ns3::Ptr<ns3::Packet const> packet, uint16_t protocolType, ns3::Callback<void, bool, ns3::Ptr<ns3::Packet>, ns3::Mac48Address, ns3::Mac48Address, unsigned short, unsigned int, ns3::empty, ns3::empty, ns3::empty> routeReply) [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   118
    cls.add_method('RequestRoute', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   119
                   'bool', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   120
                   [param('uint32_t', 'sourceIface'), param('ns3::Mac48Address const', 'source'), param('ns3::Mac48Address const', 'destination'), param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'protocolType'), param('ns3::Callback< void, bool, ns3::Ptr< ns3::Packet >, ns3::Mac48Address, ns3::Mac48Address, unsigned short, unsigned int, ns3::empty, ns3::empty, ns3::empty >', 'routeReply')], 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   121
                   is_virtual=True)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   122
    ## flame-protocol.h: void ns3::flame::FlameProtocol::ResetStats() [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   123
    cls.add_method('ResetStats', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   124
                   'void', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   125
                   [])
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   126
    return
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   127
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   128
def register_Ns3FlameFlameTag_methods(root_module, cls):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   129
    ## flame-protocol.h: ns3::flame::FlameTag::FlameTag(ns3::flame::FlameTag const & arg0) [copy constructor]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   130
    cls.add_constructor([param('ns3::flame::FlameTag const &', 'arg0')])
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   131
    ## flame-protocol.h: ns3::flame::FlameTag::FlameTag(ns3::Mac48Address a=ns3::Mac48Address()) [constructor]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   132
    cls.add_constructor([param('ns3::Mac48Address', 'a', default_value='ns3::Mac48Address()')])
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   133
    ## flame-protocol.h: void ns3::flame::FlameTag::Deserialize(ns3::TagBuffer i) [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   134
    cls.add_method('Deserialize', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   135
                   'void', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   136
                   [param('ns3::TagBuffer', 'i')], 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   137
                   is_virtual=True)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   138
    ## flame-protocol.h: ns3::TypeId ns3::flame::FlameTag::GetInstanceTypeId() const [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   139
    cls.add_method('GetInstanceTypeId', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   140
                   'ns3::TypeId', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   141
                   [], 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   142
                   is_const=True, is_virtual=True)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   143
    ## flame-protocol.h: uint32_t ns3::flame::FlameTag::GetSerializedSize() const [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   144
    cls.add_method('GetSerializedSize', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   145
                   'uint32_t', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   146
                   [], 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   147
                   is_const=True, is_virtual=True)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   148
    ## flame-protocol.h: static ns3::TypeId ns3::flame::FlameTag::GetTypeId() [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   149
    cls.add_method('GetTypeId', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   150
                   'ns3::TypeId', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   151
                   [], 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   152
                   is_static=True)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   153
    ## flame-protocol.h: void ns3::flame::FlameTag::Print(std::ostream & os) const [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   154
    cls.add_method('Print', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   155
                   'void', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   156
                   [param('std::ostream &', 'os')], 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   157
                   is_const=True, is_virtual=True)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   158
    ## flame-protocol.h: void ns3::flame::FlameTag::Serialize(ns3::TagBuffer i) const [member function]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   159
    cls.add_method('Serialize', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   160
                   'void', 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   161
                   [param('ns3::TagBuffer', 'i')], 
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   162
                   is_const=True, is_virtual=True)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   163
    ## flame-protocol.h: ns3::flame::FlameTag::receiver [variable]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   164
    cls.add_instance_attribute('receiver', 'ns3::Mac48Address', is_const=False)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   165
    ## flame-protocol.h: ns3::flame::FlameTag::transmitter [variable]
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   166
    cls.add_instance_attribute('transmitter', 'ns3::Mac48Address', is_const=False)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   167
    return
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   168
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   169
def register_functions(root_module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   170
    module = root_module
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   171
    register_functions_ns3_Config(module.get_submodule('Config'), root_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   172
    register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   173
    register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   174
    register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   175
    register_functions_ns3_flame(module.get_submodule('flame'), root_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   176
    register_functions_ns3_internal(module.get_submodule('internal'), root_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   177
    register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   178
    return
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   179
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   180
def register_functions_ns3_Config(module, root_module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   181
    return
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   182
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   183
def register_functions_ns3_TimeStepPrecision(module, root_module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   184
    return
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   185
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   186
def register_functions_ns3_addressUtils(module, root_module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   187
    return
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   188
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   189
def register_functions_ns3_dot11s(module, root_module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   190
    return
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   191
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   192
def register_functions_ns3_flame(module, root_module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   193
    return
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   194
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   195
def register_functions_ns3_internal(module, root_module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   196
    return
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   197
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   198
def register_functions_ns3_olsr(module, root_module):
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   199
    return
0d11c82c3a45 python-scan
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5324
diff changeset
   200