YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::os::ResourceFinder::Private Class Reference

Public Member Functions

bool addAppName (const std::string &appName)
 
bool clearAppNames ()
 
bool configureProp (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)
 
std::vector< std::string > 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, std::vector< std::string > &output, const ResourceFinderOptions &opts)
 
void findFileBaseInner (Property &config, const std::string &name, bool isDir, bool allowPathd, std::vector< std::string > &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)
 
static void addString (std::vector< std::string > &output, const std::string &txt)
 

Detailed Description

Definition at line 126 of file ResourceFinder.cpp.

Member Function Documentation

◆ addAppName()

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

Definition at line 136 of file ResourceFinder.cpp.

◆ addString()

static void yarp::os::ResourceFinder::Private::addString ( std::vector< std::string > &  output,
const std::string &  txt 
)
inlinestatic

Definition at line 405 of file ResourceFinder.cpp.

◆ canShowErrors()

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

Definition at line 381 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 281 of file ResourceFinder.cpp.

◆ clearAppNames()

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

Definition at line 142 of file ResourceFinder.cpp.

◆ configureProp()

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

Definition at line 163 of file ResourceFinder.cpp.

◆ exists()

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

Definition at line 631 of file ResourceFinder.cpp.

◆ extractPath()

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

Definition at line 148 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 357 of file ResourceFinder.cpp.

◆ findFileBase() [1/2]

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

Definition at line 370 of file ResourceFinder.cpp.

◆ findFileBase() [2/2]

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

Definition at line 389 of file ResourceFinder.cpp.

◆ findFileBaseInner()

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

Definition at line 415 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 364 of file ResourceFinder.cpp.

◆ findPath() [1/2]

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

Definition at line 348 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 320 of file ResourceFinder.cpp.

◆ findPaths()

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

Definition at line 327 of file ResourceFinder.cpp.

◆ getContext()

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

Definition at line 661 of file ResourceFinder.cpp.

◆ getContexts()

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

Definition at line 666 of file ResourceFinder.cpp.

◆ getHomeContextPath()

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

Definition at line 671 of file ResourceFinder.cpp.

◆ getHomeRobotPath()

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

Definition at line 697 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 241 of file ResourceFinder.cpp.

◆ isAbsolute()

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

Definition at line 213 of file ResourceFinder.cpp.

◆ isRooted()

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

Definition at line 226 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 205 of file ResourceFinder.cpp.


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