Public Member Functions | Private Attributes | List of all members
rospack::ROSPack Class Reference

Backward compatibility API for librospack (DEPRECATED). More...

#include <rospack_backcompat.h>

Public Member Functions

std::string getOutput ()
 Get the output from the last successful run() call. More...
 
bool is_quiet ()
 Are we operating in quiet mode? More...
 
 ROSPack ()
 Constructor. More...
 
int run (int argc, char **argv)
 Run rospack with the given arguments. Call getOutput() to get the result. More...
 
int run (const std::string &cmd)
 Run rospack with the given arguments. Call getOutput() to get the result. More...
 

Private Attributes

std::string output_
 

Detailed Description

Backward compatibility API for librospack (DEPRECATED).

Deprecated:
Used by roslib. Don't use in new code.

Definition at line 42 of file rospack_backcompat.h.

Constructor & Destructor Documentation

◆ ROSPack()

rospack::ROSPack::ROSPack ( )
inline

Constructor.

Deprecated:
Used by roslib. Don't use in new code.

Definition at line 51 of file rospack_backcompat.h.

Member Function Documentation

◆ getOutput()

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

Get the output from the last successful run() call.

Returns
The result string.
Deprecated:
Used by roslib. Don't use in new code.

Definition at line 74 of file rospack_backcompat.h.

◆ is_quiet()

bool rospack::ROSPack::is_quiet ( )
inline

Are we operating in quiet mode?

Returns
Always true.
Deprecated:
Used by roslib. Don't use in new code.

Definition at line 80 of file rospack_backcompat.h.

◆ run() [1/2]

int rospack::ROSPack::run ( int  argc,
char **  argv 
)

Run rospack with the given arguments. Call getOutput() to get the result.

Parameters
argcNumber of arguments in argv.
argvList of arguments.
Returns
Zero if the call succeeded, non-zero otherwise.
Deprecated:
Used by roslib. Don't use in new code.

Definition at line 41 of file rospack_backcompat.cpp.

◆ run() [2/2]

int rospack::ROSPack::run ( const std::string &  cmd)

Run rospack with the given arguments. Call getOutput() to get the result.

Parameters
cmdSpace-separated list of arguments.
Returns
Zero if the call succeeded, non-zero otherwise.
Deprecated:
Used by roslib. Don't use in new code.

Definition at line 56 of file rospack_backcompat.cpp.

Member Data Documentation

◆ output_

std::string rospack::ROSPack::output_
private

Definition at line 45 of file rospack_backcompat.h.


The documentation for this class was generated from the following files:


rospack
Author(s): Brian Gerkey, Morgan Quigley, Dirk Thomas
autogenerated on Mon Feb 28 2022 23:32:59