libqi-api  2.0.6.8
Namespaces | Functions
/home/opennao/work/master/sdk/libqi/qi/path.hpp File Reference

find bin/lib/data/conf for the current application More...

#include <string>
#include <vector>
#include <qi/api.hpp>

Go to the source code of this file.

Namespaces

namespace  qi
 

qi general namespace


namespace  qi::path
 

Set of tools to handle SDK layouts.


namespace  qi::path::detail

Functions

std::string qi::path::sdkPrefix ()
 Return the default SDK prefix path.
std::vector< std::string > qi::path::detail::getSdkPrefixes ()
 Return the SDK prefixes list. It's always complete, native paths.
void qi::path::detail::addOptionalSdkPrefix (const char *prefix)
 Add a new SDK prefix to the list of searchable prefixes.
void qi::path::detail::clearOptionalSdkPrefix ()
 Reset the list of additional SDK prefixes.
std::string qi::path::findBin (const std::string &name)
 Look for a binary.
std::string qi::path::findLib (const std::string &name)
 Look for a library.
std::string qi::path::findConf (const std::string &applicationName, const std::string &filename)
 Look for a configuration file.
std::string qi::path::findData (const std::string &applicationName, const std::string &filename)
std::vector< std::string > qi::path::listData (const std::string &applicationName, const std::string &pattern="*")
std::vector< std::string > qi::path::confPaths (const std::string &applicationName="")
 Get the list of directories used when searching for configuration files for the given application name.
std::vector< std::string > qi::path::dataPaths (const std::string &applicationName="")
 Get the list of directories used when searching for data files for the given application name.
std::vector< std::string > qi::path::binPaths ()
 Get the list of directories used when searching for binaries.
std::vector< std::string > qi::path::libPaths ()
 Get the list of directories used when searching for libraries.
void qi::path::setWritablePath (const std::string &path)
 Set the writable files path for users.
std::string qi::path::userWritableDataPath (const std::string &applicationName, const std::string &filename)
 Get the writable data files path for users.
std::string qi::path::userWritableConfPath (const std::string &applicationName, const std::string &filename="")
 Get the writable configuration files path for users.
std::string qi::path::convertToDosPath (const std::string &pathString)

Detailed Description

find bin/lib/data/conf for the current application

Definition in file path.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines