bindings/python/ns3_module_core.py
changeset 3842 545ddf9398ed
parent 3820 c04ecfdce1ef
child 3855 7fdcbeea6c4f
     1.1 --- a/bindings/python/ns3_module_core.py	Wed Oct 29 11:18:39 2008 -0700
     1.2 +++ b/bindings/python/ns3_module_core.py	Wed Nov 05 14:49:21 2008 -0800
     1.3 @@ -1879,7 +1879,7 @@
     1.4      cls.add_method('ConnectWithoutContext', 
     1.5                     'void', 
     1.6                     [param('ns3::CallbackBase const &', 'cb')])
     1.7 -    ## traced-value.h: void ns3::TracedValue<unsigned int>::Connect(ns3::CallbackBase const & cb, std::string path) [member function]
     1.8 +    ## traced-value.h: void ns3::TracedValue<unsigned int>::Connect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
     1.9      cls.add_method('Connect', 
    1.10                     'void', 
    1.11                     [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
    1.12 @@ -1887,7 +1887,7 @@
    1.13      cls.add_method('DisconnectWithoutContext', 
    1.14                     'void', 
    1.15                     [param('ns3::CallbackBase const &', 'cb')])
    1.16 -    ## traced-value.h: void ns3::TracedValue<unsigned int>::Disconnect(ns3::CallbackBase const & cb, std::string path) [member function]
    1.17 +    ## traced-value.h: void ns3::TracedValue<unsigned int>::Disconnect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
    1.18      cls.add_method('Disconnect', 
    1.19                     'void', 
    1.20                     [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
    1.21 @@ -1981,7 +1981,7 @@
    1.22      module.add_function('TypeNameGet', 
    1.23                          'std::string', 
    1.24                          [], 
    1.25 -                        template_parameters=['long long'])
    1.26 +                        template_parameters=['long'])
    1.27      ## type-name.h: extern std::string ns3::TypeNameGet() [free function]
    1.28      module.add_function('TypeNameGet', 
    1.29                          'std::string', 
    1.30 @@ -2001,7 +2001,7 @@
    1.31      module.add_function('TypeNameGet', 
    1.32                          'std::string', 
    1.33                          [], 
    1.34 -                        template_parameters=['unsigned long long'])
    1.35 +                        template_parameters=['unsigned long'])
    1.36      ## type-name.h: extern std::string ns3::TypeNameGet() [free function]
    1.37      module.add_function('TypeNameGet', 
    1.38                          'std::string', 
    1.39 @@ -2017,18 +2017,22 @@
    1.40                          'std::string', 
    1.41                          [], 
    1.42                          template_parameters=['unsigned char'])
    1.43 -    ## log.h: extern void ns3::LogComponentDisable(char const * name, ns3::LogLevel level) [free function]
    1.44 -    module.add_function('LogComponentDisable', 
    1.45 -                        'void', 
    1.46 -                        [param('char const *', 'name'), param('ns3::LogLevel', 'level')])
    1.47      ## string.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeStringChecker() [free function]
    1.48      module.add_function('MakeStringChecker', 
    1.49                          'ns3::Ptr< ns3::AttributeChecker const >', 
    1.50                          [])
    1.51 +    ## enum.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeEnumChecker(int v1, std::string n1, int v2=0, std::string n2="", int v3=0, std::string n3="", int v4=0, std::string n4="", int v5=0, std::string n5="", int v6=0, std::string n6="", int v7=0, std::string n7="", int v8=0, std::string n8="", int v9=0, std::string n9="", int v10=0, std::string n10="", int v11=0, std::string n11="", int v12=0, std::string n12="") [free function]
    1.52 +    module.add_function('MakeEnumChecker', 
    1.53 +                        'ns3::Ptr< ns3::AttributeChecker const >', 
    1.54 +                        [param('int', 'v1'), param('std::string', 'n1'), param('int', 'v2', default_value='0'), param('std::string', 'n2', default_value='""'), param('int', 'v3', default_value='0'), param('std::string', 'n3', default_value='""'), param('int', 'v4', default_value='0'), param('std::string', 'n4', default_value='""'), param('int', 'v5', default_value='0'), param('std::string', 'n5', default_value='""'), param('int', 'v6', default_value='0'), param('std::string', 'n6', default_value='""'), param('int', 'v7', default_value='0'), param('std::string', 'n7', default_value='""'), param('int', 'v8', default_value='0'), param('std::string', 'n8', default_value='""'), param('int', 'v9', default_value='0'), param('std::string', 'n9', default_value='""'), param('int', 'v10', default_value='0'), param('std::string', 'n10', default_value='""'), param('int', 'v11', default_value='0'), param('std::string', 'n11', default_value='""'), param('int', 'v12', default_value='0'), param('std::string', 'n12', default_value='""')])
    1.55      ## type-id.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeTypeIdChecker() [free function]
    1.56      module.add_function('MakeTypeIdChecker', 
    1.57                          'ns3::Ptr< ns3::AttributeChecker const >', 
    1.58                          [])
    1.59 +    ## log.h: extern void ns3::LogComponentEnableAll(ns3::LogLevel level) [free function]
    1.60 +    module.add_function('LogComponentEnableAll', 
    1.61 +                        'void', 
    1.62 +                        [param('ns3::LogLevel', 'level')])
    1.63      ## ptr.h: extern ns3::Ptr<ns3::PointerValue> ns3::Create() [free function]
    1.64      module.add_function('Create', 
    1.65                          'ns3::Ptr< ns3::PointerValue >', 
    1.66 @@ -2039,10 +2043,6 @@
    1.67                          'ns3::Ptr< ns3::ObjectVectorValue >', 
    1.68                          [], 
    1.69                          template_parameters=['ns3::ObjectVectorValue'])
    1.70 -    ## log.h: extern void ns3::LogComponentEnableAll(ns3::LogLevel level) [free function]
    1.71 -    module.add_function('LogComponentEnableAll', 
    1.72 -                        'void', 
    1.73 -                        [param('ns3::LogLevel', 'level')])
    1.74      ## object-factory.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeObjectFactoryChecker() [free function]
    1.75      module.add_function('MakeObjectFactoryChecker', 
    1.76                          'ns3::Ptr< ns3::AttributeChecker const >', 
    1.77 @@ -2063,14 +2063,14 @@
    1.78      module.add_function('MakeRandomVariableChecker', 
    1.79                          'ns3::Ptr< ns3::AttributeChecker const >', 
    1.80                          [])
    1.81 +    ## log.h: extern void ns3::LogComponentDisable(char const * name, ns3::LogLevel level) [free function]
    1.82 +    module.add_function('LogComponentDisable', 
    1.83 +                        'void', 
    1.84 +                        [param('char const *', 'name'), param('ns3::LogLevel', 'level')])
    1.85      ## log.h: extern void ns3::LogComponentEnable(char const * name, ns3::LogLevel level) [free function]
    1.86      module.add_function('LogComponentEnable', 
    1.87                          'void', 
    1.88                          [param('char const *', 'name'), param('ns3::LogLevel', 'level')])
    1.89 -    ## enum.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeEnumChecker(int v1, std::string n1, int v2=0, std::string n2="", int v3=0, std::string n3="", int v4=0, std::string n4="", int v5=0, std::string n5="", int v6=0, std::string n6="", int v7=0, std::string n7="", int v8=0, std::string n8="", int v9=0, std::string n9="", int v10=0, std::string n10="", int v11=0, std::string n11="", int v12=0, std::string n12="") [free function]
    1.90 -    module.add_function('MakeEnumChecker', 
    1.91 -                        'ns3::Ptr< ns3::AttributeChecker const >', 
    1.92 -                        [param('int', 'v1'), param('std::string', 'n1'), param('int', 'v2', default_value='0'), param('std::string', 'n2', default_value='""'), param('int', 'v3', default_value='0'), param('std::string', 'n3', default_value='""'), param('int', 'v4', default_value='0'), param('std::string', 'n4', default_value='""'), param('int', 'v5', default_value='0'), param('std::string', 'n5', default_value='""'), param('int', 'v6', default_value='0'), param('std::string', 'n6', default_value='""'), param('int', 'v7', default_value='0'), param('std::string', 'n7', default_value='""'), param('int', 'v8', default_value='0'), param('std::string', 'n8', default_value='""'), param('int', 'v9', default_value='0'), param('std::string', 'n9', default_value='""'), param('int', 'v10', default_value='0'), param('std::string', 'n10', default_value='""'), param('int', 'v11', default_value='0'), param('std::string', 'n11', default_value='""'), param('int', 'v12', default_value='0'), param('std::string', 'n12', default_value='""')])
    1.93      register_functions_ns3_internal(module.get_submodule('internal'), root_module)
    1.94      register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
    1.95      register_functions_ns3_Config(module.get_submodule('Config'), root_module)
    1.96 @@ -2132,10 +2132,6 @@
    1.97      module.add_function('SetGlobalFailSafe', 
    1.98                          'bool', 
    1.99                          [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
   1.100 -    ## config.h: extern void ns3::Config::Disconnect(std::string path, ns3::CallbackBase const & cb) [free function]
   1.101 -    module.add_function('Disconnect', 
   1.102 -                        'void', 
   1.103 -                        [param('std::string', 'path'), param('ns3::CallbackBase const &', 'cb')])
   1.104      ## config.h: extern uint32_t ns3::Config::GetRootNamespaceObjectN() [free function]
   1.105      module.add_function('GetRootNamespaceObjectN', 
   1.106                          'uint32_t', 
   1.107 @@ -2152,6 +2148,10 @@
   1.108      module.add_function('RegisterRootNamespaceObject', 
   1.109                          'void', 
   1.110                          [param('ns3::Ptr< ns3::Object >', 'obj')])
   1.111 +    ## config.h: extern void ns3::Config::Disconnect(std::string path, ns3::CallbackBase const & cb) [free function]
   1.112 +    module.add_function('Disconnect', 
   1.113 +                        'void', 
   1.114 +                        [param('std::string', 'path'), param('ns3::CallbackBase const &', 'cb')])
   1.115      return
   1.116  
   1.117  def register_functions_ns3_olsr(module, root_module):