Package SCons :: Module Builder :: Class DictCmdGenerator
[hide private]
[frames] | no frames]

Class DictCmdGenerator

source code

UserDict.UserDict --+        
                    |        
     Util.OrderedDict --+    
                        |    
            Util.Selector --+
                            |
                           DictCmdGenerator

This is a callable class that can be used as a
command generator function.  It holds on to a dictionary
mapping file suffixes to Actions.  It uses that dictionary
to return the proper action based on the file suffix of
the source file.



Instance Methods [hide private]
 
__init__(self, dict=False, source_ext_match=1) source code
 
src_suffixes(self) source code
 
add_action(self, suffix, action)
Add a suffix-action pair to the mapping.
source code
 
__call__(self, target, source, env, for_signature) source code

Inherited from Util.OrderedDict: __delitem__, __setitem__, clear, copy, items, keys, popitem, setdefault, update, values

Inherited from UserDict.UserDict: __cmp__, __contains__, __getitem__, __len__, __repr__, get, has_key, iteritems, iterkeys, itervalues, pop

Class Methods [hide private]

Inherited from UserDict.UserDict: fromkeys

Method Details [hide private]

__init__(self, dict=False, source_ext_match=1)
(Constructor)

source code 
Overrides: Util.OrderedDict.__init__

__call__(self, target, source, env, for_signature)
(Call operator)

source code 
Overrides: Util.Selector.__call__