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

Class DictCmdGenerator

source code

         object --+            
                  |            
               dict --+        
                      |        
collections.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]
new empty dictionary

__init__(self, dict=None, source_ext_match=1)
Initialize an ordered dictionary. The signature is the same as regular dictionaries, but keyword arguments are not recommended because their insertion order is arbitrary.
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 collections.OrderedDict: __delitem__, __eq__, __iter__, __ne__, __reduce__, __repr__, __reversed__, __setitem__, clear, copy, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from dict: __cmp__, __contains__, __ge__, __getattribute__, __getitem__, __gt__, __le__, __len__, __lt__, __new__, __sizeof__, get, has_key

Inherited from object: __delattr__, __format__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from collections.OrderedDict: fromkeys

Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 
Initialize an ordered dictionary. The signature is the same as regular dictionaries, but keyword arguments are not recommended because their insertion order is arbitrary.
Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

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

source code 
Overrides: Util.Selector.__call__