bindings/python/ns3_module_onoff.py
changeset 3408 2cc40b3e4fa5
child 3457 2ff6f05b9467
equal deleted inserted replaced
3396:0d83aa14b65d 3408:2cc40b3e4fa5
       
     1 from pybindgen import Module, FileCodeSink, write_preamble, param, retval
       
     2 
       
     3 def register_types(module):
       
     4     root_module = module.get_root()
       
     5     
       
     6     ## onoff-application.h: ns3::OnOffApplication [class]
       
     7     module.add_class('OnOffApplication', allow_subclassing=True, parent=root_module['ns3::Application'])
       
     8     
       
     9     ## Register a nested module for the namespace internal
       
    10     
       
    11     nested_module = module.add_cpp_namespace('internal')
       
    12     register_types_ns3_internal(nested_module)
       
    13     
       
    14     
       
    15     ## Register a nested module for the namespace TimeStepPrecision
       
    16     
       
    17     nested_module = module.add_cpp_namespace('TimeStepPrecision')
       
    18     register_types_ns3_TimeStepPrecision(nested_module)
       
    19     
       
    20     
       
    21     ## Register a nested module for the namespace Config
       
    22     
       
    23     nested_module = module.add_cpp_namespace('Config')
       
    24     register_types_ns3_Config(nested_module)
       
    25     
       
    26     
       
    27     ## Register a nested module for the namespace olsr
       
    28     
       
    29     nested_module = module.add_cpp_namespace('olsr')
       
    30     register_types_ns3_olsr(nested_module)
       
    31     
       
    32 
       
    33 def register_types_ns3_internal(module):
       
    34     root_module = module.get_root()
       
    35     
       
    36 
       
    37 def register_types_ns3_TimeStepPrecision(module):
       
    38     root_module = module.get_root()
       
    39     
       
    40 
       
    41 def register_types_ns3_Config(module):
       
    42     root_module = module.get_root()
       
    43     
       
    44 
       
    45 def register_types_ns3_olsr(module):
       
    46     root_module = module.get_root()
       
    47     
       
    48 
       
    49 def register_methods(root_module):
       
    50     register_Ns3OnOffApplication_methods(root_module, root_module['ns3::OnOffApplication'])
       
    51     return
       
    52 
       
    53 def register_Ns3OnOffApplication_methods(root_module, cls):
       
    54     ## onoff-application.h: static ns3::TypeId ns3::OnOffApplication::GetTypeId() [member function]
       
    55     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
       
    56     ## onoff-application.h: ns3::OnOffApplication::OnOffApplication() [constructor]
       
    57     cls.add_constructor([], visibility='public')
       
    58     ## onoff-application.h: void ns3::OnOffApplication::SetMaxBytes(uint32_t maxBytes) [member function]
       
    59     cls.add_method('SetMaxBytes', 'void', [param('uint32_t', 'maxBytes')])
       
    60     ## onoff-application.h: void ns3::OnOffApplication::DoDispose() [member function]
       
    61     cls.add_method('DoDispose', 'void', [], visibility='protected', is_virtual=True)
       
    62     ## onoff-application.h: void ns3::OnOffApplication::StartApplication() [member function]
       
    63     cls.add_method('StartApplication', 'void', [], visibility='private', is_virtual=True)
       
    64     ## onoff-application.h: void ns3::OnOffApplication::StopApplication() [member function]
       
    65     cls.add_method('StopApplication', 'void', [], visibility='private', is_virtual=True)
       
    66     return
       
    67 
       
    68 def register_functions(root_module):
       
    69     module = root_module
       
    70     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
       
    71     register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
       
    72     register_functions_ns3_Config(module.get_submodule('Config'), root_module)
       
    73     register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
       
    74     return
       
    75 
       
    76 def register_functions_ns3_internal(module, root_module):
       
    77     return
       
    78 
       
    79 def register_functions_ns3_TimeStepPrecision(module, root_module):
       
    80     return
       
    81 
       
    82 def register_functions_ns3_Config(module, root_module):
       
    83     return
       
    84 
       
    85 def register_functions_ns3_olsr(module, root_module):
       
    86     return
       
    87