rospack::ROSPack Class Reference

#include <rospack.h>

List of all members.

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)
Packageget_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

Packageadd_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

Detailed Description

The ROSPack class contains information the entire package dependency tree.

Definition at line 223 of file rospack.h.


Constructor & Destructor Documentation

rospack::ROSPack::ROSPack (  ) 

Definition at line 701 of file rospack.cpp.

rospack::ROSPack::~ROSPack (  ) 

Definition at line 735 of file rospack.cpp.


Member Function Documentation

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.

std::string rospack::ROSPack::getOutput (  )  [inline]

Definition at line 288 of file rospack.h.

bool rospack::ROSPack::is_quiet (  )  [inline]

Definition at line 291 of file rospack.h.

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.

Exceptions:
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.


Member Data Documentation

Definition at line 332 of file rospack.h.

bool rospack::ROSPack::crawled [private]

Definition at line 333 of file rospack.h.

Definition at line 357 of file rospack.h.

Definition at line 350 of file rospack.h.

char** rospack::ROSPack::my_argv [private]

Definition at line 351 of file rospack.h.

Definition at line 311 of file rospack.h.

Definition at line 307 of file rospack.h.

Definition at line 327 of file rospack.h.

Definition at line 309 of file rospack.h.

Definition at line 313 of file rospack.h.

Definition at line 317 of file rospack.h.

Definition at line 321 of file rospack.h.

Definition at line 323 of file rospack.h.

Definition at line 331 of file rospack.h.

Definition at line 319 of file rospack.h.

Definition at line 315 of file rospack.h.

Definition at line 325 of file rospack.h.

std::string rospack::ROSPack::output_acc [private]

Definition at line 347 of file rospack.h.

std::vector<std::string> rospack::ROSPack::path_components [private]

Definition at line 337 of file rospack.h.

Definition at line 228 of file rospack.h.

Definition at line 355 of file rospack.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rospack
Author(s): Morgan Quigley, Brian Gerkey
autogenerated on Fri Jan 11 09:35:31 2013