7#ifndef YARP_OS_RESOURCEFINDER_H
8#define YARP_OS_RESOURCEFINDER_H
72 bool setDefault(
const std::string& key,
const std::string& val);
80 bool setDefault(
const std::string& key, std::int32_t val);
105 return setDefault(
"from",
fname);
124 std::string findFile(
const std::string& name);
133 std::string findFileByName(
const std::string& name);
150 std::string findPath(
const std::string& name);
173 std::string findPath();
183 std::string getContext();
194 bool check(
const std::string& key)
const override;
195 Value& find(
const std::string& key)
const override;
196 Bottle& findGroup(
const std::string& key)
const override;
197 bool isNull()
const override;
198 std::string
toString()
const override;
209 virtual ResourceFinder findNestedResourceFinder(
const std::string& key);
214 return m_isConfiguredFlag;
227 using Searchable::check;
228 using Searchable::findGroup;
233 std::string getHomeContextPath();
238 std::string getHomeRobotPath();
243 std::string findPath(
const std::string& name,
246 std::string findFile(
const std::string& name,
249 std::string findFileByName(
const std::string& name,
253 const std::string& key,
256#ifndef YARP_NO_DEPRECATED
268 bool setVerbose(bool verbose = true);
280 bool setQuiet(
bool quiet =
true);
285 bool addContext(
const std::string&
appName);
292 bool m_isConfiguredFlag;
295#ifndef DOXYGEN_SHOULD_SKIP_THIS
std::string toString(const T &value)
convert an arbitrary type to string.
A simple collection of objects that can be described and transmitted in a portable way.
A mini-server for performing network communication in the background.
A class for storing options and configuration information.
These options are loosely based on http://wiki.icub.org/wiki/YARP_ResourceFinder.
Helper class for finding config files and other external resources.
bool setDefaultContext(const std::string &contextName)
Sets the context for the current ResourceFinder object.
bool isConfigured() const
bool setDefaultConfigFile(const std::string &fname)
Provide a default value for the configuration file (can be overridden from command line with the –fro...
A base class for nested structures that can be searched.
A single value (typically within a Bottle).
An interface to the operating system, including Port based communication.