YARP
Yet Another Robot Platform
yarp::os::ResourceFinder::Private Class Reference

Public Member Functions

bool addAppName (const std::string &appName)
 
bool clearAppNames ()
 
bool configure (Property &config, int argc, char *argv[], bool skip)
 
bool setDefault (Property &config, const std::string &key, const yarp::os::Value &val)
 
bool isAbsolute (const std::string &str)
 
bool isRooted (const std::string &str)
 
std::string getPath (const std::string &base1, const std::string &base2, const std::string &base3, const std::string &name)
 
std::string check (const std::string &base1, const std::string &base2, const std::string &base3, const std::string &name, bool isDir, const Bottle &doc, const std::string &doc2)
 
std::string findPath (Property &config, const std::string &name, const ResourceFinderOptions *externalOptions)
 
yarp::os::Bottle findPaths (Property &config, const std::string &name, const ResourceFinderOptions *externalOptions, bool enforcePlural=true)
 
std::string findPath (Property &config)
 
std::string findFile (Property &config, const std::string &name, const ResourceFinderOptions *externalOptions)
 
std::string findFileByName (Property &config, const std::string &fname, const ResourceFinderOptions *externalOptions)
 
std::string findFileBase (Property &config, const std::string &name, bool isDir, const ResourceFinderOptions *externalOptions)
 
bool canShowErrors (const ResourceFinderOptions &opts) const
 
void findFileBase (Property &config, const std::string &name, bool isDir, Bottle &output, const ResourceFinderOptions &opts)
 
void addString (Bottle &output, const std::string &txt)
 
void findFileBaseInner (Property &config, const std::string &name, bool isDir, bool allowPathd, Bottle &output, const ResourceFinderOptions &opts, const Bottle &predoc, const std::string &reason)
 
bool exists (const std::string &fname, bool isDir)
 
std::string getContext ()
 
Bottle getContexts ()
 
std::string getHomeContextPath (Property &config, const std::string &context)
 
std::string getHomeRobotPath ()
 

Static Public Member Functions

static std::string extractPath (const std::string &fname)
 

Detailed Description

Definition at line 142 of file ResourceFinder.cpp.

Member Function Documentation

◆ addAppName()

bool yarp::os::ResourceFinder::Private::addAppName ( const std::string &  appName)
inline

Definition at line 152 of file ResourceFinder.cpp.

◆ addString()

void yarp::os::ResourceFinder::Private::addString ( Bottle output,
const std::string &  txt 
)
inline

Definition at line 423 of file ResourceFinder.cpp.

◆ canShowErrors()

bool yarp::os::ResourceFinder::Private::canShowErrors ( const ResourceFinderOptions opts) const
inline

Definition at line 399 of file ResourceFinder.cpp.

◆ check()

std::string yarp::os::ResourceFinder::Private::check ( const std::string &  base1,
const std::string &  base2,
const std::string &  base3,
const std::string &  name,
bool  isDir,
const Bottle doc,
const std::string &  doc2 
)
inline

Definition at line 299 of file ResourceFinder.cpp.

◆ clearAppNames()

bool yarp::os::ResourceFinder::Private::clearAppNames ( )
inline

Definition at line 158 of file ResourceFinder.cpp.

◆ configure()

bool yarp::os::ResourceFinder::Private::configure ( Property config,
int  argc,
char *  argv[],
bool  skip 
)
inline

Definition at line 179 of file ResourceFinder.cpp.

◆ exists()

bool yarp::os::ResourceFinder::Private::exists ( const std::string &  fname,
bool  isDir 
)
inline

Definition at line 649 of file ResourceFinder.cpp.

◆ extractPath()

static std::string yarp::os::ResourceFinder::Private::extractPath ( const std::string &  fname)
inlinestatic

Definition at line 164 of file ResourceFinder.cpp.

◆ findFile()

std::string yarp::os::ResourceFinder::Private::findFile ( Property config,
const std::string &  name,
const ResourceFinderOptions externalOptions 
)
inline

Definition at line 375 of file ResourceFinder.cpp.

◆ findFileBase() [1/2]

void yarp::os::ResourceFinder::Private::findFileBase ( Property config,
const std::string &  name,
bool  isDir,
Bottle output,
const ResourceFinderOptions opts 
)
inline

Definition at line 407 of file ResourceFinder.cpp.

◆ findFileBase() [2/2]

std::string yarp::os::ResourceFinder::Private::findFileBase ( Property config,
const std::string &  name,
bool  isDir,
const ResourceFinderOptions externalOptions 
)
inline

Definition at line 388 of file ResourceFinder.cpp.

◆ findFileBaseInner()

void yarp::os::ResourceFinder::Private::findFileBaseInner ( Property config,
const std::string &  name,
bool  isDir,
bool  allowPathd,
Bottle output,
const ResourceFinderOptions opts,
const Bottle predoc,
const std::string &  reason 
)
inline

Definition at line 433 of file ResourceFinder.cpp.

◆ findFileByName()

std::string yarp::os::ResourceFinder::Private::findFileByName ( Property config,
const std::string &  fname,
const ResourceFinderOptions externalOptions 
)
inline

Definition at line 382 of file ResourceFinder.cpp.

◆ findPath() [1/2]

std::string yarp::os::ResourceFinder::Private::findPath ( Property config)
inline

Definition at line 366 of file ResourceFinder.cpp.

◆ findPath() [2/2]

std::string yarp::os::ResourceFinder::Private::findPath ( Property config,
const std::string &  name,
const ResourceFinderOptions externalOptions 
)
inline

Definition at line 338 of file ResourceFinder.cpp.

◆ findPaths()

yarp::os::Bottle yarp::os::ResourceFinder::Private::findPaths ( Property config,
const std::string &  name,
const ResourceFinderOptions externalOptions,
bool  enforcePlural = true 
)
inline

Definition at line 345 of file ResourceFinder.cpp.

◆ getContext()

std::string yarp::os::ResourceFinder::Private::getContext ( )
inline

Definition at line 679 of file ResourceFinder.cpp.

◆ getContexts()

Bottle yarp::os::ResourceFinder::Private::getContexts ( )
inline

Definition at line 684 of file ResourceFinder.cpp.

◆ getHomeContextPath()

std::string yarp::os::ResourceFinder::Private::getHomeContextPath ( Property config,
const std::string &  context 
)
inline

Definition at line 689 of file ResourceFinder.cpp.

◆ getHomeRobotPath()

std::string yarp::os::ResourceFinder::Private::getHomeRobotPath ( )
inline

Definition at line 715 of file ResourceFinder.cpp.

◆ getPath()

std::string yarp::os::ResourceFinder::Private::getPath ( const std::string &  base1,
const std::string &  base2,
const std::string &  base3,
const std::string &  name 
)
inline

Definition at line 259 of file ResourceFinder.cpp.

◆ isAbsolute()

bool yarp::os::ResourceFinder::Private::isAbsolute ( const std::string &  str)
inline

Definition at line 231 of file ResourceFinder.cpp.

◆ isRooted()

bool yarp::os::ResourceFinder::Private::isRooted ( const std::string &  str)
inline

Definition at line 244 of file ResourceFinder.cpp.

◆ setDefault()

bool yarp::os::ResourceFinder::Private::setDefault ( Property config,
const std::string &  key,
const yarp::os::Value val 
)
inline

Definition at line 223 of file ResourceFinder.cpp.


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