Package pygccxml :: Package declarations :: Module decl_factory |

# Source Code for Module pygccxml.declarations.decl_factory

     1  # Copyright 2004-2008 Roman Yakovenko.
     2  # Distributed under the Boost Software License, Version 1.0. (See
     3  # accompanying file LICENSE_1_0.txt or copy at
     4  # http://www.boost.org/LICENSE_1_0.txt)
     5
     6  """
     7  defines default declarations factory class
     8  """
     9
    10  from calldef import member_function_t
    11  from calldef import constructor_t
    12  from calldef import destructor_t
    13  from calldef import member_operator_t
    14  from calldef import casting_operator_t
    15  from calldef import free_function_t
    16  from calldef import free_operator_t
    17  from enumeration import enumeration_t
    18  from namespace import namespace_t
    19  from class_declaration import class_t
    20  from class_declaration import class_declaration_t
    21  from typedef import typedef_t
    22  from variable import variable_t
    23
    24 -class decl_factory_t(object):
    25      """
    26      declarations factory class
    27      """
    28 -    def __init__(self):
    29          """creates declarations factory"""
    30          object.__init__(self)
    31
    32 -    def create_member_function( self, *arguments, **keywords ):
    33          """creates instance of class that describes member function declaration"""
    34          return member_function_t(*arguments, **keywords)
    35
    36 -    def create_constructor( self, *arguments, **keywords ):
    37          """creates instance of class that describes constructor declaration"""
    38          return constructor_t(*arguments, **keywords)
    39
    40 -    def create_destructor( self, *arguments, **keywords ):
    41          """creates instance of class that describes destructor declaration"""
    42          return destructor_t(*arguments, **keywords)
    43
    44 -    def create_member_operator( self, *arguments, **keywords ):
    45          """creates instance of class that describes member operator declaration"""
    46          return member_operator_t(*arguments, **keywords)
    47
    48 -    def create_casting_operator( self, *arguments, **keywords ):
    49          """creates instance of class that describes casting operator declaration"""
    50          return casting_operator_t(*arguments, **keywords)
    51
    52 -    def create_free_function( self, *arguments, **keywords ):
    53          """creates instance of class that describes free function declaration"""
    54          return free_function_t(*arguments, **keywords)
    55
    56 -    def create_free_operator( self, *arguments, **keywords ):
    57          """creates instance of class that describes free operator declaration"""
    58          return free_operator_t(*arguments, **keywords)
    59
    60 -    def create_class_declaration(self, *arguments, **keywords ):
    61          """creates instance of class that describes class declaration"""
    62          return class_declaration_t(*arguments, **keywords)
    63
    64 -    def create_class( self, *arguments, **keywords ):
    65          """creates instance of class that describes class definition declaration"""
    66          return class_t(*arguments, **keywords)
    67
    68 -    def create_enumeration( self, *arguments, **keywords ):
    69          """creates instance of class that describes enumeration declaration"""
    70          return enumeration_t(*arguments, **keywords)
    71
    72 -    def create_namespace( self, *arguments, **keywords ):
    73          """creates instance of class that describes namespace declaration"""
    74          return namespace_t(*arguments, **keywords)
    75
    76 -    def create_typedef( self, *arguments, **keywords ):
    77          """creates instance of class that describes typedef declaration"""
    78          return typedef_t(*arguments, **keywords)
    79
    80 -    def create_variable( self, *arguments, **keywords ):
    81          """creates instance of class that describes variable declaration"""
    82          return variable_t(*arguments, **keywords)
    83