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 702 of file rospack.cpp.

rospack::ROSPack::~ROSPack (  ) 

Definition at line 736 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 1601 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 832 of file rospack.cpp.

int rospack::ROSPack::cmd_depends_why (  ) 

Definition at line 880 of file rospack.cpp.

int rospack::ROSPack::cmd_deps (  ) 

Definition at line 915 of file rospack.cpp.

int rospack::ROSPack::cmd_deps1 (  ) 

Definition at line 962 of file rospack.cpp.

int rospack::ROSPack::cmd_deps_manifests (  ) 

Definition at line 926 of file rospack.cpp.

int rospack::ROSPack::cmd_deps_msgsrv (  ) 

Definition at line 939 of file rospack.cpp.

int rospack::ROSPack::cmd_depsindent ( Package pkg,
int  indent 
)

Definition at line 973 of file rospack.cpp.

int rospack::ROSPack::cmd_export (  ) 

Definition at line 1151 of file rospack.cpp.

int rospack::ROSPack::cmd_find (  ) 

Definition at line 906 of file rospack.cpp.

int rospack::ROSPack::cmd_libs_only ( std::string  token  ) 
int rospack::ROSPack::cmd_list_duplicates (  ) 

Definition at line 1483 of file rospack.cpp.

int rospack::ROSPack::cmd_make ( char **  args,
int  args_len 
)
int rospack::ROSPack::cmd_plugins (  ) 

Definition at line 1157 of file rospack.cpp.

int rospack::ROSPack::cmd_print_langs_list (  ) 

Definition at line 1496 of file rospack.cpp.

int rospack::ROSPack::cmd_print_package_list ( bool  print_path  ) 

Definition at line 1466 of file rospack.cpp.

int rospack::ROSPack::cmd_rosdep ( int  depth  ) 

Definition at line 1130 of file rospack.cpp.

int rospack::ROSPack::cmd_versioncontrol ( int  depth  ) 

Definition at line 1108 of file rospack.cpp.

void rospack::ROSPack::crawl_for_packages ( bool  force_crawl = false  ) 

Definition at line 1735 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 1176 of file rospack.cpp.

Package* rospack::ROSPack::get_pkg ( std::string  pkgname  ) 
string rospack::ROSPack::getCachePath (  )  [private]

Definition at line 1539 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 1188 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 1209 of file rospack.cpp.

void rospack::ROSPack::sanitize_rppvec ( std::vector< std::string > &  rppvec  )  [private]

remove trailing slashes

Definition at line 2294 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 1678 of file rospack.cpp.

const char * rospack::ROSPack::usage (  )  [static]

Definition at line 749 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 11:39:44 2013