17 # include <boost/shared_ptr.hpp>
28 Path(
const std::string& unicodePath = std::string());
32 bool isRegularFile()
const;
34 std::string filename()
const;
35 std::string extension()
const;
43 operator std::string()
const;
49 Path(
const boost::shared_ptr<PrivatePath> &p);;
50 boost::shared_ptr<PrivatePath> _p;
98 const std::string& filename);
103 const std::string& filename);
109 QI_API std::vector<std::string>
listData(
const std::string& applicationName,
110 const std::string& pattern=
"*");
113 QI_API std::vector<std::string>
confPaths(
const std::string& applicationName=
"");
116 QI_API std::vector<std::string>
dataPaths(
const std::string& applicationName=
"");
130 const std::string& filename);
134 const std::string& filename=
"");
148 #endif // _QI_PATH_HPP_
std::string findLib(const std::string &name)
Look for a library.
std::string sdkPrefix()
Return the default SDK prefix path.
std::vector< std::string > getSdkPrefixes()
Return the SDK prefixes list. It's always complete, native paths.
void clearOptionalSdkPrefix()
Reset the list of additional SDK prefixes.
std::string convertToDosPath(const std::string &pathString)
void setWritablePath(const std::string &path)
Set the writable files path for users.
std::vector< std::string > confPaths(const std::string &applicationName="")
Get the list of directories used when searching for configuration files for the given application nam...
std::vector< Path > PathVector
std::vector< std::string > 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 > listData(const std::string &applicationName, const std::string &pattern="*")
std::string findBin(const std::string &name)
Look for a binary.
void addOptionalSdkPrefix(const char *prefix)
Add a new SDK prefix to the list of searchable prefixes.
std::string findConf(const std::string &applicationName, const std::string &filename)
Look for a configuration file.
std::string userWritableDataPath(const std::string &applicationName, const std::string &filename)
Get the writable data files path for users.
dll import/export and compiler message
std::vector< std::string > binPaths()
Get the list of directories used when searching for binaries.
std::vector< std::string > libPaths()
Get the list of directories used when searching for libraries.
std::string userWritableConfPath(const std::string &applicationName, const std::string &filename="")
Get the writable configuration files path for users.
std::string findData(const std::string &applicationName, const std::string &filename)