bindings/python/ns3_module_onoff.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
     1 from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
     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', parent=root_module['ns3::Application'])
     8     
     9     ## Register a nested module for the namespace Config
    10     
    11     nested_module = module.add_cpp_namespace('Config')
    12     register_types_ns3_Config(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 addressUtils
    22     
    23     nested_module = module.add_cpp_namespace('addressUtils')
    24     register_types_ns3_addressUtils(nested_module)
    25     
    26     
    27     ## Register a nested module for the namespace internal
    28     
    29     nested_module = module.add_cpp_namespace('internal')
    30     register_types_ns3_internal(nested_module)
    31     
    32     
    33     ## Register a nested module for the namespace olsr
    34     
    35     nested_module = module.add_cpp_namespace('olsr')
    36     register_types_ns3_olsr(nested_module)
    37     
    38 
    39 def register_types_ns3_Config(module):
    40     root_module = module.get_root()
    41     
    42 
    43 def register_types_ns3_TimeStepPrecision(module):
    44     root_module = module.get_root()
    45     
    46 
    47 def register_types_ns3_addressUtils(module):
    48     root_module = module.get_root()
    49     
    50 
    51 def register_types_ns3_internal(module):
    52     root_module = module.get_root()
    53     
    54 
    55 def register_types_ns3_olsr(module):
    56     root_module = module.get_root()
    57     
    58 
    59 def register_methods(root_module):
    60     register_Ns3OnOffApplication_methods(root_module, root_module['ns3::OnOffApplication'])
    61     return
    62 
    63 def register_Ns3OnOffApplication_methods(root_module, cls):
    64     ## onoff-application.h: ns3::OnOffApplication::OnOffApplication(ns3::OnOffApplication const & arg0) [copy constructor]
    65     cls.add_constructor([param('ns3::OnOffApplication const &', 'arg0')])
    66     ## onoff-application.h: static ns3::TypeId ns3::OnOffApplication::GetTypeId() [member function]
    67     cls.add_method('GetTypeId', 
    68                    'ns3::TypeId', 
    69                    [], 
    70                    is_static=True)
    71     ## onoff-application.h: ns3::OnOffApplication::OnOffApplication() [constructor]
    72     cls.add_constructor([])
    73     ## onoff-application.h: void ns3::OnOffApplication::SetMaxBytes(uint32_t maxBytes) [member function]
    74     cls.add_method('SetMaxBytes', 
    75                    'void', 
    76                    [param('uint32_t', 'maxBytes')])
    77     ## onoff-application.h: void ns3::OnOffApplication::DoDispose() [member function]
    78     cls.add_method('DoDispose', 
    79                    'void', 
    80                    [], 
    81                    visibility='protected', is_virtual=True)
    82     ## onoff-application.h: void ns3::OnOffApplication::StartApplication() [member function]
    83     cls.add_method('StartApplication', 
    84                    'void', 
    85                    [], 
    86                    visibility='private', is_virtual=True)
    87     ## onoff-application.h: void ns3::OnOffApplication::StopApplication() [member function]
    88     cls.add_method('StopApplication', 
    89                    'void', 
    90                    [], 
    91                    visibility='private', is_virtual=True)
    92     return
    93 
    94 def register_functions(root_module):
    95     module = root_module
    96     register_functions_ns3_Config(module.get_submodule('Config'), root_module)
    97     register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
    98     register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
    99     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
   100     register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
   101     return
   102 
   103 def register_functions_ns3_Config(module, root_module):
   104     return
   105 
   106 def register_functions_ns3_TimeStepPrecision(module, root_module):
   107     return
   108 
   109 def register_functions_ns3_addressUtils(module, root_module):
   110     return
   111 
   112 def register_functions_ns3_internal(module, root_module):
   113     return
   114 
   115 def register_functions_ns3_olsr(module, root_module):
   116     return
   117