Ejemplo n.º 1
0
    def do_work( self , args , replacements ):
        print "Creating " + self.name + " template(s) ..."

        code_template_helpers.add_namespace_replacements( replacements , args , [ "SuperToll" ] )
        code_template_helpers.add_class_replacements( replacements , args , code_template_helpers.default_class_template )
            
        if hasattr( args , "filename" ) :
            for filename in args.filename:
                filename = code_template_helpers.check_filename_ending( filename , "h" )
                code_template_helpers.default_processing( filename , replacements , template )
Ejemplo n.º 2
0
    def do_work( self , args , replacements ):
        print "Creating " + self.name + " template(s) ..."

        path = code_template_helpers.find_odeint_header_path()

        code_template_helpers.add_namespace_replacements( replacements , args , [ "boost" , "numeric" , "odeint" ] )
        code_template_helpers.add_class_replacements( replacements , args , code_template_helpers.default_class_template )
            
        if hasattr( args , "filename" ) :
            for filename in args.filename:
                filename = code_template_helpers.check_filename_ending( filename , "hpp" )
                p = path
                p.append( filename )
                f = code_template_helpers.full_join( p )
                replacements[ "BOOSTFILENAME" ] = f
                replacements[ "BOOSTFILENAME_CAP" ] = code_template_helpers.create_cap_boost_filename_str( f )
                code_template_helpers.default_processing( filename , replacements , template )