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 401 of file rosstack.cpp.

ROSStack::~ROSStack (  ) 

Definition at line 424 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 844 of file rosstack.cpp.

int ROSStack::cmd_contains (  ) 

Definition at line 609 of file rosstack.cpp.

int ROSStack::cmd_contains_path (  ) 

Definition at line 615 of file rosstack.cpp.

int ROSStack::cmd_depends_on ( bool  include_indirect  ) 

Definition at line 503 of file rosstack.cpp.

int ROSStack::cmd_deps (  ) 

Definition at line 621 of file rosstack.cpp.

int ROSStack::cmd_deps1 (  ) 

Definition at line 638 of file rosstack.cpp.

int ROSStack::cmd_deps_manifests (  ) 

Definition at line 629 of file rosstack.cpp.

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

Definition at line 646 of file rosstack.cpp.

int ROSStack::cmd_find (  ) 

Definition at line 544 of file rosstack.cpp.

int ROSStack::cmd_print_packages (  ) 

Definition at line 795 of file rosstack.cpp.

int ROSStack::cmd_print_stack_list ( bool  print_path  ) 

Definition at line 784 of file rosstack.cpp.

void ROSStack::crawl_for_stacks ( bool  force_crawl = false  ) 

Definition at line 973 of file rosstack.cpp.

void ROSStack::createROSHomeDirectory (  )  [private]

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

Definition at line 810 of file rosstack.cpp.

void ROSStack::deleteCache (  ) 

Definition at line 837 of file rosstack.cpp.

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

Definition at line 824 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 677 of file rosstack.cpp.

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

remove trailing slashes

Definition at line 1309 of file rosstack.cpp.

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

returns a double representing the seconds since the Epoch

Definition at line 921 of file rosstack.cpp.

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

Definition at line 432 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 09:35:31 2013