#include <rospack.h>
Public Member Functions | |
| int | cmd_cflags_only (std::string token) |
| int | cmd_depends_on (bool include_indirect) |
| int | cmd_depends_why () |
| int | cmd_deps () |
| int | cmd_deps1 () |
| int | cmd_deps_manifests () |
| int | cmd_deps_msgsrv () |
| int | cmd_depsindent (Package *pkg, int indent) |
| int | cmd_export () |
| int | cmd_find () |
| int | cmd_libs_only (std::string token) |
| int | cmd_list_duplicates () |
| int | cmd_make (char **args, int args_len) |
| int | cmd_plugins () |
| int | cmd_print_langs_list () |
| int | cmd_print_package_list (bool print_path) |
| int | cmd_rosdep (int depth) |
| int | cmd_versioncontrol (int depth) |
| void | crawl_for_packages (bool force_crawl=false) |
| std::string | deduplicate_tokens (const std::string &s) |
| void | export_flags (std::string pkg, std::string lang, std::string attrib) |
| Package * | get_pkg (std::string pkgname) |
| std::string | getOutput () |
| bool | is_quiet () |
| VecPkg | partial_crawl (const std::string &path) |
| ROSPack () | |
| int | run (const std::string &cmd) |
| int | run (int argc, char **argv) |
| The method that does the work. | |
| std::string | snarf_flags (std::string flags, std::string token, bool invert=false) |
| std::string | snarf_libs (std::string flags, bool invert=false) |
| ~ROSPack () | |
Static Public Member Functions | |
| static const char * | usage () |
Public Attributes | |
| std::string | opt_attrib |
| bool | opt_deps_only |
| bool | opt_display_duplicate_pkgs |
| std::string | opt_lang |
| std::string | opt_length |
| std::string | opt_package |
| int | opt_profile_length |
| bool | opt_profile_zombie_only |
| std::string | opt_target |
| std::string | opt_top |
| bool | opt_warn_on_missing_deps |
| char * | ros_root |
Private Member Functions | |
| Package * | add_package (std::string path) |
| bool | cache_is_good () |
| void | freeArgv () |
| std::string | getCachePath () |
| void | sanitize_rppvec (std::vector< std::string > &rppvec) |
Static Private Member Functions | |
| static double | time_since_epoch () |
Private Attributes | |
| bool | cache_lock_failed |
| bool | crawled |
| bool | duplicate_packages_found |
| int | my_argc |
| char ** | my_argv |
| bool | opt_quiet |
| std::string | output_acc |
| std::vector< std::string > | path_components |
| int | total_num_pkgs |
The ROSPack class contains information the entire package dependency tree.
Definition at line 223 of file rospack.h.
| rospack::ROSPack::ROSPack | ( | ) |
Definition at line 701 of file rospack.cpp.
| rospack::ROSPack::~ROSPack | ( | ) |
Definition at line 735 of file rospack.cpp.
| Package* rospack::ROSPack::add_package | ( | std::string | path | ) | [private] |
| bool rospack::ROSPack::cache_is_good | ( | ) | [private] |
tests if the cache exists, is new enough, and is valid
Definition at line 1586 of file rospack.cpp.
| int rospack::ROSPack::cmd_cflags_only | ( | std::string | token | ) |
| int rospack::ROSPack::cmd_depends_on | ( | bool | include_indirect | ) |
Definition at line 831 of file rospack.cpp.
| int rospack::ROSPack::cmd_depends_why | ( | ) |
Definition at line 879 of file rospack.cpp.
| int rospack::ROSPack::cmd_deps | ( | ) |
Definition at line 914 of file rospack.cpp.
| int rospack::ROSPack::cmd_deps1 | ( | ) |
Definition at line 961 of file rospack.cpp.
| int rospack::ROSPack::cmd_deps_manifests | ( | ) |
Definition at line 925 of file rospack.cpp.
| int rospack::ROSPack::cmd_deps_msgsrv | ( | ) |
Definition at line 938 of file rospack.cpp.
| int rospack::ROSPack::cmd_depsindent | ( | Package * | pkg, | |
| int | indent | |||
| ) |
Definition at line 972 of file rospack.cpp.
| int rospack::ROSPack::cmd_export | ( | ) |
Definition at line 1150 of file rospack.cpp.
| int rospack::ROSPack::cmd_find | ( | ) |
Definition at line 905 of file rospack.cpp.
| int rospack::ROSPack::cmd_libs_only | ( | std::string | token | ) |
| int rospack::ROSPack::cmd_list_duplicates | ( | ) |
Definition at line 1482 of file rospack.cpp.
| int rospack::ROSPack::cmd_make | ( | char ** | args, | |
| int | args_len | |||
| ) |
| int rospack::ROSPack::cmd_plugins | ( | ) |
Definition at line 1156 of file rospack.cpp.
| int rospack::ROSPack::cmd_print_langs_list | ( | ) |
Definition at line 1495 of file rospack.cpp.
| int rospack::ROSPack::cmd_print_package_list | ( | bool | print_path | ) |
Definition at line 1465 of file rospack.cpp.
| int rospack::ROSPack::cmd_rosdep | ( | int | depth | ) |
Definition at line 1129 of file rospack.cpp.
| int rospack::ROSPack::cmd_versioncontrol | ( | int | depth | ) |
Definition at line 1107 of file rospack.cpp.
| void rospack::ROSPack::crawl_for_packages | ( | bool | force_crawl = false |
) |
Definition at line 1720 of file rospack.cpp.
| std::string rospack::ROSPack::deduplicate_tokens | ( | const std::string & | s | ) |
| void rospack::ROSPack::export_flags | ( | std::string | pkg, | |
| std::string | lang, | |||
| std::string | attrib | |||
| ) |
| void rospack::ROSPack::freeArgv | ( | ) | [private] |
Definition at line 1175 of file rospack.cpp.
| Package* rospack::ROSPack::get_pkg | ( | std::string | pkgname | ) |
| string rospack::ROSPack::getCachePath | ( | ) | [private] |
Definition at line 1538 of file rospack.cpp.
| VecPkg rospack::ROSPack::partial_crawl | ( | const std::string & | path | ) |
| int rospack::ROSPack::run | ( | const std::string & | cmd | ) |
Definition at line 1187 of file rospack.cpp.
| int rospack::ROSPack::run | ( | int | argc, | |
| char ** | argv | |||
| ) |
The method that does the work.
Call the run() method with argc and argv to crawl for packages, build the tree, and answer the query in the command-line arguments.
| std::runtime_error |
Definition at line 1208 of file rospack.cpp.
| void rospack::ROSPack::sanitize_rppvec | ( | std::vector< std::string > & | rppvec | ) | [private] |
remove trailing slashes
Definition at line 2276 of file rospack.cpp.
| std::string rospack::ROSPack::snarf_flags | ( | std::string | flags, | |
| std::string | token, | |||
| bool | invert = false | |||
| ) |
| std::string rospack::ROSPack::snarf_libs | ( | std::string | flags, | |
| bool | invert = false | |||
| ) |
| double rospack::ROSPack::time_since_epoch | ( | ) | [static, private] |
returns a double representing the seconds since the Epoch
Definition at line 1663 of file rospack.cpp.
| const char * rospack::ROSPack::usage | ( | ) | [static] |
Definition at line 748 of file rospack.cpp.
bool rospack::ROSPack::cache_lock_failed [private] |
bool rospack::ROSPack::crawled [private] |
bool rospack::ROSPack::duplicate_packages_found [private] |
int rospack::ROSPack::my_argc [private] |
char** rospack::ROSPack::my_argv [private] |
| std::string rospack::ROSPack::opt_attrib |
| std::string rospack::ROSPack::opt_lang |
| std::string rospack::ROSPack::opt_length |
| std::string rospack::ROSPack::opt_package |
bool rospack::ROSPack::opt_quiet [private] |
| std::string rospack::ROSPack::opt_target |
| std::string rospack::ROSPack::opt_top |
std::string rospack::ROSPack::output_acc [private] |
std::vector<std::string> rospack::ROSPack::path_components [private] |
int rospack::ROSPack::total_num_pkgs [private] |