#include <rospack.h>
Public Types | |
enum | traversal_order_t { POSTORDER, PREORDER } |
Public Member Functions | |
void | accumulate_deps (AccList &acc_list, Package *to) |
std::string | cpp_message_flags (bool cflags, bool lflags) |
Returns the message flags for this package. If the path/msg or path/srv directories exist, adds appropriate compile/link flags depending on what is requested. | |
const VecPkg & | deps (traversal_order_t order, int depth=0) |
const VecPkg & | deps1 () |
const std::vector< Package * > & | descendants (int depth=0) |
VecPkg | descendants1 () |
std::string | flags (std::string lang, std::string attrib) |
std::string | manifest_path () |
rospack_tinyxml::TiXmlElement * | manifest_root () |
Package (std::string _path) | |
std::vector< std::pair < std::string, std::string > > | plugins () |
std::string | rosdep () |
std::string | versioncontrol () |
Static Public Member Functions | |
static bool | is_no_subdirs (std::string path) |
static bool | is_package (std::string path) |
Public Attributes | |
std::string | name |
std::string | path |
Static Public Attributes | |
static std::vector< Package * > | deleted_pkgs |
static std::vector< Package * > | pkgs |
Private Member Functions | |
const std::vector< Package * > & | direct_deps (bool missing_pkg_as_warning=false) |
std::string | direct_flags (std::string lang, std::string attrib) |
bool | has_parent (std::string pkg) |
void | load_manifest () |
Package (const Package &p) | |
Private Attributes | |
std::vector< Package * > | _deps |
std::vector< Package * > | _descendants |
std::vector< Package * > | _direct_deps |
bool | deps_calculated |
bool | descendants_calculated |
bool | direct_deps_calculated |
rospack_tinyxml::TiXmlDocument | manifest |
bool | manifest_loaded |
The Package class contains information about a single package
Definition at line 168 of file rospack.h.
rospack::Package::Package | ( | std::string | _path | ) |
rospack::Package::Package | ( | const Package & | p | ) | [inline, private] |
Definition at line 667 of file rospack.cpp.
string rospack::Package::cpp_message_flags | ( | bool | cflags, | |
bool | lflags | |||
) |
Returns the message flags for this package. If the path/msg or path/srv directories exist, adds appropriate compile/link flags depending on what is requested.
cflags | Whether or not to include compile flags | |
lflags | Whether or not to include link flags |
Definition at line 455 of file rospack.cpp.
const VecPkg & rospack::Package::deps | ( | traversal_order_t | order, | |
int | depth = 0 | |||
) |
Definition at line 158 of file rospack.cpp.
const VecPkg & rospack::Package::deps1 | ( | ) |
Definition at line 154 of file rospack.cpp.
const vector< Package * > & rospack::Package::descendants | ( | int | depth = 0 |
) |
Definition at line 339 of file rospack.cpp.
VecPkg rospack::Package::descendants1 | ( | ) |
Definition at line 315 of file rospack.cpp.
const vector< Package * > & rospack::Package::direct_deps | ( | bool | missing_pkg_as_warning = false |
) | [private] |
Definition at line 394 of file rospack.cpp.
std::string rospack::Package::direct_flags | ( | std::string | lang, | |
std::string | attrib | |||
) | [private] |
std::string rospack::Package::flags | ( | std::string | lang, | |
std::string | attrib | |||
) |
bool rospack::Package::has_parent | ( | std::string | pkg | ) | [private] |
static bool rospack::Package::is_no_subdirs | ( | std::string | path | ) | [static] |
static bool rospack::Package::is_package | ( | std::string | path | ) | [static] |
void rospack::Package::load_manifest | ( | ) | [private] |
Definition at line 639 of file rospack.cpp.
string rospack::Package::manifest_path | ( | ) |
Definition at line 209 of file rospack.cpp.
rospack_tinyxml::TiXmlElement * rospack::Package::manifest_root | ( | ) |
Definition at line 654 of file rospack.cpp.
vector< pair< string, string > > rospack::Package::plugins | ( | ) |
Definition at line 266 of file rospack.cpp.
string rospack::Package::rosdep | ( | ) |
Definition at line 230 of file rospack.cpp.
string rospack::Package::versioncontrol | ( | ) |
Definition at line 247 of file rospack.cpp.
std::vector<Package *> rospack::Package::_deps [private] |
std::vector<Package *> rospack::Package::_descendants [private] |
std::vector<Package *> rospack::Package::_direct_deps [private] |
VecPkg rospack::Package::deleted_pkgs [static] |
bool rospack::Package::deps_calculated [private] |
bool rospack::Package::descendants_calculated [private] |
bool rospack::Package::direct_deps_calculated [private] |
bool rospack::Package::manifest_loaded [private] |
std::string rospack::Package::name |
std::string rospack::Package::path |
VecPkg rospack::Package::pkgs [static] |