bindings/python/ns3_module_contrib.py
changeset 4279 7cb2938928d4
parent 4241 c35796bc0b4b
child 4407 ef566eeff84f
equal deleted inserted replaced
4278:0ffffb0b92c2 4279:7cb2938928d4
     5     
     5     
     6     ## delay-jitter-estimation.h: ns3::DelayJitterEstimation [class]
     6     ## delay-jitter-estimation.h: ns3::DelayJitterEstimation [class]
     7     module.add_class('DelayJitterEstimation')
     7     module.add_class('DelayJitterEstimation')
     8     ## event-garbage-collector.h: ns3::EventGarbageCollector [class]
     8     ## event-garbage-collector.h: ns3::EventGarbageCollector [class]
     9     module.add_class('EventGarbageCollector')
     9     module.add_class('EventGarbageCollector')
       
    10     ## file-config.h: ns3::FileConfig [class]
       
    11     module.add_class('FileConfig', allow_subclassing=True)
    10     ## gnuplot.h: ns3::Gnuplot [class]
    12     ## gnuplot.h: ns3::Gnuplot [class]
    11     module.add_class('Gnuplot')
    13     module.add_class('Gnuplot')
    12     ## gnuplot.h: ns3::GnuplotCollection [class]
    14     ## gnuplot.h: ns3::GnuplotCollection [class]
    13     module.add_class('GnuplotCollection')
    15     module.add_class('GnuplotCollection')
    14     ## gnuplot.h: ns3::GnuplotDataset [class]
    16     ## gnuplot.h: ns3::GnuplotDataset [class]
    15     module.add_class('GnuplotDataset')
    17     module.add_class('GnuplotDataset')
    16     ## gtk-config-store.h: ns3::GtkConfigStore [class]
    18     ## gtk-config-store.h: ns3::GtkConfigStore [class]
    17     module.add_class('GtkConfigStore')
    19     module.add_class('GtkConfigStore')
       
    20     ## file-config.h: ns3::NoneFileConfig [class]
       
    21     module.add_class('NoneFileConfig', parent=root_module['ns3::FileConfig'])
    18     ## config-store.h: ns3::ConfigStore [class]
    22     ## config-store.h: ns3::ConfigStore [class]
    19     module.add_class('ConfigStore', parent=root_module['ns3::ObjectBase'])
    23     module.add_class('ConfigStore', parent=root_module['ns3::ObjectBase'])
       
    24     ## config-store.h: ns3::ConfigStore::Mode [enumeration]
       
    25     module.add_enum('Mode', ['LOAD', 'SAVE', 'NONE'], outer_class=root_module['ns3::ConfigStore'])
       
    26     ## config-store.h: ns3::ConfigStore::FileFormat [enumeration]
       
    27     module.add_enum('FileFormat', ['XML', 'RAW_TEXT'], outer_class=root_module['ns3::ConfigStore'])
    20     ## flow-id-tag.h: ns3::FlowIdTag [class]
    28     ## flow-id-tag.h: ns3::FlowIdTag [class]
    21     module.add_class('FlowIdTag', parent=root_module['ns3::Tag'])
    29     module.add_class('FlowIdTag', parent=root_module['ns3::Tag'])
    22     ## gnuplot.h: ns3::Gnuplot2dDataset [class]
    30     ## gnuplot.h: ns3::Gnuplot2dDataset [class]
    23     module.add_class('Gnuplot2dDataset', parent=root_module['ns3::GnuplotDataset'])
    31     module.add_class('Gnuplot2dDataset', parent=root_module['ns3::GnuplotDataset'])
    24     ## gnuplot.h: ns3::Gnuplot2dDataset::Style [enumeration]
    32     ## gnuplot.h: ns3::Gnuplot2dDataset::Style [enumeration]
    73     
    81     
    74 
    82 
    75 def register_methods(root_module):
    83 def register_methods(root_module):
    76     register_Ns3DelayJitterEstimation_methods(root_module, root_module['ns3::DelayJitterEstimation'])
    84     register_Ns3DelayJitterEstimation_methods(root_module, root_module['ns3::DelayJitterEstimation'])
    77     register_Ns3EventGarbageCollector_methods(root_module, root_module['ns3::EventGarbageCollector'])
    85     register_Ns3EventGarbageCollector_methods(root_module, root_module['ns3::EventGarbageCollector'])
       
    86     register_Ns3FileConfig_methods(root_module, root_module['ns3::FileConfig'])
    78     register_Ns3Gnuplot_methods(root_module, root_module['ns3::Gnuplot'])
    87     register_Ns3Gnuplot_methods(root_module, root_module['ns3::Gnuplot'])
    79     register_Ns3GnuplotCollection_methods(root_module, root_module['ns3::GnuplotCollection'])
    88     register_Ns3GnuplotCollection_methods(root_module, root_module['ns3::GnuplotCollection'])
    80     register_Ns3GnuplotDataset_methods(root_module, root_module['ns3::GnuplotDataset'])
    89     register_Ns3GnuplotDataset_methods(root_module, root_module['ns3::GnuplotDataset'])
    81     register_Ns3GtkConfigStore_methods(root_module, root_module['ns3::GtkConfigStore'])
    90     register_Ns3GtkConfigStore_methods(root_module, root_module['ns3::GtkConfigStore'])
       
    91     register_Ns3NoneFileConfig_methods(root_module, root_module['ns3::NoneFileConfig'])
    82     register_Ns3ConfigStore_methods(root_module, root_module['ns3::ConfigStore'])
    92     register_Ns3ConfigStore_methods(root_module, root_module['ns3::ConfigStore'])
    83     register_Ns3FlowIdTag_methods(root_module, root_module['ns3::FlowIdTag'])
    93     register_Ns3FlowIdTag_methods(root_module, root_module['ns3::FlowIdTag'])
    84     register_Ns3Gnuplot2dDataset_methods(root_module, root_module['ns3::Gnuplot2dDataset'])
    94     register_Ns3Gnuplot2dDataset_methods(root_module, root_module['ns3::Gnuplot2dDataset'])
    85     register_Ns3Gnuplot2dFunction_methods(root_module, root_module['ns3::Gnuplot2dFunction'])
    95     register_Ns3Gnuplot2dFunction_methods(root_module, root_module['ns3::Gnuplot2dFunction'])
    86     register_Ns3Gnuplot3dDataset_methods(root_module, root_module['ns3::Gnuplot3dDataset'])
    96     register_Ns3Gnuplot3dDataset_methods(root_module, root_module['ns3::Gnuplot3dDataset'])
   120     cls.add_constructor([])
   130     cls.add_constructor([])
   121     ## event-garbage-collector.h: void ns3::EventGarbageCollector::Track(ns3::EventId event) [member function]
   131     ## event-garbage-collector.h: void ns3::EventGarbageCollector::Track(ns3::EventId event) [member function]
   122     cls.add_method('Track', 
   132     cls.add_method('Track', 
   123                    'void', 
   133                    'void', 
   124                    [param('ns3::EventId', 'event')])
   134                    [param('ns3::EventId', 'event')])
       
   135     return
       
   136 
       
   137 def register_Ns3FileConfig_methods(root_module, cls):
       
   138     ## file-config.h: ns3::FileConfig::FileConfig(ns3::FileConfig const & arg0) [copy constructor]
       
   139     cls.add_constructor([param('ns3::FileConfig const &', 'arg0')])
       
   140     ## file-config.h: ns3::FileConfig::FileConfig() [constructor]
       
   141     cls.add_constructor([])
       
   142     ## file-config.h: void ns3::FileConfig::SetFilename(std::string filename) [member function]
       
   143     cls.add_method('SetFilename', 
       
   144                    'void', 
       
   145                    [param('std::string', 'filename')], 
       
   146                    is_pure_virtual=True, is_virtual=True)
       
   147     ## file-config.h: void ns3::FileConfig::Default() [member function]
       
   148     cls.add_method('Default', 
       
   149                    'void', 
       
   150                    [], 
       
   151                    is_pure_virtual=True, is_virtual=True)
       
   152     ## file-config.h: void ns3::FileConfig::Global() [member function]
       
   153     cls.add_method('Global', 
       
   154                    'void', 
       
   155                    [], 
       
   156                    is_pure_virtual=True, is_virtual=True)
       
   157     ## file-config.h: void ns3::FileConfig::Attributes() [member function]
       
   158     cls.add_method('Attributes', 
       
   159                    'void', 
       
   160                    [], 
       
   161                    is_pure_virtual=True, is_virtual=True)
   125     return
   162     return
   126 
   163 
   127 def register_Ns3Gnuplot_methods(root_module, cls):
   164 def register_Ns3Gnuplot_methods(root_module, cls):
   128     ## gnuplot.h: ns3::Gnuplot::Gnuplot(ns3::Gnuplot const & arg0) [copy constructor]
   165     ## gnuplot.h: ns3::Gnuplot::Gnuplot(ns3::Gnuplot const & arg0) [copy constructor]
   129     cls.add_constructor([param('ns3::Gnuplot const &', 'arg0')])
   166     cls.add_constructor([param('ns3::Gnuplot const &', 'arg0')])
   213 def register_Ns3GtkConfigStore_methods(root_module, cls):
   250 def register_Ns3GtkConfigStore_methods(root_module, cls):
   214     ## gtk-config-store.h: ns3::GtkConfigStore::GtkConfigStore(ns3::GtkConfigStore const & arg0) [copy constructor]
   251     ## gtk-config-store.h: ns3::GtkConfigStore::GtkConfigStore(ns3::GtkConfigStore const & arg0) [copy constructor]
   215     cls.add_constructor([param('ns3::GtkConfigStore const &', 'arg0')])
   252     cls.add_constructor([param('ns3::GtkConfigStore const &', 'arg0')])
   216     ## gtk-config-store.h: ns3::GtkConfigStore::GtkConfigStore() [constructor]
   253     ## gtk-config-store.h: ns3::GtkConfigStore::GtkConfigStore() [constructor]
   217     cls.add_constructor([])
   254     cls.add_constructor([])
   218     ## gtk-config-store.h: void ns3::GtkConfigStore::Configure() [member function]
   255     ## gtk-config-store.h: void ns3::GtkConfigStore::ConfigureDefaults() [member function]
   219     cls.add_method('Configure', 
   256     cls.add_method('ConfigureDefaults', 
   220                    'void', 
   257                    'void', 
   221                    [])
   258                    [])
       
   259     ## gtk-config-store.h: void ns3::GtkConfigStore::ConfigureAttributes() [member function]
       
   260     cls.add_method('ConfigureAttributes', 
       
   261                    'void', 
       
   262                    [])
       
   263     return
       
   264 
       
   265 def register_Ns3NoneFileConfig_methods(root_module, cls):
       
   266     ## file-config.h: ns3::NoneFileConfig::NoneFileConfig(ns3::NoneFileConfig const & arg0) [copy constructor]
       
   267     cls.add_constructor([param('ns3::NoneFileConfig const &', 'arg0')])
       
   268     ## file-config.h: ns3::NoneFileConfig::NoneFileConfig() [constructor]
       
   269     cls.add_constructor([])
       
   270     ## file-config.h: void ns3::NoneFileConfig::SetFilename(std::string filename) [member function]
       
   271     cls.add_method('SetFilename', 
       
   272                    'void', 
       
   273                    [param('std::string', 'filename')], 
       
   274                    is_virtual=True)
       
   275     ## file-config.h: void ns3::NoneFileConfig::Default() [member function]
       
   276     cls.add_method('Default', 
       
   277                    'void', 
       
   278                    [], 
       
   279                    is_virtual=True)
       
   280     ## file-config.h: void ns3::NoneFileConfig::Global() [member function]
       
   281     cls.add_method('Global', 
       
   282                    'void', 
       
   283                    [], 
       
   284                    is_virtual=True)
       
   285     ## file-config.h: void ns3::NoneFileConfig::Attributes() [member function]
       
   286     cls.add_method('Attributes', 
       
   287                    'void', 
       
   288                    [], 
       
   289                    is_virtual=True)
   222     return
   290     return
   223 
   291 
   224 def register_Ns3ConfigStore_methods(root_module, cls):
   292 def register_Ns3ConfigStore_methods(root_module, cls):
   225     ## config-store.h: ns3::ConfigStore::ConfigStore(ns3::ConfigStore const & arg0) [copy constructor]
   293     ## config-store.h: ns3::ConfigStore::ConfigStore(ns3::ConfigStore const & arg0) [copy constructor]
   226     cls.add_constructor([param('ns3::ConfigStore const &', 'arg0')])
   294     cls.add_constructor([param('ns3::ConfigStore const &', 'arg0')])
   234                    'ns3::TypeId', 
   302                    'ns3::TypeId', 
   235                    [], 
   303                    [], 
   236                    is_const=True, is_virtual=True)
   304                    is_const=True, is_virtual=True)
   237     ## config-store.h: ns3::ConfigStore::ConfigStore() [constructor]
   305     ## config-store.h: ns3::ConfigStore::ConfigStore() [constructor]
   238     cls.add_constructor([])
   306     cls.add_constructor([])
   239     ## config-store.h: void ns3::ConfigStore::Configure() [member function]
   307     ## config-store.h: void ns3::ConfigStore::SetMode(ns3::ConfigStore::Mode mode) [member function]
   240     cls.add_method('Configure', 
   308     cls.add_method('SetMode', 
       
   309                    'void', 
       
   310                    [param('ns3::ConfigStore::Mode', 'mode')])
       
   311     ## config-store.h: void ns3::ConfigStore::SetFileFormat(ns3::ConfigStore::FileFormat format) [member function]
       
   312     cls.add_method('SetFileFormat', 
       
   313                    'void', 
       
   314                    [param('ns3::ConfigStore::FileFormat', 'format')])
       
   315     ## config-store.h: void ns3::ConfigStore::SetFilename(std::string filename) [member function]
       
   316     cls.add_method('SetFilename', 
       
   317                    'void', 
       
   318                    [param('std::string', 'filename')])
       
   319     ## config-store.h: void ns3::ConfigStore::ConfigureDefaults() [member function]
       
   320     cls.add_method('ConfigureDefaults', 
       
   321                    'void', 
       
   322                    [])
       
   323     ## config-store.h: void ns3::ConfigStore::ConfigureAttributes() [member function]
       
   324     cls.add_method('ConfigureAttributes', 
   241                    'void', 
   325                    'void', 
   242                    [])
   326                    [])
   243     return
   327     return
   244 
   328 
   245 def register_Ns3FlowIdTag_methods(root_module, cls):
   329 def register_Ns3FlowIdTag_methods(root_module, cls):