rosstack::ROSStack Class Reference

#include <rosstack.h>

List of all members.

Public Member Functions

int cmd_contains ()
int cmd_contains_path ()
int cmd_depends_on (bool include_indirect)
int cmd_deps ()
int cmd_deps1 ()
int cmd_deps_manifests ()
int cmd_depsindent (Stack *stk, int indent)
int cmd_find ()
int cmd_print_packages ()
int cmd_print_stack_list (bool print_path)
void crawl_for_stacks (bool force_crawl=false)
void deleteCache ()
Stackget_stack (const std::string &name)
std::string lookup_owner (std::string pkg_name, bool just_owner_name)
 ROSStack ()
int run (int argc, char **argv)
 The method that does the work.
 ~ROSStack ()

Static Public Member Functions

static const char * usage ()

Public Attributes

char * ros_root
rospack::ROSPack rp

Private Member Functions

Stackadd_stack (std::string path)
bool cache_is_good ()
void createROSHomeDirectory ()
std::string getCachePath ()
void sanitize_rppvec (std::vector< std::string > &rppvec)

Static Private Member Functions

static double time_since_epoch ()

Private Attributes

bool crawled

Detailed Description

The ROSStack class contains information the entire stack dependency tree.

Definition at line 109 of file rosstack.h.


Constructor & Destructor Documentation

ROSStack::ROSStack (  ) 

Definition at line 402 of file rosstack.cpp.

ROSStack::~ROSStack (  ) 

Definition at line 425 of file rosstack.cpp.


Member Function Documentation

Stack* rosstack::ROSStack::add_stack ( std::string  path  )  [private]
bool ROSStack::cache_is_good (  )  [private]

Definition at line 845 of file rosstack.cpp.

int ROSStack::cmd_contains (  ) 

Definition at line 610 of file rosstack.cpp.

int ROSStack::cmd_contains_path (  ) 

Definition at line 616 of file rosstack.cpp.

int ROSStack::cmd_depends_on ( bool  include_indirect  ) 

Definition at line 504 of file rosstack.cpp.

int ROSStack::cmd_deps (  ) 

Definition at line 622 of file rosstack.cpp.

int ROSStack::cmd_deps1 (  ) 

Definition at line 639 of file rosstack.cpp.

int ROSStack::cmd_deps_manifests (  ) 

Definition at line 630 of file rosstack.cpp.

int ROSStack::cmd_depsindent ( Stack stk,
int  indent 
)

Definition at line 647 of file rosstack.cpp.

int ROSStack::cmd_find (  ) 

Definition at line 545 of file rosstack.cpp.

int ROSStack::cmd_print_packages (  ) 

Definition at line 796 of file rosstack.cpp.

int ROSStack::cmd_print_stack_list ( bool  print_path  ) 

Definition at line 785 of file rosstack.cpp.

void ROSStack::crawl_for_stacks ( bool  force_crawl = false  ) 

Definition at line 974 of file rosstack.cpp.

void ROSStack::createROSHomeDirectory (  )  [private]

tests if the cache exists, is new enough, and is valid

Definition at line 811 of file rosstack.cpp.

void ROSStack::deleteCache (  ) 

Definition at line 838 of file rosstack.cpp.

Stack* rosstack::ROSStack::get_stack ( const std::string &  name  ) 
string ROSStack::getCachePath (  )  [private]

Definition at line 825 of file rosstack.cpp.

std::string rosstack::ROSStack::lookup_owner ( std::string  pkg_name,
bool  just_owner_name 
)
int ROSStack::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 678 of file rosstack.cpp.

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

remove trailing slashes

Definition at line 1310 of file rosstack.cpp.

double ROSStack::time_since_epoch (  )  [static, private]

returns a double representing the seconds since the Epoch

Definition at line 922 of file rosstack.cpp.

const char * ROSStack::usage (  )  [static]

Definition at line 433 of file rosstack.cpp.


Member Data Documentation

Definition at line 144 of file rosstack.h.

Definition at line 113 of file rosstack.h.

Definition at line 114 of file rosstack.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:45 2013