Package wafadmin :: Module Node :: Class Node
[hide private]
[frames] | no frames]

Class Node

source code

object --+
         |
        Node

Instance Methods [hide private]
 
__init__(self, name, parent, node_type=UNDEFINED)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
__hash__(self)
expensive, make certain it is not used
source code
 
get_type(self) source code
 
set_type(self, t) source code
 
dirs(self) source code
 
files(self) source code
 
get_dir(self, name, default=None) source code
 
get_file(self, name, default=None) source code
 
get_build(self, name, default=None) source code
 
find_resource(self, lst)
Find an existing input file: either a build node declared previously or a source node
source code
 
find_or_declare(self, lst)
Used for declaring a build node representing a file being built
source code
 
ensure_dir_node_from_path(self, lst)
used very rarely, force the construction of a branch of node instance for representing folders
source code
 
exclusive_build_node(self, path)
create a hierarchy in the build dir (no source folders) for ill-behaving compilers the node is not hashed, so you must do it manually
source code
 
path_to_parent(self, parent)
path relative to a direct ancestor, as string
source code
 
find_ancestor(self, node) source code
 
relpath_gen(self, going_to)
string representing a relative path between self to another node
source code
 
nice_path(self, env=None)
printed in the console, open files easily from the launch directory
source code
 
debug(self) source code
 
is_child_of(self, node)
does this node belong to the subtree node
source code
 
variant(self, env)
variant, or output directory for this node, a source has for variant 0
source code
 
height(self)
amount of parents
source code
 
change_ext(self, ext)
node of the same path, but with a different extension
source code
 
src_dir(self, env)
src path without the file name
source code
 
bld_dir(self, env)
build path without the file name
source code
 
bld_base(self, env)
build path without the extension: src/dir/foo(.cpp)
source code
 
bldpath(self, env=None)
path seen from the build dir default/src/foo.cpp
source code
 
srcpath(self, env=None)
path in the srcdir from the build dir ../src/foo.cpp
source code
 
read(self, env)
get the contents of a file, it is not used anywhere for the moment
source code
 
dir(self, env)
scons-like
source code
 
file(self)
scons-like
source code
 
file_base(self)
scons-like
source code
 
suffix(self)
scons-like
source code
 
find_dir(self, lst) source code
 
abspath(self, env=None) source code

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, parent, node_type=UNDEFINED)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

expensive, make certain it is not used

Overrides: object.__hash__

exclusive_build_node(self, path)

source code 

create a hierarchy in the build dir (no source folders) for ill-behaving compilers the node is not hashed, so you must do it manually

after declaring such a node, find_dir and find_resource should work as expected