Stack crawler. Create one of these to operate on a stack tree. Call public methods inherited from Rosstackage. More...
#include <rospack.h>
Public Member Functions | |
virtual std::string | get_manifest_type () |
Rosstack () | |
Constructor. More... | |
virtual const char * | usage () |
Usage statement. More... | |
Public Member Functions inherited from rospack::Rosstackage | |
void | _rosdeps (Stackage *stackage, std::set< std::string > &rosdeps, const char *tag_name) |
bool | contains (const std::string &name, std::string &stack, std::string &path) |
Find the stack that contains a package. More... | |
bool | contents (const std::string &name, std::set< std::string > &packages) |
Compute the packages that are contained in a stack. More... | |
bool | cpp_exports (const std::string &name, const std::string &type, const std::string &attrib, bool deps_only, std::vector< std::pair< std::string, bool > > &flags) |
Compute cpp exports declared in a package and its dependencies. Used by rosbuild. More... | |
void | crawl (std::vector< std::string > search_path, bool force) |
Crawl the filesystem, accumulating a database of stackages. May read results from a cache file instead of crawling. This method should be called before any making any queries (find, list, etc.). More... | |
bool | deps (const std::string &name, bool direct, std::vector< std::string > &deps) |
Compute dependencies of a stackage (i.e., stackages that this stackages depends on). More... | |
bool | depsDetail (const std::string &name, bool direct, std::vector< Stackage * > &deps) |
Compute dependencies of a stackage (i.e., stackages that this stackages depends on), taking and returning stackage objects.. More... | |
bool | depsIndent (const std::string &name, bool direct, std::vector< std::string > &deps) |
Generate indented list of a stackage's dependencies, including duplicates. Intended for visual debugging of dependency structures. More... | |
bool | depsManifests (const std::string &name, bool direct, std::vector< std::string > &manifests) |
List the manifests of a stackage's dependencies. Used by rosbuild. More... | |
bool | depsMsgSrv (const std::string &name, bool direct, std::vector< std::string > &gens) |
List the marker files in a packages's dependencies that indicate that those packages contain auto-generated message and/or service code. Used by rosbuild. More... | |
bool | depsOn (const std::string &name, bool direct, std::vector< std::string > &deps) |
Compute reverse dependencies of a stackage (i.e., stackages that depend on this stackage). Forces crawl. More... | |
bool | depsOnDetail (const std::string &name, bool direct, std::vector< Stackage * > &deps, bool ignore_missing=false) |
Compute reverse dependencies of a stackage (i.e., stackages that depend on this stackage), taking and returning stackage objects. Forces crawl. More... | |
bool | depsWhy (const std::string &from, const std::string &to, std::string &output) |
Compute all dependency chains from one stackage to another. Intended for visual debugging of dependency structures. More... | |
bool | exports (const std::string &name, const std::string &lang, const std::string &attrib, bool deps_only, std::vector< std::string > &flags) |
Compute exports declared in a package and its dependencies. Used by rosbuild. More... | |
bool | exports_dry_package (Stackage *stackage, const std::string &lang, const std::string &attrib, std::vector< std::string > &flags) |
Compute exports declared in a dry package. More... | |
bool | find (const std::string &name, std::string &path) |
Look for a stackage. More... | |
const std::string & | getName () |
Get the name of the tool that's in use (e.g., "rospack" or "rosstack") More... | |
bool | getSearchPathFromEnv (std::vector< std::string > &sp) |
Helper method to construct a directory search path by looking at relevant environment variables. The value of ROS_ROOT goes first, followed by each element of a colon-separated ROS_PACKAGE_PATH. More... | |
bool | inStackage (std::string &name) |
Is the current working directory a stackage? More... | |
void | list (std::set< std::pair< std::string, std::string > > &list) |
List names and paths of all stackages. More... | |
void | listDuplicates (std::vector< std::string > &dups) |
Identify duplicate stackages. Forces crawl. More... | |
void | listDuplicatesWithPaths (std::map< std::string, std::vector< std::string > > &dups) |
Identify duplicate stackages and provide their paths. Forces crawl. More... | |
void | logError (const std::string &msg, bool append_errno=false) |
Log a error (usually goes to stderr). More... | |
void | logWarn (const std::string &msg, bool append_errno=false) |
Log a warning (usually goes to stderr). More... | |
bool | plugins (const std::string &name, const std::string &attrib, const std::string &top, std::vector< std::string > &flags) |
Compute exported plugins declared in packages that depend on a package. Forces crawl. Used by rosbuild and roslib. More... | |
bool | profile (const std::vector< std::string > &search_path, bool zombie_only, int length, std::vector< std::string > &dirs) |
Report on time taken to crawl for stackages. Intended for use in debugging misconfigured stackage trees. Forces crawl. More... | |
bool | reorder_paths (const std::string &paths, std::string &reordered) |
Reorder the paths according to the workspace chaining. More... | |
bool | rosdeps (const std::string &name, bool direct, std::set< std::string > &rosdeps) |
Compute rosdep entries that are declared in manifest of a package and its dependencies. Used by rosmake. More... | |
void | setQuiet (bool quiet) |
Control warning and error console output. More... | |
bool | vcs (const std::string &name, bool direct, std::vector< std::string > &vcs) |
Compute vcs entries that are declared in manifest of a package and its dependencies. Was used by Hudson build scripts; might not be needed. More... | |
virtual | ~Rosstackage () |
Destructor. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from rospack::Rosstackage | |
Rosstackage (const std::string &manifest_name, const std::string &cache_prefix, const std::string &name, const std::string &tag) | |
Constructor, only used by derived classes. More... | |
Stack crawler. Create one of these to operate on a stack tree. Call public methods inherited from Rosstackage.
rospack::Rosstack::Rosstack | ( | ) |
Constructor.
Definition at line 2306 of file rospack.cpp.
|
virtual |
Reimplemented from rospack::Rosstackage.
Definition at line 2338 of file rospack.cpp.
|
virtual |
Usage statement.
Reimplemented from rospack::Rosstackage.
Definition at line 2315 of file rospack.cpp.